# CVE-2024-36019: regmap: maple: Fix cache corruption in regcache_maple_drop()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-30T14:59:42.840Z
- Modified: 2026-08-05T11:31:39.239Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f033c26de5a5734625d2dd1dc196745fae186f1b before 3af6c5ac72dc5b721058132a0a1d7779e443175e; from f033c26de5a5734625d2dd1dc196745fae186f1b before 51c4440b9d3fd7c8234e6de9170a487c03506e53; from f033c26de5a5734625d2dd1dc196745fae186f1b before 00bb549d7d63a21532e76e4a334d7807a54d9f31; 6.4 (not affected: before 6.4; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.4 before 6.6.26; from 6.7 before 6.8.5; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/3af6c5ac72dc5b721058132a0a1d7779e443175e> (patch)
- <https://git.kernel.org/stable/c/51c4440b9d3fd7c8234e6de9170a487c03506e53> (patch)
- <https://git.kernel.org/stable/c/00bb549d7d63a21532e76e4a334d7807a54d9f31> (patch)

## Sources

- CVE List: [CVE-2024-36019](https://www.cve.org/CVERecord?id=CVE-2024-36019), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-36019](https://nvd.nist.gov/vuln/detail/CVE-2024-36019), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-36019 · Whole record: https://cve.day/CVE-2024-36019.json · Rebuilt by cve.day 2026-11-25T22:58:41.107Z
