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 cachefilesreq) stored in the slot has no such guarantee. The poll routine will iterate the radix tree and dereference cachefilesreq accordingly. Thus RCU read lock is not adequate in this case and spinlock is needed here.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42250?
CVE-2024-42250 is classified as a medium severity vulnerability due to potential race conditions in the Linux kernel.
How do I fix CVE-2024-42250?
To fix CVE-2024-42250, update your Linux kernel to version 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.
Which versions of the Linux kernel are affected by CVE-2024-42250?
CVE-2024-42250 affects various versions of the Linux kernel including those prior to 6.12.11.
What are the risks associated with CVE-2024-42250?
The risks associated with CVE-2024-42250 may include potential system crashes or unexpected behavior due to improper lock handling.
Is CVE-2024-42250 a critical vulnerability?
CVE-2024-42250 is not classified as a critical vulnerability but can lead to significant issues if exploited.