PT-2025-3610 · Linux+4 · Linux Kernel+4
Published
2024-12-17
·
Updated
2025-10-03
·
CVE-2024-57885
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.6.74
Description
A bug in the Linux kernel triggers a "sleeping function called from invalid context" warning when /sys/kernel/debug/kmemleak is printed under specific conditions, including when CONFIG PREEMPT RT=y, SELinux is set as the LSM, kptr restrict is set to 1, and the kmemleak buffer contains at least one item. The issue occurs due to an unnecessary privilege check CAP SYSLOG enforced through the LSM, which can trigger the warning under RT PREEMPT kernels when the check occurs in an atomic context. This problem may also affect other LSMs.
Recommendations
To resolve the issue, update the Linux kernel to version 6.6.74 or later.
As a temporary workaround, consider disabling the
kmemleak seq show function until a patch is available.
Restrict access to the /sys/kernel/debug/kmemleak file to minimize the risk of exploitation.
Avoid using the print unreferenced function in the affected API endpoint until the issue is resolved.Exploit
Fix
Insufficient Verification of Data Authenticity
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Linuxmint
Linux Kernel
Red Hat
Ubuntu