# CVE-2024-42250: cachefiles: add missing lock protection when polling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-08-07T15:14:33.997Z
- **Modified:** 2026-08-05T11:36:04.678Z

## Who should check

- Anyone running Linux \>= 0e19a18f998dcabe8be590e0b39660a1f230209b, \< 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7; \>= 18943864342705fa18dd4e6b8d608491fec81f6e, \< 6bb6bd3dd6f382dfd36220d4b210a0c77c066651; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< 8eadcab7f3dd809edbe5ae20533ff843dfea3a07; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< cf5bb09e742a9cf6349127e868329a8f69b7a014
- Anyone running Linux 6.8

## Description

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.

## Affected and fixed versions

- Linux: \>= 0e19a18f998dcabe8be590e0b39660a1f230209b, \< 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7; \>= 18943864342705fa18dd4e6b8d608491fec81f6e, \< 6bb6bd3dd6f382dfd36220d4b210a0c77c066651; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< 8eadcab7f3dd809edbe5ae20533ff843dfea3a07; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< cf5bb09e742a9cf6349127e868329a8f69b7a014 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42250. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42250.md
Affected: Linux >= 0e19a18f998dcabe8be590e0b39660a1f230209b, < 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7; >= 18943864342705fa18dd4e6b8d608491fec81f6e, < 6bb6bd3dd6f382dfd36220d4b210a0c77c066651; >= b817e22b2e91257ace32a6768c3c003faeaa1c5c, < 8eadcab7f3dd809edbe5ae20533ff843dfea3a07; >= b817e22b2e91257ace32a67…
Fixed in: Linux 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7, Linux 6bb6bd3dd6f382dfd36220d4b210a0c77c066651, Linux 8eadcab7f3dd809edbe5ae20533ff843dfea3a07

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-42250 being exploited?

There is no confirmed exploitation: CVE-2024-42250 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-42250?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-42250?

Linux \>= 0e19a18f998dcabe8be590e0b39660a1f230209b, \< 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7; \>= 18943864342705fa18dd4e6b8d608491fec81f6e, \< 6bb6bd3dd6f382dfd36220d4b210a0c77c066651; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< 8eadcab7f3dd809edbe5ae20533ff843dfea3a07; \>= b817e22b2e91257ace32a6768c3c003faeaa1c5c, \< cf5bb09e742a9cf6349127e868329a8f69b7a014; Linux 6.8.

### Is there a fix for CVE-2024-42250?

Yes. Fixed in Linux 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7, Linux 6bb6bd3dd6f382dfd36220d4b210a0c77c066651, Linux 8eadcab7f3dd809edbe5ae20533ff843dfea3a07. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-42250?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/97cfd5e20ddc2e33e16ce369626ce76c9a475fd7>
- patch: <https://git.kernel.org/stable/c/6bb6bd3dd6f382dfd36220d4b210a0c77c066651>
- patch: <https://git.kernel.org/stable/c/8eadcab7f3dd809edbe5ae20533ff843dfea3a07>
- patch: <https://git.kernel.org/stable/c/cf5bb09e742a9cf6349127e868329a8f69b7a014>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42250>

HTML: <https://flawdb.com/CVE-2024-42250> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42250>
