CVE-2024-42250

cachefiles: add missing lock protection when polling

State
Published
Severity
7.8 High
Published
Aug 7, 2024
Updated
Aug 5, 2026
Reserved
Jul 30, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0e19a18f998dcabe8be590e0b39660a1f230209b to before 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7Affected
  • 18943864342705fa18dd4e6b8d608491fec81f6e to before 6bb6bd3dd6f382dfd36220d4b210a0c77c066651Affected
  • b817e22b2e91257ace32a6768c3c003faeaa1c5c to before 8eadcab7f3dd809edbe5ae20533ff843dfea3a07Affected
  • b817e22b2e91257ace32a6768c3c003faeaa1c5c to before cf5bb09e742a9cf6349127e868329a8f69b7a014Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.