CVE-2024-36019
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-36019 is a vulnerability discovered in the Linux kernel's regmap subsystem, specifically in the regcachemapledrop() function. The vulnerability was disclosed on May 30, 2024, affecting the maple tree-based register cache implementation (Kernel Git).

Technical details

The vulnerability stems from improper indexing in the regcachemapledrop() function. 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 (max - mas.index), but the code was incorrectly indexing entry[] by only the register address. This led to an out-of-bounds access that copied kernel memory over the cache contents. The issue went undetected by regmap KUnit tests because they only tested with register blocks starting at 0, where mas.index equals 0 (Kernel Git).

Impact

The vulnerability results in cache corruption due to out-of-bounds memory access, which could potentially expose sensitive kernel memory contents and affect system stability (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel with a fix that corrects the array indexing in the regcachemapledrop() function. The fix has been backported to various stable kernel versions. Users should update their systems to the patched kernel version (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management