CVE-2024-36019 regmap: maple: Fix cache corruption in regcache_maple_drop()
An out-of-bounds access in the Linux kernel regmap cache allows copying kernel memory over cache contents, leading to data corruption and potential information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-36019?
CVE-2024-36019 is a high-severity memory corruption vulnerability in Linux kernel, published on 30 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-125
Which versions are affected by CVE-2024-36019?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-36019?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-36019 being exploited?
There is no known exploitation of CVE-2024-36019 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-36019, DEBIAN-CVE-2024-36019, UBUNTU-CVE-2024-36019.