Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2025-39813

kernel: Linux kernel: Denial of Service in ftrace due to race condition in trace_printk_seq

Overview

Published
16 Sep 2025
Modified
5 Nov 2026
Medium CVE
0 Registry packages
335 OS packages
13 Linux distributions
Yes Fix available

Description

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

ftrace: Fix potential warning in trace_printk_seq during ftrace_dump

When calling ftrace_dump_one() concurrently with reading trace_pipe, a WARN_ON_ONCE() in trace_printk_seq() can be triggered due to a race condition.

The issue occurs because:

CPU0 (ftrace_dump) CPU1 (reader) echo z > /proc/sysrq-trigger

!trace_empty(&iter) trace_iterator_reset(&iter) <- len = size = 0 cat /sys/kernel/tracing/trace_pipe trace_find_next_entry_inc(&iter) __find_next_entry ring_buffer_empty_cpu <- all empty return NULL

trace_printk_seq(&iter.seq) WARN_ON_ONCE(s->seq.len >= s->seq.size)

In the context between trace_empty() and trace_find_next_entry_inc() during ftrace_dump, the ring buffer data was consumed by other readers. This caused trace_find_next_entry_inc to return NULL, failing to populate iter.seq. At this point, due to the prior trace_iterator_reset, both iter.seq.len and iter.seq.size were set to 0. Since they are equal, the WARN_ON_ONCE condition is triggered.

Move the trace_printk_seq() into the if block that checks to make sure the return value of trace_find_next_entry_inc() is non-NULL in ftrace_dump_one(), ensuring the 'iter.seq' is properly populated before subsequent operations.

Source: OX vulnerability database

Severity

4.7 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-362

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 103 fixes

Azure Linux 1 release · 1 package

fixed 1
kernel
Azure Linux fixes for CVE-2025-39813
ReleasePackageFixed in
3.0 kernel 0:6.6.104.2-1.azl3

Oracle Linux 3 releases · 2 packages

fixed 4
kernel-uek bpftool
Oracle Linux fixes for CVE-2025-39813
ReleasePackageFixed in
7 kernel-uek +7 5.4.17-2136.348.3.el7uek
8 bpftool +13 5.15.0-314.193.5.3.el8uek
9 bpftool +3 5.15.0-314.193.5.3.el9uek
9 kernel-uek +34 6.12.0-105.51.5.el9uek

Photon OS 2 releases · 1 package

fixed 2
bpftool
Photon OS fixes for CVE-2025-39813
ReleasePackageFixed in
4.0 bpftool +9 5.10.244-1.ph4
5.0 bpftool +10 6.1.153-1.ph5

Red Hat 3 releases · 1 package

affected 3
bpftool
Red Hat fixes for CVE-2025-39813
ReleasePackageFixed in
7 bpftool +25 affected
8 bpftool +45 affected
9 bpftool +106 affected

SUSE Linux Enterprise 4 releases · 12 packages

fixed 19
kgraft-patch-4-12-14-122-293-default kgraft-patch-4-12-14-122-280-default cluster-md-kmp-default kernel-livepatch-6-4-0-150600-10-58-rt kernel-livepatch-6-4-0-150600-23-87-default kernel-livepatch-6-4-0-150600-23-78-default +6
SUSE Linux Enterprise fixes for CVE-2025-39813
ReleasePackageFixed inAdvisory
12.5 kgraft-patch-4-12-14-122-293-default 1-8.3.1 SUSE-SU-2026:0473-1
12.5 kgraft-patch-4-12-14-122-280-default 1-8.5.1 SUSE-SU-2025:4189-1
12.5 cluster-md-kmp-default +13 4.12.14-122.280.1 SUSE-SU-2025:4189-1
15.6 kernel-livepatch-6-4-0-150600-10-58-rt 1-150600.1.3.1 SUSE-SU-2025:4301-1
15.6 kernel-livepatch-6-4-0-150600-23-87-default 1-150600.13.3.1 SUSE-SU-2026:0471-1
15.6 kernel-livepatch-6-4-0-150600-23-78-default 1-150600.13.5.1 SUSE-SU-2025:4140-1

