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

- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-12-24T13:06:51.329Z
- Modified: 2026-08-05T09:17:33.212Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before 4e2ad53ababeaac44d71162650984abfe783960c; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before dc4751bd4aba01ccfc02f91adfeee0ba4cda405c; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before f5fcf6555a2a4f32947d17b92b173837cc652891; from 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa before cd00dd2585c4158e81fdfac0bbcc0446afbad26d; 6.1 (not affected: before 6.1; from 6.1.37 up to 6.1.*; from 6.3.11 up to 6.3.*; from 6.4.1 up to 6.4.*; from 6.5 up to *)

## References

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

## Sources

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

---

Page: https://cve.day/CVE-2023-54135 · Whole record: https://cve.day/CVE-2023-54135.json · Rebuilt by cve.day 2026-11-25T22:58:35.190Z
