# CVE-2024-36891: maple_tree: fix mas_empty_area_rev() null pointer dereference

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-30T15:28:57.939Z
- Modified: 2026-06-17T07:37:17.273Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

maple_tree: fix mas_empty_area_rev() null pointer dereference

Currently the code calls mas_start() followed by mas_data_end() if the
maple state is MA_START, but mas_start() may return with the maple state
node == NULL.  This will lead to a null pointer dereference when checking
information in the NULL node, which is done in mas_data_end().

Avoid setting the offset if there is no node by waiting until after the
maple state is checked for an empty or single entry state.

A user could trigger the events to cause a kernel oops by unmapping all
vmas to produce an empty maple tree, then mapping a vma that would cause
the scenario described above.

(As written by CVE List.)

## Affected

- Linux Linux: from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before 883e5d542bbdddbddeba60250cb482baf3ae2415; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before 6c9c7c1e63b198a8b979ad963eb21410f10ccb00; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before f3956791cf526540addd3295e4c1e0f0442486cc; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before 955a923d2809803980ff574270f81510112be9cf; 6.1 (not affected: before 6.1; from 6.1.94 up to 6.1.*; from 6.6.31 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.1 before 6.6.31; from 6.7 before 6.8.10

## References

- <https://git.kernel.org/stable/c/883e5d542bbdddbddeba60250cb482baf3ae2415>
- <https://git.kernel.org/stable/c/6c9c7c1e63b198a8b979ad963eb21410f10ccb00> (patch)
- <https://git.kernel.org/stable/c/f3956791cf526540addd3295e4c1e0f0442486cc> (patch)
- <https://git.kernel.org/stable/c/955a923d2809803980ff574270f81510112be9cf> (patch)

## Sources

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

---

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