# CVE-2025-38279: bpf: Do not include stack ptr register in precision backtracking bookkeeping

> 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, NVD) `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.24% (percentile 16, 2026-12-01)
- **Published:** 2025-07-10T07:41:58.184Z
- **Modified:** 2026-11-05T21:18:24.013Z

## Who should check

- Anyone running Linux \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 2d9a8022009d2d6ad7aaea249902d88f1fa70144; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 4265682c29c92f52c0da6fad5a79b5801462c8de; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< ac49b7560b4b08b1e4043a29214cc7ad77644c00; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< e2d2115e56c4a02377189bfc3a9a7933552a7b0f; fc2778c42f99c7de52fc004157b3c3ee4dcc208a; \>= 6.4.4, \< 6.5
- Anyone running Linux 6.5

## Description

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

bpf: Do not include stack ptr register in precision backtracking bookkeeping

Yi Lai reported an issue (\[1\]) where the following warning appears
in kernel dmesg:
  \[   60.643604\] verifier backtracking bug
  \[   60.643635\] WARNING: CPU: 10 PID: 2315 at kernel/bpf/verifier.c:4302 \_\_mark\_chain\_precision+0x3a6c/0x3e10
  \[   60.648428\] Modules linked in: bpf\_testmod(OE)
  \[   60.650471\] CPU: 10 UID: 0 PID: 2315 Comm: test\_progs Tainted: G           OE       6.15.0-rc4-gef11287f8289-dirty \#327 PREEMPT(full)
  \[   60.654385\] Tainted: \[O\]=OOT\_MODULE, \[E\]=UNSIGNED\_MODULE
  \[   60.656682\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
  \[   60.660475\] RIP: 0010:\_\_mark\_chain\_precision+0x3a6c/0x3e10
  \[   60.662814\] Code: 5a 30 84 89 ea e8 c4 d9 01 00 80 3d 3e 7d d8 04 00 0f 85 60 fa ff ff c6 05 31 7d d8 04
                       01 48 c7 c7 00 58 30 84 e8 c4 06 a5 ff \<0f\> 0b e9 46 fa ff ff 48 ...
  \[   60.668720\] RSP: 0018:ffff888116cc7298 EFLAGS: 00010246
  \[   60.671075\] RAX: 54d70e82dfd31900 RBX: ffff888115b65e20 RCX: 0000000000000000
  \[   60.673659\] RDX: 0000000000000001 RSI: 0000000000000004 RDI: 00000000ffffffff
  \[   60.676241\] RBP: 0000000000000400 R08: ffff8881f6f23bd3 R09: 1ffff1103ede477a
  \[   60.678787\] R10: dffffc0000000000 R11: ffffed103ede477b R12: ffff888115b60ae8
  \[   60.681420\] R13: 1ffff11022b6cbc4 R14: 00000000fffffff2 R15: 0000000000000001
  \[   60.684030\] FS:  00007fc2aedd80c0(0000) GS:ffff88826fa8a000(0000) knlGS:0000000000000000
  \[   60.686837\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  \[   60.689027\] CR2: 000056325369e000 CR3: 000000011088b002 CR4: 0000000000370ef0
  \[   60.691623\] Call Trace:
  \[   60.692821\]  \<TASK\>
  \[   60.693960\]  ? \_\_pfx\_verbose+0x10/0x10
  \[   60.695656\]  ? \_\_pfx\_disasm\_kfunc\_name+0x10/0x10
  \[   60.697495\]  check\_cond\_jmp\_op+0x16f7/0x39b0
  \[   60.699237\]  do\_check+0x58fa/0xab10
  ...

Further analysis shows the warning is at line 4302 as below:

  4294                 /\* static subprog call instruction, which
  4295                  \* means that we are exiting current subprog,
  4296                  \* so only r1-r5 could be still requested as
  4297                  \* precise, r0 and r6-r10 or any stack slot in
  4298                  \* the current frame should be zero by now
  4299                  \*/
  4300                 if (bt\_reg\_mask(bt) & ~BPF\_REGMASK\_ARGS) {
  4301                         verbose(env, "BUG regs %x\\n", bt\_reg\_mask(bt));
  4302                         WARN\_ONCE(1, "verifier backtracking bug");
  4303                         return -EFAULT;
  4304                 }

With the below test (also in the next patch):
  \_\_used \_\_naked static void \_\_bpf\_jmp\_r10(void)
  {
	asm volatile (
	"r2 = 2314885393468386424 ll;"
	"goto +0;"
	"if r2 \<= r10 goto +3;"
	"if r1 \>= -1835016 goto +0;"
	"if r2 \<= 8 goto +0;"
	"if r3 \<= 0 goto +0;"
	"exit;"
	::: \_\_clobber\_all);
  }

  SEC("?raw\_tp")
  \_\_naked void bpf\_jmp\_r10(void)
  {
	asm volatile (
	"r3 = 0 ll;"
	"call \_\_bpf\_jmp\_r10;"
	"r0 = 0;"
	"exit;"
	::: \_\_clobber\_all);
  }

The following is the verifier failure log:
  0: (18) r3 = 0x0                      ; R3\_w=0
  2: (85) call pc+2
  caller:
   R10=fp0
  callee:
   frame1: R1=ctx() R3\_w=0 R10=fp0
  5: frame1: R1=ctx() R3\_w=0 R10=fp0
  ; asm volatile ("                                 \\ @ verifier\_precision.c:184
  5: (18) r2 = 0x20202000256c6c78       ; frame1: R2\_w=0x20202000256c6c78
  7: (05) goto pc+0
  8: (bd) if r2 \<= r10 goto pc+3        ; frame1: R2\_w=0x20202000256c6c78 R10=fp0
  9: (35) if r1 \>= 0xffe3fff8 goto pc+0         ; frame1: R1=ctx()
  10: (b5) if r2 \<= 0x8 goto pc+0
  mark\_precise: frame1: last\_idx 10 first\_idx 0 subseq\_idx -1
  mark\_precise: frame1: regs=r2 stack= before 9: (35) if r1 \>= 0xffe3fff8 goto pc+0
  mark\_precise: frame1: regs=r2 stack= before 8: (bd) if r2 \<= r10 goto pc+3
  mark\_preci
---truncated---

## Affected and fixed versions

- Linux: \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 2d9a8022009d2d6ad7aaea249902d88f1fa70144; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 4265682c29c92f52c0da6fad5a79b5801462c8de; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< ac49b7560b4b08b1e4043a29214cc7ad77644c00; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< e2d2115e56c4a02377189bfc3a9a7933552a7b0f; fc2778c42f99c7de52fc004157b3c3ee4dcc208a; \>= 6.4.4, \< 6.5 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38279.md
Affected: Linux >= 407958a0e980b9e1842ab87b5a1040521e1e24e9, < 2d9a8022009d2d6ad7aaea249902d88f1fa70144; >= 407958a0e980b9e1842ab87b5a1040521e1e24e9, < 4265682c29c92f52c0da6fad5a79b5801462c8de; >= 407958a0e980b9e1842ab87b5a1040521e1e24e9, < ac49b7560b4b08b1e4043a29214cc7ad77644c00; >= 407958a0e980b9e1842ab87…
Fixed in: Linux 2d9a8022009d2d6ad7aaea249902d88f1fa70144, Linux 4265682c29c92f52c0da6fad5a79b5801462c8de, Linux 6.5

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

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

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

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

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

Linux \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 2d9a8022009d2d6ad7aaea249902d88f1fa70144; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< 4265682c29c92f52c0da6fad5a79b5801462c8de; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< ac49b7560b4b08b1e4043a29214cc7ad77644c00; \>= 407958a0e980b9e1842ab87b5a1040521e1e24e9, \< e2d2115e56c4a02377189bfc3a9a7933552a7b0f; fc2778c42f99c7de52fc004157b3c3ee4dcc208a; \>= 6.4.4, \< 6.5; Linux 6.5.

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

Yes. Fixed in Linux 2d9a8022009d2d6ad7aaea249902d88f1fa70144, Linux 4265682c29c92f52c0da6fad5a79b5801462c8de, Linux 6.5. Upgrade Linux to 6.5 or later.

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

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/4265682c29c92f52c0da6fad5a79b5801462c8de>
- patch: <https://git.kernel.org/stable/c/ac49b7560b4b08b1e4043a29214cc7ad77644c00>
- patch: <https://git.kernel.org/stable/c/e2d2115e56c4a02377189bfc3a9a7933552a7b0f>
- other: <https://git.kernel.org/stable/c/2d9a8022009d2d6ad7aaea249902d88f1fa70144>

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

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