CVE-2025-38285

5.5 MEDIUM

📋 TL;DR

A Linux kernel vulnerability in the BPF subsystem where nested tracepoint calls trigger a WARN_ON_ONCE warning, potentially causing kernel panic or system instability. This affects systems running vulnerable Linux kernel versions with BPF tracing enabled. The issue was discovered through syzkaller fuzzing.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific versions containing the vulnerable code (exact range depends on kernel distribution backports)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Requires BPF tracing functionality and specific tracepoint usage patterns. Not all systems with vulnerable kernels will be exploitable.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, potentially disrupting critical services.

🟠

Likely Case

System instability or crash when specific BPF programs trigger nested tracepoint calls, primarily affecting debugging/tracing scenarios.

🟢

If Mitigated

Minor performance impact or warning messages in logs if BPF tracing is disabled or limited.

🌐 Internet-Facing: LOW - Requires local access and specific BPF program execution.
🏢 Internal Only: MEDIUM - Local users or processes with CAP_BPF privileges could trigger the issue, potentially causing system instability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires local access and ability to load BPF programs (typically requires CAP_BPF or root privileges). Discovered through fuzzing, not known to be actively exploited.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions with commit 147ea936fc6fa8fe0c93f0df918803a5375ca535 or later

Vendor Advisory: https://git.kernel.org/stable/c/147ea936fc6fa8fe0c93f0df918803a5375ca535

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version. 2. Check distribution-specific security advisories. 3. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable BPF tracing

linux

Prevent BPF programs from using raw tracepoints that could trigger the nested call issue

sysctl -w kernel.bpf_disabled=1

Restrict BPF capabilities

linux

Limit which users can load BPF programs using capabilities or namespaces

setcap -r /usr/bin/bpftool
Remove CAP_BPF from non-essential users

🧯 If You Can't Patch

  • Implement strict BPF program auditing and monitoring
  • Isolate critical systems and limit BPF usage to trusted processes only

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if commit 147ea936fc6fa8fe0c93f0df918803a5375ca535 is missing: uname -r && git log --oneline | grep '147ea936fc6fa8fe0c93f0df918803a5375ca535'

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version includes the fix commit: grep -q '147ea936fc6fa8fe0c93f0df918803a5375ca535' /proc/version || echo 'Patched'

📡 Detection & Monitoring

Log Indicators:

  • Kernel WARN messages about get_bpf_raw_tp_regs
  • System crashes or instability when BPF tracing is active

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="kernel" AND "WARNING.*get_bpf_raw_tp_regs" OR "kernel panic"

🔗 References

📤 Share & Export