CVE-2024-42250: cachefiles: add missing lock protection when polling
In the Linux kernel, the following vulnerability has been resolved:
cachefiles: add missing lock protection when polling
Add missing lock protection in poll routine when iterating xarray,
otherwise:
Even with RCU read lock held, only the slot of the radix tree is
ensured to be pinned there, while the data structure (e.g. struct
cachefiles_req) stored in the slot has no such guarantee. The poll
routine will iterate the radix tree and dereference cachefiles_req
accordingly. Thus RCU read lock is not adequate in this case and
spinlock is needed here.
Security readout for executives and security teams
Plain-English summary
A Linux CacheFiles locking flaw may let a low-privileged local user trigger unsafe kernel-memory access during polling. Its supplied CVSS score is 7.8, reflecting potentially high confidentiality, integrity, and availability impact. It is not described as remotely reachable, and the sources do not establish real-world exploitation.
Executive priority
Prioritize patching hosts where untrusted users or workloads have local access and CacheFiles is used. Validate exposure before emergency action on systems lacking those conditions. This is a high-severity local kernel issue, but the supplied evidence does not indicate an internet-wide remote emergency or active exploitation.
Technical view
The CacheFiles poll routine iterates an xarray and dereferences cachefiles_req objects while holding only an RCU read lock. RCU pins the radix-tree slot, not necessarily the stored object, creating a lifetime race. The fix adds spinlock protection around iteration. Supplied affected releases include Linux 6.8, 6.9.10, and 6.10; distribution backports require separate confirmation.
Likely exposure
Exposure is most likely where an affected Linux kernel uses CacheFiles and a local account or process can reach the polling path. Internet exposure alone is insufficient under the supplied local attack vector. Distribution kernels may backport fixes without changing their apparent upstream version, making package-level verification important.
Exploitation context
The CVSS vector describes a local, low-complexity attack requiring low privileges but no user interaction. The CVE is not listed in KEV, and the supplied sources provide no evidence of active exploitation. They also provide no exploit availability or observed-incident information.
Researcher notes
The root issue is inadequate object-lifetime protection during xarray traversal; RCU protects the slot but not the referenced cachefiles_req. No CWE, reproducer, or exploitation evidence is supplied. Version metadata mixes affected releases with commit hashes marked unaffected, including a duplicate, so evaluate upstream ancestry and distribution backport documentation carefully.
Mitigation direction
Update affected systems to a vendor-supported kernel confirmed to contain the referenced CacheFiles locking fix.
Check distribution advisories and package changelogs for CVE-2024-42250 and applicable backport status.
If updating is delayed, consult the kernel or distribution vendor; the supplied sources name no compensating control.
Validation and detection
Inventory running kernel versions and flag vendor builds corresponding to the affected upstream releases.
Determine whether CacheFiles is enabled or used on each potentially affected host.
Verify the installed kernel contains a referenced fix commit or an explicitly documented vendor backport.
After updating, confirm the fixed kernel is the active running kernel.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-42250 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.