# CVE-2023-54135: maple\_tree: fix potential out-of-bounds access in mas\_wr\_end\_piv()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-24T13:06:51.329Z
- **Modified:** 2026-08-05T09:17:33.212Z

## Who should check

- Anyone running Linux \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< 4e2ad53ababeaac44d71162650984abfe783960c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< dc4751bd4aba01ccfc02f91adfeee0ba4cda405c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< f5fcf6555a2a4f32947d17b92b173837cc652891; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< cd00dd2585c4158e81fdfac0bbcc0446afbad26d
- Anyone running Linux 6.1

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

## Affected and fixed versions

- Linux: \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< 4e2ad53ababeaac44d71162650984abfe783960c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< dc4751bd4aba01ccfc02f91adfeee0ba4cda405c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< f5fcf6555a2a4f32947d17b92b173837cc652891; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< cd00dd2585c4158e81fdfac0bbcc0446afbad26d (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54135. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54135.md
Affected: Linux >= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < 4e2ad53ababeaac44d71162650984abfe783960c; >= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < dc4751bd4aba01ccfc02f91adfeee0ba4cda405c; >= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < f5fcf6555a2a4f32947d17b92b173837cc652891; >= 54a611b605901c7d5d05b6b…
Fixed in: Linux 4e2ad53ababeaac44d71162650984abfe783960c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54135 being exploited?

There is no confirmed exploitation: CVE-2023-54135 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54135?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54135?

Linux \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< 4e2ad53ababeaac44d71162650984abfe783960c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< dc4751bd4aba01ccfc02f91adfeee0ba4cda405c; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< f5fcf6555a2a4f32947d17b92b173837cc652891; \>= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, \< cd00dd2585c4158e81fdfac0bbcc0446afbad26d; Linux 6.1.

### Is there a fix for CVE-2023-54135?

Yes. Fixed in Linux 4e2ad53ababeaac44d71162650984abfe783960c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54135?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4e2ad53ababeaac44d71162650984abfe783960c>
- other: <https://git.kernel.org/stable/c/dc4751bd4aba01ccfc02f91adfeee0ba4cda405c>
- other: <https://git.kernel.org/stable/c/f5fcf6555a2a4f32947d17b92b173837cc652891>
- other: <https://git.kernel.org/stable/c/cd00dd2585c4158e81fdfac0bbcc0446afbad26d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54135>

HTML: <https://flawdb.com/CVE-2023-54135> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54135>
