CVE-2024-36891

maple_tree: fix mas_empty_area_rev() null pointer dereference

MEDIUM
5.5
CVSS Score
Published: May 30, 2024 at 03:28 PM UTC
Updated: June 17, 2026 at 07:37 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1 ≤ v < 6.1.946.1 ≤ v < 6.6.316.1 ≤ v < 6.8.106.1 ≤ v < 6.96.7 ≤ v < 6.8.1054a611b605901c7d5d05b6b8f5d04a6ceb0962aa6.1
Vendor states this is fixed in 6c9c7c1e63b198a8b979ad963eb21410f10ccb00 (fixed)
Vendor states this is fixed in 883e5d542bbdddbddeba60250cb482baf3ae2415 (fixed)
Vendor states this is fixed in 955a923d2809803980ff574270f81510112be9cf (fixed)
Vendor states this is fixed in f3956791cf526540addd3295e4c1e0f0442486cc (fixed)
Vendor states this is fixed in 6.1 (unaffected)
Vendor states this is fixed in 6.1.94 (unaffected)
Vendor states this is fixed in 6.6.31 (unaffected)
Vendor states this is fixed in 6.8.10 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (4)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card