CVE-2026-89747
tracing: Fix use-after-free in trace_pipe read on sub-buffer order change
Check your servers for CVE-2026-89747
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89747 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
tracing: Fix use-after-free in trace_pipe read on sub-buffer order change
Writing to buffer_subbuf_size_kb calls ring_buffer_subbuf_order_set(), which frees every sub-buffer of the ring buffer, including the reader page, and replaces them with newly allocated ones.
Readers of trace_pipe hold pointers into those pages. ring_buffer_peek() looks up an event under cpu_buffer->reader_lock but returns the event pointer after dropping the lock, and peek_next_entry() then calls ring_buffer_event_length() and ring_buffer_event_data() on it. If the sub-buffer order is changed in that window, the reader dereferences freed memory:
BUG: KASAN: use-after-free in ring_buffer_peek+0x3e0/0x430 Read of size 1 at addr ffff88802a4cf010 by task syz-executor989/6002
Freed by: free_buffer_page kernel/trace/ring_buffer.c:398 [inline] ring_buffer_subbuf_order_set+0x1325/0x18e0 kernel/trace/ring_buffer.c:7444 buffer_subbuf_size_write+0x182/0x280 kernel/trace/trace.c:8221
Take trace_access_lock(RING_BUFFER_ALL_CPUS) around the order change. This is the lock trace_pipe readers already hold across their entire peek-and-print loop, so the swap can no longer race with a reader that is dereferencing a peeked event.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.75% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f9b94daa542a8d2532f0930f01cd9aec2d19621b, before 05ebe1e1d7d38c2612bacfefe043a33572ae34cb affected from f9b94daa542a8d2532f0930f01cd9aec2d19621b, before ddbe921ed16a0ad2d9e09574c3f3aabec7528325 affected from f9b94daa542a8d2532f0930f01cd9aec2d19621b, before 7a49d19ff9baaf61217e5ec14199c18bc2d93ee4 affected from f9b94daa542a8d2532f0930f01cd9aec2d19621b, before 372f8534244d632ad5118e8a87a11291b01712d3
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 6.12.109 up to and including 6.12.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89747 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89747
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89747
trivy image --scanners vuln IMAGE | grep CVE-2026-89747
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/05ebe1e1d7d38c2612bacfefe043a33572ae34cb git.kernel.org
- https://git.kernel.org/stable/c/ddbe921ed16a0ad2d9e09574c3f3aabec7528325 git.kernel.org
- https://git.kernel.org/stable/c/7a49d19ff9baaf61217e5ec14199c18bc2d93ee4 git.kernel.org
- https://git.kernel.org/stable/c/372f8534244d632ad5118e8a87a11291b01712d3 git.kernel.org
Source: the record CVE-2026-89747 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse