{"id":"CVE-2023-54139","summary":"tracing/user_events: Ensure write index cannot be negative","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/user_events: Ensure write index cannot be negative\n\nThe write index indicates which event the data is for and accesses a\nper-file array. The index is passed by user processes during write()\ncalls as the first 4 bytes. Ensure that it cannot be negative by\nreturning -EINVAL to prevent out of bounds accesses.\n\nUpdate ftrace self-test to ensure this occurs properly.","modified":"2026-04-02T09:45:38.063363Z","published":"2025-12-24T13:06:54.094Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54139.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0489c2b2c3104b89f078dbcec8c744dfc157d3e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4fe46b5adf18e3dc606e62c9e6a0413398a17572"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cd98c93286a30cc4588dfd02453bec63c2f4acf4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa7f2f5d1739452280c22727c4384a52b72ab5de"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54139.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54139"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7f5a08c79df35e68f1a43033450c5050f12bc155"},{"fixed":"0489c2b2c3104b89f078dbcec8c744dfc157d3e9"},{"fixed":"4fe46b5adf18e3dc606e62c9e6a0413398a17572"},{"fixed":"fa7f2f5d1739452280c22727c4384a52b72ab5de"},{"fixed":"cd98c93286a30cc4588dfd02453bec63c2f4acf4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54139.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"6.1.28"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.2.15"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54139.json"}}],"schema_version":"1.7.5"}