# CVE-2025-38285: bpf: Fix WARN() in get\_bpf\_raw\_tp\_regs

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-617
- **Published:** 2025-07-10T07:42:02.741Z
- **Modified:** 2026-11-05T21:18:24.723Z

## Who should check

- Anyone running Linux \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 44ebe361abb322d2afd77930fa767a99f271c4d1; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 147ea936fc6fa8fe0c93f0df918803a5375ca535; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< ee90be48edb3dac612e0b7f5332482a9e8be2696; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< e167414beabb1e941fe563a96becc98627d5bdf6; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 6d8f39875a10a194051c3eaefebc7ac06a34aaf3; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< c98cdf6795a36bca163ebb40411fef1687b9eb13; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 18e8cbbae79cb35bdce8a01c889827b9799c762e; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 3880cdbed1c4607e378f58fa924c5d6df900d1d3; a7177b94aff4febe657fe31bb7e5ecdef72079f4; 2a9fedc1ef4be2acb4fd4674f405c21c811e1505; …
- Anyone running Linux 5.2

## Description

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

bpf: Fix WARN() in get\_bpf\_raw\_tp\_regs

syzkaller reported an issue:

WARNING: CPU: 3 PID: 5971 at kernel/trace/bpf\_trace.c:1861 get\_bpf\_raw\_tp\_regs+0xa4/0x100 kernel/trace/bpf\_trace.c:1861
Modules linked in:
CPU: 3 UID: 0 PID: 5971 Comm: syz-executor205 Not tainted 6.15.0-rc5-syzkaller-00038-g707df3375124 \#0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:get\_bpf\_raw\_tp\_regs+0xa4/0x100 kernel/trace/bpf\_trace.c:1861
RSP: 0018:ffffc90003636fa8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffff81c6bc4c
RDX: ffff888032efc880 RSI: ffffffff81c6bc83 RDI: 0000000000000005
RBP: ffff88806a730860 R08: 0000000000000005 R09: 0000000000000003
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000004
R13: 0000000000000001 R14: ffffc90003637008 R15: 0000000000000900
FS:  0000000000000000(0000) GS:ffff8880d6cdf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7baee09130 CR3: 0000000029f5a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 \_\_\_\_bpf\_get\_stack\_raw\_tp kernel/trace/bpf\_trace.c:1934 \[inline\]
 bpf\_get\_stack\_raw\_tp+0x24/0x160 kernel/trace/bpf\_trace.c:1931
 bpf\_prog\_ec3b2eefa702d8d3+0x43/0x47
 bpf\_dispatcher\_nop\_func include/linux/bpf.h:1316 \[inline\]
 \_\_bpf\_prog\_run include/linux/filter.h:718 \[inline\]
 bpf\_prog\_run include/linux/filter.h:725 \[inline\]
 \_\_bpf\_trace\_run kernel/trace/bpf\_trace.c:2363 \[inline\]
 bpf\_trace\_run3+0x23f/0x5a0 kernel/trace/bpf\_trace.c:2405
 \_\_bpf\_trace\_mmap\_lock\_acquire\_returned+0xfc/0x140 include/trace/events/mmap\_lock.h:47
 \_\_traceiter\_mmap\_lock\_acquire\_returned+0x79/0xc0 include/trace/events/mmap\_lock.h:47
 \_\_do\_trace\_mmap\_lock\_acquire\_returned include/trace/events/mmap\_lock.h:47 \[inline\]
 trace\_mmap\_lock\_acquire\_returned include/trace/events/mmap\_lock.h:47 \[inline\]
 \_\_mmap\_lock\_do\_trace\_acquire\_returned+0x138/0x1f0 mm/mmap\_lock.c:35
 \_\_mmap\_lock\_trace\_acquire\_returned include/linux/mmap\_lock.h:36 \[inline\]
 mmap\_read\_trylock include/linux/mmap\_lock.h:204 \[inline\]
 stack\_map\_get\_build\_id\_offset+0x535/0x6f0 kernel/bpf/stackmap.c:157
 \_\_bpf\_get\_stack+0x307/0xa10 kernel/bpf/stackmap.c:483
 \_\_\_\_bpf\_get\_stack kernel/bpf/stackmap.c:499 \[inline\]
 bpf\_get\_stack+0x32/0x40 kernel/bpf/stackmap.c:496
 \_\_\_\_bpf\_get\_stack\_raw\_tp kernel/trace/bpf\_trace.c:1941 \[inline\]
 bpf\_get\_stack\_raw\_tp+0x124/0x160 kernel/trace/bpf\_trace.c:1931
 bpf\_prog\_ec3b2eefa702d8d3+0x43/0x47

Tracepoint like trace\_mmap\_lock\_acquire\_returned may cause nested call
as the corner case show above, which will be resolved with more general
method in the future. As a result, WARN\_ON\_ONCE will be triggered. As
Alexei suggested, remove the WARN\_ON\_ONCE first.

## Affected and fixed versions

- Linux: \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 44ebe361abb322d2afd77930fa767a99f271c4d1; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 147ea936fc6fa8fe0c93f0df918803a5375ca535; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< ee90be48edb3dac612e0b7f5332482a9e8be2696; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< e167414beabb1e941fe563a96becc98627d5bdf6; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 6d8f39875a10a194051c3eaefebc7ac06a34aaf3; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< c98cdf6795a36bca163ebb40411fef1687b9eb13; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 18e8cbbae79cb35bdce8a01c889827b9799c762e; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 3880cdbed1c4607e378f58fa924c5d6df900d1d3; a7177b94aff4febe657fe31bb7e5ecdef72079f4; 2a9fedc1ef4be2acb4fd4674f405c21c811e1505; … (cvelist)
- Linux: 5.2 (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-38285. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38285.md
Affected: Linux >= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, < 44ebe361abb322d2afd77930fa767a99f271c4d1; >= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, < 147ea936fc6fa8fe0c93f0df918803a5375ca535; >= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, < ee90be48edb3dac612e0b7f5332482a9e8be2696; >= 9594dc3c7e71b9f52bee1d7…
Fixed in: Linux 44ebe361abb322d2afd77930fa767a99f271c4d1, Linux 147ea936fc6fa8fe0c93f0df918803a5375ca535, Linux 6d8f39875a10a194051c3eaefebc7ac06a34aaf3, Linux 18e8cbbae79cb35bdce8a01c889827b9799c762e, Linux 3880cdbed1c4607e378f58fa924c5d6df900d1d3

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-38285 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 44ebe361abb322d2afd77930fa767a99f271c4d1; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 147ea936fc6fa8fe0c93f0df918803a5375ca535; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< ee90be48edb3dac612e0b7f5332482a9e8be2696; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< e167414beabb1e941fe563a96becc98627d5bdf6; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 6d8f39875a10a194051c3eaefebc7ac06a34aaf3; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< c98cdf6795a36bca163ebb40411fef1687b9eb13; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 18e8cbbae79cb35bdce8a01c889827b9799c762e; \>= 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99, \< 3880cdbed1c4607e378f58fa924c5d6df900d1d3; a7177b94aff4febe657fe31bb7e5ecdef72079f4; 2a9fedc1ef4be2acb4fd4674f405c21c811e1505; …; Linux 5.2.

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

Yes. Fixed in Linux 44ebe361abb322d2afd77930fa767a99f271c4d1, Linux 147ea936fc6fa8fe0c93f0df918803a5375ca535, Linux 6d8f39875a10a194051c3eaefebc7ac06a34aaf3, Linux 18e8cbbae79cb35bdce8a01c889827b9799c762e, Linux 3880cdbed1c4607e378f58fa924c5d6df900d1d3. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/44ebe361abb322d2afd77930fa767a99f271c4d1>
- patch: <https://git.kernel.org/stable/c/147ea936fc6fa8fe0c93f0df918803a5375ca535>
- patch: <https://git.kernel.org/stable/c/ee90be48edb3dac612e0b7f5332482a9e8be2696>
- patch: <https://git.kernel.org/stable/c/e167414beabb1e941fe563a96becc98627d5bdf6>
- patch: <https://git.kernel.org/stable/c/6d8f39875a10a194051c3eaefebc7ac06a34aaf3>
- patch: <https://git.kernel.org/stable/c/c98cdf6795a36bca163ebb40411fef1687b9eb13>
- patch: <https://git.kernel.org/stable/c/18e8cbbae79cb35bdce8a01c889827b9799c762e>
- patch: <https://git.kernel.org/stable/c/3880cdbed1c4607e378f58fa924c5d6df900d1d3>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## 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-38285>

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