13 more rows

SUSE Linux Enterprise Micro 3 releases · 4 packages

fixed 8
kernel-default kernel-default-base kernel-devel-rt kernel-64kb
SUSE Linux Enterprise Micro fixes for CVE-2025-39813
ReleasePackageFixed inAdvisory
6.0 kernel-default +5 6.4.0-36.1 SUSE-SU-2025:21040-1
6.0 kernel-default-base 6.4.0-36.1.21.13 SUSE-SU-2025:21040-1
6.0 kernel-devel-rt +3 6.4.0-38.1 SUSE-SU-2025:21052-1
6.1 kernel-default +6 6.4.0-36.1 SUSE-SU-2025:21056-1
6.1 kernel-default-base 6.4.0-36.1.21.13 SUSE-SU-2025:21056-1
6.1 kernel-devel-rt +4 6.4.0-38.1 SUSE-SU-2025:21064-1

2 more rows

amazon linux 1 release · 3 packages

fixed 3
kernel-livepatch-6-1-150-174-273 bpftool bpftool6-12
amazon linux fixes for CVE-2025-39813
ReleasePackageFixed in
2023 kernel-livepatch-6-1-150-174-273 +1 1:1.0-0.amzn2023
2023 bpftool +20 1:6.1.150-174.273.amzn2023
2023 bpftool6-12 +20 1:6.12.46-66.121.amzn2023

debian 4 releases · 2 packages

fixed 5
linux linux-6-1
debian fixes for CVE-2025-39813
ReleasePackageFixed in
11 linux 5.10.244-1
11 linux-6-1 6.1.153-1~deb11u1
12 linux 6.1.153-1
13 linux 6.12.48-1
14 linux 6.16.5-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2025-39813
ReleasePackageFixed in
linux 1

openSUSE Leap 1 release · 3 packages

fixed 3
cluster-md-kmp-azure cluster-md-kmp-64kb kernel-default-base
openSUSE Leap fixes for CVE-2025-39813
ReleasePackageFixed inAdvisory
16.0 cluster-md-kmp-azure +9 6.12.0-160000.26.1 openSUSE-SU-2026:20287-1
16.0 cluster-md-kmp-64kb +64 6.12.0-160000.6.1 openSUSE-SU-2025:20081-1
16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 openSUSE-SU-2025:20081-1

root.io debian 3 releases · 2 packages

fixed 3
linux rootio-linux
root.io debian fixes for CVE-2025-39813
ReleasePackageFixed in
11 linux +1 5.10.244-1
12 rootio-linux 6.1.153-1
13 rootio-linux 6.12.48-1

root.io ubuntu 2 releases · 1 package

fixed 2
linux
root.io ubuntu fixes for CVE-2025-39813
ReleasePackageFixed in
22.04 linux +1 5.15.0-163.173
24.04 linux +1 6.8.0-106.106

ubuntu 3 releases · 38 packages

fixed 49
linux-nvidia-tegra-5-15 linux-ibm-5-15 linux-riscv-5-15 linux-intel-iotg-5-15 linux-oracle-5-15 linux-aws-5-15 +32
ubuntu fixes for CVE-2025-39813
ReleasePackageFixed in
20.04-ESM linux-nvidia-tegra-5-15 5.15.0-1049.49~20.04.1
20.04-ESM linux-ibm-5-15 5.15.0-1091.94~20.04.1
20.04-ESM linux-riscv-5-15 5.15.0-1092.96~20.04.1
20.04-ESM linux-intel-iotg-5-15 5.15.0-1092.98~20.04.1
20.04-ESM linux-oracle-5-15 5.15.0-1094.100~20.04.1
20.04-ESM linux-aws-5-15 5.15.0-1097.104~20.04.1

43 more rows

References

Show all 37 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.