Skip to main content

Linux Kernel CVE-2025-40123

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Obtain local BPF-load capability
  2. Delivery
    Load entry + mismatched expected_attach_type target programs
  3. Exploit
    Insert target into tailcall prog-array map
  4. Execution
    Invoke entry program (BPF_PROG_TEST_RUN)
  5. Persist
    Tailcall dereferences uninitialized txq pointer
  6. Impact
    Kernel NULL pointer dereference / DoS

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local code execution plus the privilege to load BPF programs and create BPF_MAP_TYPE_PROG_ARRAY (tailcall) maps - i.e. CAP_BPF/CAP_SYS_ADMIN, or a system with unprivileged BPF explicitly enabled (kernel.unprivileged_bpf_disabled=0). The attacker must load two programs of the same base type (demonstrated with BPF_PROG_TYPE_XDP, also applicable to BPF_PROG_TYPE_CGROUP_SOCK_ADDR) but with mismatched expected_attach_type, where the tailcall target was verified under an expected_attach_type (e.g. BPF_XDP_DEVMAP/CPUMAP, or BPF_CGROUP_INET4_CONNECT) that relaxed field/helper access, then invoke the entry program (e.g. via BPF_PROG_TEST_RUN / bpf_prog_test_run_xdp) so the tailcall executes in a context lacking the assumed initialized state. Limiting factors: it is not remotely reachable (AV:L), it requires the ability to load BPF programs (not available to unprivileged users on hardened/default-locked-down kernels), and it does not affect the devmap/cpumap invocation paths, which set up a fresh context and are explicitly not vulnerable.

Impact

Signals are largely consistent and point to a genuine but non-urgent, locally-scoped issue. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, score 7.8) indicates local access with low privileges and no user interaction; the PR:L reflects that an attacker must already be able to load BPF programs and create prog-array maps, which on modern kernels requires CAP_BPF/CAP_SYS_ADMIN or an explicitly enabled unprivileged-BPF configuration. EPSS is very low (0.05%, 16th percentile) and there is no CISA KEV listing and no known public exploit - so there is no evidence of active or imminent exploitation. The vendor tag labels this Denial of Service, which aligns with the demonstrated NULL pointer dereference; however, the CVSS C:H/I:H claims are broader than the demonstrated DoS crash, since the underlying constraint bypass could theoretically expose restricted context fields/helpers. This is a discrepancy worth noting: the confirmed real-world impact is a crash/DoS, while the full confidentiality/integrity impact asserted by the CVSS score is not independently demonstrated in the provided data - verify with the kernel commit analysis before treating C:H/I:H as confirmed.

Exploit ScenarioDerived

A local attacker with the ability to load BPF programs (root, CAP_BPF, or on a system with unprivileged BPF enabled) loads an XDP entry program plus a second XDP program whose expected_attach_type (e.g. BPF_XDP_DEVMAP) relaxed verifier checks, inserts the second into a tailcall prog-array map, and invokes the entry program via BPF_PROG_TEST_RUN. The tailcall reaches code that dereferences the uninitialized xdp_buff->txq pointer, triggering a NULL pointer dereference and kernel crash (denial of service). No public exploit is identified at time of analysis; exploitation is straightforward for anyone already permitted to load BPF programs given AV:L/AC:L.

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

AnalysisAIv4 – Jul 30, 2026

Local privilege-constrained denial of service (and potential broader constraint bypass) in the Linux kernel BPF subsystem allows a user who can load BPF programs to bypass expected_attach_type enforcement via tailcall maps. A program can tailcall into an incompatible program whose verifier access rules were relaxed by its expected_attach_type (e.g. an XDP program returning xdp_md->egress_ifindex or a CGROUP_SOCK_ADDR program calling bpf_bind()), reaching code paths that dereference uninitialized state - demonstrated as a NULL pointer dereference of xdp_buff->txq in bpf_prog_test_run_xdp(). No public exploit identified at time of analysis; EPSS probability is very low (0.05%, 16th percentile) and it is not listed in CISA KEV.

Earlier versions of this analysis (3)
v3 Jul 30, 2026 - 09:13 cvss changed CVSS 7.8

