Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-54139

published high CVSS 3.1 · 7.8

tracing/user_events: Ensure write index cannot be negative

Published
24 Dec 2025, 13:06:54 UTC
Updated
05 Aug 2026, 09:17:34 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7f5a08c79df35e68f1a43033450c5050f12bc155 to < 0489c2b2c3104b89f078dbcec8c744dfc157d3e9 · 7f5a08c79df35e68f1a43033450c5050f12bc155 to < 4fe46b5adf18e3dc606e62c9e6a0413398a17572 · 7f5a08c79df35e68f1a43033450c5050f12bc155 to < fa7f2f5d1739452280c22727c4384a52b72ab5de · 7f5a08c79df35e68f1a43033450c5050f12bc155 to < cd98c93286a30cc4588dfd02453bec63c2f4acf4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.1.28 through 6.1.* (unaffected · semver) · 6.2.15 through 6.2.* (unaffected · semver) · 6.3.2 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached only through local file operations — `ioctl()`/`write()`/`writev()` on the tracefs file `/sys/kernel/tracing/user_events_data`. There is no network or remote-peer data path into `user_events_write_core()`. AC:L - Triggering is fully deterministic — the attacker registers an event, then writes a payload whose first 4 bytes are a negative integer, and the signed comparison `idx < refs->count` is bypassed every time. No race, timing window, or condition outside the attacker's control is involved, and the attacker can freely groom the slab to influence what the OOB read returns. PR:L - The registration ioctl and the write path contain no capability checks; the only gate is write access to the tracefs `user_events_data` file, which this feature exists specifically to grant to ordinary unprivileged applications (via tracefs `gid=` mounts or relaxed permissions in tracing-enabled deployments). An unprivileged local user with the intended tracing access can trigger it, so no administrative privilege is needed. UI:N - The attacker performs the entire sequence — open, `DIAG_IOCSREG`, then a `writev()` with a negative index — within their own process. No victim action, mount, or interaction of any kind is required. S:U - The out-of-bounds access and resulting type confusion occur entirely within the kernel's own memory and security authority. There is no crossing of a VM, IOMMU, or sandbox boundary — this is a standard local kernel compromise. C:H - A negative index yields a pointer-sized out-of-bounds read anywhere within roughly 16 GB below the `user_event_refs` allocation, and the resulting bogus `struct user_event *` is dereferenced to read `min_size`, `tracepoint`, and `call` fields, whose contents are then emitted into trace/perf buffers readable by the attacker. This constitutes an effectively arbitrary kernel-memory read primitive. I:H - The OOB-read value is used as a `struct user_event *` and reaches `probe_func = probe_func_ptr->func; probe_func(user, ...)`, an indirect call through an attacker-influenced pointer chain. Combined with heap grooming of the small `kmalloc` slab, this gives type confusion escalating to control-flow hijack and arbitrary kernel writes. A:H - Even without any exploitation effort, indexing arbitrarily far below the allocation and dereferencing the resulting garbage pointer reliably produces a kernel oops or panic. The fault is trivially and repeatedly reproducible by an unprivileged process, making it a dependable local denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7f5a08c79df35e68f1a43033450c5050f12bc155 to < 0489c2b2c3104b89f078dbcec8c744dfc157d3e9 (affected · git)7f5a08c79df35e68f1a43033450c5050f12bc155 to < 4fe46b5adf18e3dc606e62c9e6a0413398a17572 (affected · git)7f5a08c79df35e68f1a43033450c5050f12bc155 to < fa7f2f5d1739452280c22727c4384a52b72ab5de (affected · git)7f5a08c79df35e68f1a43033450c5050f12bc155 to < cd98c93286a30cc4588dfd02453bec63c2f4acf4 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.18 (affected)0 to < 5.18 (unaffected · semver)6.1.28 through 6.1.* (unaffected · semver)6.2.15 through 6.2.* (unaffected · semver)6.3.2 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

tracing/user_events: Ensure write index cannot be negative

Provenance

Schema
5.2
Searchable
yes
Content hash
62c3c73ca30b0176627130271c652ee37702f3db9e66395b847c0c6c3abb6f75
Ingested
23 Sep 2026, 08:15:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected