PT-2024-29137 · Linux+5 · Linux Kernel+5
Nam Cao
·
Published
2024-05-15
·
Updated
2026-03-14
·
CVE-2024-40915
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.9.0
Description
The issue is related to the
kernel map pages() function, which is a debug function that clears the valid bit in page table entries for deallocated pages to detect illegal memory accesses to freed pages. This function uses set memory() to set or clear the valid bit, and set memory() acquires init mm's semaphore, which may sleep. However, kernel map pages() can be called in atomic context, making it illegal to sleep. An example warning is provided, showing a BUG message indicating a sleeping function called from an invalid context.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Improper Locking
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Ubuntu