Critical Warning Fix in Linux Kernel: slub/kunit Vulnerability in Debian Packages
Summary
DEBIAN-CVE-2024-53049: In the Linux kernel, the following vulnerability has been resolved: slub/kunit: fix a WARNING due to unwrapped kmalloc_cache_noprof 'modprobe slub_kunit' will have a warning as shown below. Affects linux versions < 6.11.7-1. Fixed in 6.11.7-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It is widely used across various distributions, including Debian. The kernel's stability and security are paramount, as vulnerabilities can lead to system crashes, data loss, or unauthorized access. This specific vulnerability affects the slub/kunit functionality, which is used for memory allocation testing within the kernel.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the slub/kunit module, which results in a warning when using the __kmalloc_cache_noprof function. The root cause is the direct usage of this function without allocating an alloc_tag, leading to a null current->alloc_tag. This oversight triggers a warning during memory allocation checks, potentially indicating deeper issues in memory management and stability. The warning message is as follows: WARNING: CPU: 2 PID: 6210 at ./include/linux/alloc_tag.h:125 alloc_tagging_slab_alloc_hook+0x268/0x27c. This could affect the reliability of memory allocation in kernel tests, which may lead to unexpected behavior during kernel operations.
How To Fix
Minimum fixed version
6.11.7-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the Linux kernel to the fixed version.
Conclusion
The identified vulnerability in the Linux kernel's slub/kunit module poses a significant risk to system stability and memory management. It is crucial for users of Debian 13 and 14 to update their Linux packages to version 6.11.7-1 or later to mitigate this issue. Regular monitoring and prompt updates are essential to maintain system security.
See every vulnerability recorded for linux →
FAQ
The vulnerability is a warning triggered by improper usage of the __kmalloc_cache_noprof function in the slub/kunit module, leading to potential memory management issues.
You can check if your system is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.
Failure to address this vulnerability may lead to unreliable memory allocation during kernel operations, potentially causing system instability or crashes.
Yes, the vulnerability affects the Linux packages in Debian 13 and Debian 14 prior to version 6.11.7-1.
If immediate updating is not possible, monitor your system for unusual behavior and consider isolating critical applications until the update can be applied.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.