Local privilege-context memory corruption in the Linux kernel eBPF subsystem allows a low-privileged user with BPF access to trigger an uninitialized-pointer NULL dereference (and broader security-check bypass) by loading a BPF program via bpf_prog_test_run_xdp() and tailcalling into a program with an incompatible expected_attach_type. The flaw stems from __bpf_prog_map_compatible() checking only bpf_prog_type but not expected_attach_type, so an XDP program can jump into a BPF_XDP_DEVMAP program that dereferences an unset xdp_buff->txq. No public exploit identified at time of analysis; EPSS is very low (0.05%), and the issue is classed primarily as Denial of Service.

v2 Jul 30, 2026 - 09:12 cvss changed CVSS 7.8

Privilege-boundary bypass in the Linux kernel BPF subsystem allows a local user able to load BPF programs to evade the expected_attach_type restrictions that gate access to sensitive program functionality. Because __bpf_prog_map_compatible() checked only the base bpf_prog_type and not expected_attach_type, a program could tailcall into another program whose attach type unlocks additional access (e.g. an XDP program reaching egress_ifindex or a CGROUP_SOCK_ADDR program invoking bpf_bind()), triggering an uninitialized/NULL pointer dereference such as the missing xdp_buff txq member found via bpf_prog_test_run_xdp(). No public exploit has been identified and EPSS is very low (0.05%), but the fix is shipped in mainline stable and Ubuntu kernels.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: bpf: Enforce expected_attach_type for tailcall compatibility Yinhao et al.

RemediationAI

Patch available per vendor advisory: apply the stable-kernel commits that enforce expected_attach_type in __bpf_prog_map_compatible() (the five git.kernel.org/stable commits listed above) or install your distribution's fixed kernel - Ubuntu users should update to the versions specified in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1) and reboot; exact fixed package versions are enumerated in those USNs. Because a released tagged kernel version is not stated in the input, cite the commit hashes rather than an invented version number. As a compensating control where patching is delayed, restrict who can load BPF programs: ensure unprivileged BPF is disabled by setting kernel.unprivileged_bpf_disabled=1 (sysctl), which prevents non-root users from loading programs and largely removes the local attack surface at the cost of breaking any legitimate unprivileged-BPF workloads; additionally avoid granting CAP_BPF/CAP_SYS_ADMIN to untrusted workloads and constrain container capabilities (e.g. seccomp/AppArmor profiles that block bpf() syscalls), noting this will disable in-container BPF tooling such as some observability agents.

Affected ProductsAI

The Linux kernel BPF subsystem (mainline and stable branches) is affected; the exact affected version ranges are not enumerated in the provided data but are addressed across five stable-tree commits (git.kernel.org/stable/c/08cb3dc9d2b44f153d0bcf2cb966e4a94b5d0f32, 4540aed51b12bc13364149bf95f6ecef013197c0, a99de19128aec0913f3d529f529fbbff5edfaff8, c1ad19b5d8e23123503dcaf2d4342e1b90b923ad, and f856c598080ba7ce1252867b8ecd6ad5bdaf9a6a). Ubuntu confirms affected kernels via security notices USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1). No CPE strings were provided in the input, so precise version boundaries should be confirmed against each distribution's advisory.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

BPF (Berkeley Packet Filter) programs in the Linux kernel are typed via bpf_prog_type, but many types further specialize behavior through expected_attach_type. The verifier's access checkers (xdp_is_valid_access(), sock_addr_is_valid_access()) and helper-proto selectors (sock_addr_func_proto()) grant or deny access to specific context fields and helpers based on that expected_attach_type - for example XDP's egress_ifindex is only readable for BPF_XDP_DEVMAP/CPUMAP, and bpf_bind() is only permitted for BPF_CGROUP_INET4_CONNECT. Tailcalls, implemented via BPF_MAP_TYPE_PROG_ARRAY (prog-array) maps, let one program jump into another at runtime. The compatibility gate __bpf_prog_map_compatible() previously validated only the base prog_type and not expected_attach_type, so a program running in a context that never set up (for instance) an xdp_buff->txq could tailcall into a program compiled under assumptions that the field is valid, producing an uninitialized/NULL pointer dereference. The fix enforces expected_attach_type matching in __bpf_prog_map_compatible() for tailcall maps; devmap/cpumap paths are exempt because dev_map_bpf_prog_run*()/cpu_map_bpf_prog_run*() establish a fresh context. No CWE was assigned in the input, but the root cause is a class of uninitialized-pointer / NULL pointer dereference stemming from missing type-constraint enforcement (akin to CWE-824/CWE-476).

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

