CVE-2023-54135 maple_tree: fix potential out-of-bounds access in mas_wr_end_piv()

High 7.8 Published Updated

An out-of-bounds access in the Linux kernel's maple tree implementation could allow attackers to cause memory corruption or denial of service.

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-2023-54135?

CVE-2023-54135 is a high-severity memory corruption vulnerability in Linux, published on 24 Dec 2025. 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:

maple_tree: fix potential out-of-bounds access in mas_wr_end_piv()

Check the write offset end bounds before using it as the offset into the pivot array. This avoids a possible out-of-bounds access on the pivot array if the write extends to the last slot in the node, in which case the node maximum should be used as the end pivot.

akpm: this doesn't affect any current callers, but new users of mapletree may encounter this problem if backported into earlier kernels, so let's fix it in -stable kernels in case of this.

Which versions are affected by CVE-2023-54135?

How do I fix CVE-2023-54135?

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-2023-54135 being exploited?

There is no known exploitation of CVE-2023-54135 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54135, DEBIAN-CVE-2023-54135, GHSA-6745-68h7-96pp, UBUNTU-CVE-2023-54135.

Is CVE-2023-54135 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free