CVE-2024-36019·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: regmap: maple: Fix cache corruption in regcache_maple_drop() When keeping the upper end of a cache block entry, the entry[] array must be indexed by the offset from the base register of the block, i.e. max - mas.index. The code was indexing entry[] by only the register address, leading to an out-of-bounds access that copied some part of the kernel memory over the cache contents. This bug was not detected by the regmap KUnit test because it only tests with a block of registers starting at 0, so mas.index == 0.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.5
- Published
- 2024-05-30
Affected versions
From: 6.7
Until: 6.8.5
Fixed in: 6.8.5
How to fix this CVE
Update your Linux kernel to version 6.8.5 or later to patch a memory corruption vulnerability in the regmap maple cache subsystem. This vulnerability can cause kernel memory to be written into cache structures, potentially leading to system instability or data corruption. Systems running kernel versions 6.7 through 6.8.4 should prioritize this update immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version—vulnerable versions are 6.7.x through 6.8.4
- Check if regmap is loaded in your kernel with 'grep -i regmap /proc/config.gz | gunzip' or 'cat /boot/config-$(uname -r) | grep REGMAP'
- Monitor system logs with 'dmesg | tail -50' and 'journalctl -xe' for memory corruption warnings, kernel panics, or unusual cache-related errors
- After patching, verify the new kernel version with 'uname -r' and confirm it is 6.8.5 or later
FAQ
What is CVE-2024-36019?
This is a memory corruption vulnerability in the Linux kernel's regmap maple cache implementation where incorrect array indexing causes kernel memory to overwrite cache contents. The bug occurs when the cache drops upper portions of register blocks.
Is CVE-2024-36019 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available.
What versions of Kernel are affected by CVE-2024-36019?
Linux kernel versions 6.7.0 through 6.8.4 are vulnerable. Version 6.8.5 and later include the patch.
How do I check if my server is vulnerable to CVE-2024-36019?
Run 'uname -r' and compare the output to the affected range (6.7–6.8.4). If your kernel version falls within this range, your system is vulnerable.
Does Defensia detect CVE-2024-36019?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-36019 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/00bb549d7d63a21532e76e4a334d7807a54d9f31
- https://git.kernel.org/stable/c/3af6c5ac72dc5b721058132a0a1d7779e443175e
- https://git.kernel.org/stable/c/51c4440b9d3fd7c8234e6de9170a487c03506e53
- https://git.kernel.org/stable/c/00bb549d7d63a21532e76e4a334d7807a54d9f31
- https://git.kernel.org/stable/c/3af6c5ac72dc5b721058132a0a1d7779e443175e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36019. Free for 1 server.
Get started free