PT-2024-9694

CVE-2024-40913

·

Published

2024-05-22

·

Updated

2025-09-29

Description by

CVSS 3.1
9.1
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the use of memory after it has been freed in the cachefiles module of the Linux kernel. This can cause a cache Use After Free (UAF) condition. The problem arises when an anonymous file descriptor is installed and then closed, potentially before the reference count of the cache is obtained. To resolve this, the cache reference count should be grabbed before installing the file descriptor. By kernel convention, the file descriptor is taken over by user land after installation, and the kernel should not call close on it after that. The fix involves calling fd install after everything is ready, specifically after copy to user succeeds.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
DLA-4008-1
DSA-5731-1
INFSA-2024_9315
OESA-2024-1960
RHSA-2024:9315
RHSA-2024_9315
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-6999-1
USN-6999-2
USN-7004-1
USN-7005-1
USN-7005-2
USN-7008-1
USN-7029-1
Found an issue in the description? Have something to add? Feel free to write us 👾