Skip to main content

Linux Kernel CVE-2025-40151

HIGH
2025-11-12 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 privilege on LoongArch host
  2. Delivery
    Attach fentry/fexit to struct-arg kernel function
  3. Exploit
    Trampoline dereferences invalid pointer
  4. Execution
    Kernel oops and RCU stalls
  5. Impact
    System hang / denial of service

Vulnerability Assessment

Exploitation Conditions

Exploitation requires: (1) the target host runs a Linux kernel built for the LoongArch architecture - the flaw does not exist on x86/ARM/etc.; (2) the attacker can load and attach a BPF trampoline program (BPF_TRAMP_FENTRY/FEXIT or struct_ops), which per the CVSS PR:L implies BPF/tracing privileges such as CAP_BPF, CAP_PERFMON, or CAP_SYS_ADMIN, or a system where unprivileged BPF is enabled; and (3) the attached-to kernel function must take at least one struct argument passed by value - that specific argument shape is what the LoongArch trampoline cannot handle and is the concrete trigger. Limiting factors: it is local-only (AV:L), needs BPF-load privilege (not a default unprivileged capability on hardened systems), and is confined to the LoongArch platform, so the realistic blast radius is small.

Impact

The CVSS 3.1 base score is 7.8 (High) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, but the signals point to genuinely low real-world priority. The vector requires local access and some privilege (PR:L) - realistically the ability to load BPF trampoline programs, which needs CAP_BPF/CAP_PERFMON or CAP_SYS_ADMIN - and the observed effect is a kernel oops plus RCU stalls, i.e. a denial of service rather than the confidentiality/integrity compromise the C:H/I:H rating implies. EPSS is 0.03% (10th percentile), the CVE is not in CISA KEV, and no POC beyond the in-tree selftest (test_progs -a tracing_struct) was found, so there is no evidence of active exploitation. Note a conflict worth flagging: the intelligence tag labels this 'Information Disclosure,' but the description and crash trace describe a NULL-pointer oops (availability/DoS), and the CVSS claims full C/I/A impact - these are not consistent, so the C:H/I:H portion of the score should be treated as unverified. This is a low-priority issue outside LoongArch fleets that permit unprivileged BPF program loading.

Exploit ScenarioDerived

A local user who is permitted to load BPF programs on a LoongArch machine attaches an fentry or fexit tracing program to a kernel function that receives a struct argument by value (as the kernel's own tracing_struct selftest does). The malformed trampoline dereferences an invalid pointer, producing a kernel oops and RCU stalls that hang or crash the box; no public exploit beyond the in-tree selftest is known.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jul 30, 2026

Local denial of service in the Linux kernel's LoongArch BPF JIT allows a low-privileged local user with BPF tracing capability to crash the system by attaching a trampoline (fentry/fexit) program to a function whose arguments include a struct passed by value. On LoongArch the trampoline code never implemented struct-by-value handling, so the generated code dereferences an invalid address and triggers a kernel oops with subsequent RCU stalls. This is not in CISA KEV and no public exploit was identified at time of analysis; EPSS is 0.03% (10th percentile), consistent with a niche, architecture-specific crash rather than a widely weaponized flaw.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:59 cvss changed CVSS 7.8

Denial of service in the Linux kernel's LoongArch BPF JIT allows a local user with BPF/tracing privileges to crash the system by attaching a trampoline (fentry/fexit-style tracing) program to a function that takes a struct passed by value. The LoongArch trampoline code never implemented struct-argument handling, so the attach path dereferences an invalid address and triggers a kernel oops with an RCU stall, hanging the machine. This affects only LoongArch builds; there is no public exploit identified at time of analysis and EPSS risk is negligible (0.03%).

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: No support of struct argument in trampoline programs The current implementation does not support struct argument. No vendor patch available.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel update that includes stable commits d1158559315143e11bfaabcd4b2bea98c7ed1be9 and e82406c7cbdd368c5459b8a45e118811d2ba0794 (see the git.kernel.org links) by updating to your distribution's patched LoongArch kernel once tagged. As a compensating control until patched, restrict who can load BPF trampoline/tracing programs: ensure kernel.unprivileged_bpf_disabled=1 (or 2) so unprivileged users cannot attach BPF, and limit CAP_BPF/CAP_PERFMON/CAP_SYS_ADMIN to trusted operators - the trade-off is that legitimate observability/tracing tooling that relies on fentry/fexit or struct_ops on LoongArch will be blocked. Avoid attaching fentry/fexit programs to kernel functions that take struct-by-value arguments on unpatched LoongArch systems, since that is the specific trigger. This only matters on LoongArch hosts; no action is required on other architectures.

Affected ProductsAI

The Linux kernel on the LoongArch architecture is affected; other architectures do not use this trampoline code path and are unaffected. The CVE description does not enumerate exact version ranges and no CPE strings were provided, so affected releases must be inferred from the stable-tree fix commits at https://git.kernel.org/stable/c/d1158559315143e11bfaabcd4b2bea98c7ed1be9 and https://git.kernel.org/stable/c/e82406c7cbdd368c5459b8a45e118811d2ba0794 - the vulnerable window spans LoongArch kernels that shipped BPF trampoline support up to the commit that introduces the struct-argument rejection.

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

The bug is in the LoongArch architecture-specific BPF trampoline generator, the component that builds the small assembly stub connecting BPF tracing programs (BPF_TRAMP_FENTRY/FEXIT, used by fentry/fexit and struct_ops attachments) to kernel functions. BPF trampolines must marshal the traced function's arguments onto a save area so the BPF program can read them; when a kernel function takes a struct passed by value, the arguments occupy multiple registers/stack slots and require special layout logic. The LoongArch JIT simply lacked that logic, producing a stub that computes a bad pointer - the oops shows a paging request for a near-null address (0x18), i.e. a NULL/offset dereference (CWE-476-class root cause; the CVE lists CWE as N/A). The fix, delivered as two stable-tree commits (d115855... and e82406c...), does not add struct support but defensively rejects attachment when a struct-by-value argument is present, preventing generation of the faulty trampoline.

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 5.5 MEDIUM

Local BPF-load privilege needed (AV:L/PR:L); reliable oops trigger (AC:L); impact is a kernel crash/DoS only, so C:N/I:N/A:H rather than the input's C:H/I:H.

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

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
Analysis Updated
Jul 30, 2026 - 09:00 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:59 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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

LoongArch: BPF: No support of struct argument in trampoline programs

The current implementation does not support struct argument. This causes a oops when running bpf selftest:

$ ./test_progs -a tracing_struct Oops[#1]: CPU -1 Unable to handle kernel paging request at virtual address 0000000000000018, era 9000000085bef268, ra 90000000844f3938 rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...0: (19 ticks this GP) idle=1094/1/0x4000000000000000 softirq=1380/1382 fqs=801 rcu: (detected by 0, t=5252 jiffies, g=1197, q=52 ncpus=4) Sending NMI from CPU 0 to CPUs 1: rcu: rcu_preempt kthread starved for 2495 jiffies! g1197 f0x0 RCU_GP_DOING_FQS(6) ->state=0x0 ->cpu=2 rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior. rcu: RCU grace-period kthread stack dump: task:rcu_preempt state:I stack:0 pid:15 tgid:15 ppid:2 task_flags:0x208040 flags:0x00000800 Stack : 9000000100423e80 0000000000000402 0000000000000010 90000001003b0680 9000000085d88000 0000000000000000 0000000000000040 9000000087159350 9000000085c2b9b0 0000000000000001 900000008704a000 0000000000000005 00000000ffff355b 00000000ffff355b 0000000000000000 0000000000000004 9000000085d90510 0000000000000000 0000000000000002 7b5d998f8281e86e 00000000ffff355c 7b5d998f8281e86e 000000000000003f 9000000087159350 900000008715bf98 0000000000000005 9000000087036000 900000008704a000 9000000100407c98 90000001003aff80 900000008715c4c0 9000000085c2b9b0 00000000ffff355b 9000000085c33d3c 00000000000000b4 0000000000000000 9000000007002150 00000000ffff355b 9000000084615480 0000000007000002 ... Call Trace: [<9000000085c2a868>] __schedule+0x410/0x1520 [<9000000085c2b9ac>] schedule+0x34/0x190 [<9000000085c33d38>] schedule_timeout+0x98/0x140 [<90000000845e9120>] rcu_gp_fqs_loop+0x5f8/0x868 [<90000000845ed538>] rcu_gp_kthread+0x260/0x2e0 [<900000008454e8a4>] kthread+0x144/0x238 [<9000000085c26b60>] ret_from_kernel_thread+0x28/0xc8 [<90000000844f20e4>] ret_from_kernel_thread_asm+0xc/0x88

rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 2: NMI backtrace for cpu 2 skipped: idling at idle_exit+0x0/0x4

Reject it for now.

Executive ViewAI

Why It Matters

CVE-2025-40151 affects Linux kernel systems with LoongArch architecture, allowing low-privileged users with BPF tracing capability to trigger system denial of service. No active exploitation has been observed and the vulnerability is specific to a niche processor architecture; organizational risk is low unless infrastructure depends on LoongArch systems.

Business Impact: Low
Compensating Controls

Restrict BPF tracing capability via SELinux or AppArmor policies to only trusted processes; enforce principle of least privilege on BPF access; monitor kernel logs for BPF-related oops messages; maintain and monitor inventory of LoongArch systems separately from x86/x64 infrastructure.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Low
LoongArch-only code path; niche CPU architecture with limited global deployment
Data Quality
4 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.0%
Patch available No
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

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
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

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