Sources disagree (Low–High)
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 5.5 MEDIUM

Requires local privilege to load BPF programs (PR:L); demonstrated impact is a NULL pointer dereference crash so A:H with C:N/I:N, as no confidentiality/integrity compromise is shown in the data.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/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 4.4 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

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

6
Analysis Updated
Jul 30, 2026 - 09:13 vuln.today
v4 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:13 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:12 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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

bpf: Enforce expected_attach_type for tailcall compatibility

Yinhao et al. recently reported:

Our fuzzer tool discovered an uninitialized pointer issue in the bpf_prog_test_run_xdp() function within the Linux kernel's BPF subsystem. This leads to a NULL pointer dereference when a BPF program attempts to deference the txq member of struct xdp_buff object.

The test initializes two programs of BPF_PROG_TYPE_XDP: progA acts as the entry point for bpf_prog_test_run_xdp() and its expected_attach_type can neither be of be BPF_XDP_DEVMAP nor BPF_XDP_CPUMAP. progA calls into a slot of a tailcall map it owns. progB's expected_attach_type must be BPF_XDP_DEVMAP to pass xdp_is_valid_access() validation. The program returns struct xdp_md's egress_ifindex, and the latter is only allowed to be accessed under mentioned expected_attach_type. progB is then inserted into the tailcall which progA calls.

The underlying issue goes beyond XDP though. Another example are programs of type BPF_PROG_TYPE_CGROUP_SOCK_ADDR. sock_addr_is_valid_access() as well as sock_addr_func_proto() have different logic depending on the programs' expected_attach_type. Similarly, a program attached to BPF_CGROUP_INET4_GETPEERNAME should not be allowed doing a tailcall into a program which calls bpf_bind() out of BPF which is only enabled for BPF_CGROUP_INET4_CONNECT.

In short, specifying expected_attach_type allows to open up additional functionality or restrictions beyond what the basic bpf_prog_type enables. The use of tailcalls must not violate these constraints. Fix it by enforcing expected_attach_type in __bpf_prog_map_compatible().

Note that we only enforce this for tailcall maps, but not for BPF devmaps or cpumaps: There, the programs are invoked through dev_map_bpf_prog_run*() and cpu_map_bpf_prog_run*() which set up a new environment / context and therefore these situations are not prone to this issue.

Executive ViewAI

Why It Matters

CVE-2025-40123 affects the Linux kernel BPF subsystem, enabling local users with BPF program loading privileges to trigger denial-of-service attacks and potentially bypass security constraints. This vulnerability impacts system availability across Linux deployments where BPF is enabled for non-root users, creating exposure to both service disruption and privilege escalation. Organizations running vulnerable kernel versions should prioritize patching to mitigate local attack surface and ensure continued service reliability.

Business Impact: High
Compensating Controls

Patch available per vendor advisory. Until patching is deployed, restrict BPF program loading privileges to trusted users through Linux capability restrictions, disable BPF JIT compilation via kernel parameters if not required for performance, and monitor system logs for BPF program loading attempts and kernel NULL pointer dereference errors indicating potential exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Ubiquitous
Linux kernel BPF subsystem runs in essentially all Linux deployments
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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://ubuntu.com/security/notices/USN-8125-1 ADVISORY https://ubuntu.com/security/notices/USN-8126-1 ADVISORY https://vuldb.com/vuln/332119 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:0316/ 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/08cb3dc9d2b44f153d0bcf2cb966e4a94b5d0f32 REF https://git.kernel.org/stable/c/4540aed51b12bc13364149bf95f6ecef013197c0 REF https://git.kernel.org/stable/c/a99de19128aec0913f3d529f529fbbff5edfaff8 REF https://git.kernel.org/stable/c/c1ad19b5d8e23123503dcaf2d4342e1b90b923ad REF https://git.kernel.org/stable/c/dc4f348952173beb8ceb15be30b249276eccb605 REF https://git.kernel.org/stable/c/e53a59e7cee5c1605d1ed595933098c2b69108f9 REF https://git.kernel.org/stable/c/f856c598080ba7ce1252867b8ecd6ad5bdaf9a6a

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