# CVE-2025-40151: LoongArch: BPF: No support of struct argument in trampoline programs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2025-11-12T10:23:27.662Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< d1158559315143e11bfaabcd4b2bea98c7ed1be9; \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< e82406c7cbdd368c5459b8a45e118811d2ba0794
- Anyone running Linux 6.17

## Description

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.

## Affected and fixed versions

- Linux: \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< d1158559315143e11bfaabcd4b2bea98c7ed1be9; \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< e82406c7cbdd368c5459b8a45e118811d2ba0794 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40151. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40151.md
Affected: Linux >= f9b6b41f0cf31791541cea9644ddbedb46465801, < d1158559315143e11bfaabcd4b2bea98c7ed1be9; >= f9b6b41f0cf31791541cea9644ddbedb46465801, < e82406c7cbdd368c5459b8a45e118811d2ba0794; Linux 6.17
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40151 being exploited?

There is no confirmed exploitation: CVE-2025-40151 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40151?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40151?

Linux \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< d1158559315143e11bfaabcd4b2bea98c7ed1be9; \>= f9b6b41f0cf31791541cea9644ddbedb46465801, \< e82406c7cbdd368c5459b8a45e118811d2ba0794; Linux 6.17.

### Is there a fix for CVE-2025-40151?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40151?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/d1158559315143e11bfaabcd4b2bea98c7ed1be9>
- other: <https://git.kernel.org/stable/c/e82406c7cbdd368c5459b8a45e118811d2ba0794>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40151>

HTML: <https://flawdb.com/CVE-2025-40151> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40151>
