# CVE-2023-54139: tracing/user_events: Ensure write index cannot be negative

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

## Description

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

tracing/user_events: Ensure write index cannot be negative

The write index indicates which event the data is for and accesses a
per-file array. The index is passed by user processes during write()
calls as the first 4 bytes. Ensure that it cannot be negative by
returning -EINVAL to prevent out of bounds accesses.

Update ftrace self-test to ensure this occurs properly.

(As written by CVE List.)

## Affected

- Linux Linux: from 7f5a08c79df35e68f1a43033450c5050f12bc155 before 0489c2b2c3104b89f078dbcec8c744dfc157d3e9; from 7f5a08c79df35e68f1a43033450c5050f12bc155 before 4fe46b5adf18e3dc606e62c9e6a0413398a17572; from 7f5a08c79df35e68f1a43033450c5050f12bc155 before fa7f2f5d1739452280c22727c4384a52b72ab5de; from 7f5a08c79df35e68f1a43033450c5050f12bc155 before cd98c93286a30cc4588dfd02453bec63c2f4acf4; 5.18 (not affected: before 5.18; from 6.1.28 up to 6.1.*; from 6.2.15 up to 6.2.*; from 6.3.2 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/0489c2b2c3104b89f078dbcec8c744dfc157d3e9>
- <https://git.kernel.org/stable/c/4fe46b5adf18e3dc606e62c9e6a0413398a17572>
- <https://git.kernel.org/stable/c/fa7f2f5d1739452280c22727c4384a52b72ab5de>
- <https://git.kernel.org/stable/c/cd98c93286a30cc4588dfd02453bec63c2f4acf4>

## Sources

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

---

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