Skip to main content

Linux Kernel EUVDEUVD-2025-201626

| CVE-2025-40319 HIGH
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local BPF-load privileges
  2. Delivery
    Attach ringbuf BPF program to sched_switch
  3. Exploit
    Call bpf_ringbuf_commit() to queue irq_work
  4. Execution
    Free ring buffer to win race
  5. Persist
    irq_work accesses freed memory
  6. Impact
    Corrupt kernel memory for privilege escalation

Vulnerability Assessment

Exploitation Conditions

Requires local code execution plus the ability to load and attach a BPF program that uses a BPF_MAP_TYPE_RINGBUF map and calls bpf_ringbuf_commit() - in the reproducer, attached to the sched_switch tracepoint. Exploitation is limited by: (1) BPF load privileges - on default hardened systems this needs CAP_BPF or CAP_SYS_ADMIN and kernel.unprivileged_bpf_disabled must not be set, otherwise unprivileged users cannot reach the vulnerable path; (2) winning a timing race between irq_work execution and ring buffer free (a probabilistic, retry-heavy condition, not deterministic); and (3) running an affected, unpatched kernel branch. There is no network vector and no remote exploitation (AV:L).

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) reflects a local, low-privilege bug with full CIA impact - consistent with a kernel UAF that can corrupt memory. However, signals conflict on real-world urgency: EPSS is only 0.05% (16th percentile), the CVE is not in CISA KEV, and no public PoC beyond the syzbot reproducer is referenced, indicating no evidence of active or widespread exploitation. The vector's AC:L is arguably optimistic - this is a timing race, which typically warrants AC:H, so reliable exploitation may be harder than the score implies. Additionally, triggering it requires the ability to load and attach BPF programs, which on hardened/default systems needs CAP_BPF or CAP_SYS_ADMIN and unprivileged BPF disabled (kernel.unprivileged_bpf_disabled) - a meaningful limiter the CVSS PR:L only partially captures. Net: a legitimate defense-in-depth kernel patch, but a moderate/low real-world priority relative to network-facing or KEV-listed bugs, absent a demonstrated exploit.

Exploit ScenarioDerived

A local user (or a container/workload granted BPF privileges) loads a BPF program that attaches to the sched_switch tracepoint and repeatedly calls bpf_ringbuf_commit() to queue irq_work, then rapidly frees the ring buffer to win the race and cause the irq_work handler to touch freed memory. By grooming the freed slab, the attacker turns the use-after-free into controlled kernel memory corruption for privilege escalation or information disclosure. No public exploit is identified at time of analysis; only the syzbot reproducer that surfaced the bug is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 30, 2026

Local privilege escalation and kernel memory corruption in the Linux kernel's BPF ring buffer subsystem allows a low-privileged user capable of loading BPF programs to trigger a use-after-free. A race exists where irq_work queued in bpf_ringbuf_commit() can execute after the ring buffer is freed, letting the irq_work handler access freed memory - a bug found by syzbot via a BPF program attached to sched_switch. The fix adds irq_work_sync(&rb->work) before freeing the buffer. There is no public exploit identified at time of analysis, and EPSS is very low (0.05%), but kernel UAF flaws are historically weaponizable for local privilege escalation.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Vendor-released patch: upgrade to a fixed Linux kernel - 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, or 6.18 or later, matching your kernel branch. Ubuntu users should apply the updates in https://ubuntu.com/security/notices/USN-8096-1 and https://ubuntu.com/security/notices/USN-8095-1 and reboot into the new kernel (or use livepatch where offered). If immediate patching is not possible, the most effective compensating control is to prevent untrusted users from creating BPF ring buffers: ensure unprivileged BPF is disabled by setting sysctl kernel.unprivileged_bpf_disabled=1 (or =2), which blocks non-CAP_BPF/CAP_SYS_ADMIN users from loading BPF programs - the trade-off is that legitimate unprivileged BPF tooling (some observability/tracing utilities) will stop working. Where feasible, also restrict CAP_BPF/CAP_SYS_ADMIN and limit which workloads/containers may attach BPF programs to tracepoints such as sched_switch. Cross-reference the exact fixed package version for your distribution before deploying.

Affected VersionsENISA

Linux patch: 6.6.117
Linux patch: 0
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <e1828c7a8d8135e21ff6adaaa9458c32aae13b11
Linux patch: 5.15.197
Linux patch: 5.10.247
Linux patch: 6.18
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <10ca3b2eec384628bc9f5d8190aed9427ad2dde6
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <de2ce6b14bc3e565708a39bdba3ef9162aeffc72
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <4e9077638301816a7d73fa1e1b4c1db4a7e3b59c
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <6451141103547f4efd774e912418a3b4318046c6
Linux patch: 6.12.58
Linux 5.8
Linux patch: 6.17.8
Linux patch: 6.1.159
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <47626748a2a00068dbbd5836d19076637b4e235b
Linux 457f44363a8894135c85b7a9afd2bd8196db24ab <430e15544f11f8de26b2b5109c7152f71b78295e

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the eBPF ring buffer (BPF_MAP_TYPE_RINGBUF), a shared memory data structure used by BPF programs to stream events to user space. When a BPF program calls bpf_ringbuf_commit(), the kernel may schedule deferred processing via irq_work (a mechanism to run work in hard-IRQ context). The root cause is a lifetime/synchronization defect: the ring buffer (rb) can be freed while an irq_work item referencing rb->work is still pending, so the handler dereferences released memory. This is a classic use-after-free (CWE-416), specifically a race between object teardown and deferred asynchronous work (related to CWE-362 race condition). Because the trigger path runs on a scheduler tracepoint (sched_switch), the window is realistically hit under normal scheduling churn. CWE was listed as N/A in the source data; the UAF classification is inferred from the description.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local BPF-load privilege needed (PR:L, AV:L); exploiting an irq_work-vs-free timing race is non-deterministic, so AC:H; kernel UAF yields full C/I/A impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.7 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
CVE Published
Dec 08, 2025 - 01:16 cve.org
HIGH 7.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

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

bpf: Sync pending IRQ work before freeing ring buffer

Fix a race where irq_work can be queued in bpf_ringbuf_commit() but the ring buffer is freed before the work executes. In the syzbot reproducer, a BPF program attached to sched_switch triggers bpf_ringbuf_commit(), queuing an irq_work. If the ring buffer is freed before this work executes, the irq_work thread may accesses freed memory. Calling irq_work_sync(&rb->work) ensures that all pending irq_work complete before freeing the buffer.

Executive ViewAI

Why It Matters

The Linux kernel BPF ring buffer subsystem contains a use-after-free vulnerability (CVSS 7.8) allowing low-privileged users capable of loading BPF programs to achieve local privilege escalation through kernel memory corruption; no public exploit has been identified at this time. This vulnerability affects Linux systems where unprivileged users or container workloads can load BPF programs, including container orchestration platforms and multi-tenant systems. Kernel-level privilege escalation poses significant risk to system security, enabling full system compromise with root-level code execution.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Ubiquitous
Linux kernel with BPF is deployed across servers, cloud, and containers everywhere
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2025-40319 ADVISORY https://ubuntu.com/security/notices/USN-8095-1 ADVISORY https://ubuntu.com/security/notices/USN-8096-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20207/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20220/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20228/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20564/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6 REF https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e REF https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b REF https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c REF https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6 REF https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72 REF https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy