# CVE-2026-43009: bpf: Fix incorrect pruning due to atomic fetch precision tracking

> 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-682
- **Published:** 2026-05-01T14:15:16.271Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 06999c8a2c52b13977771ab093b8e179821b532d; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7c72e5f3741d1c5cc53439137162f0e09254e6e9; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7ffbe45b1d227e24659998a91cfd4c27af457e71; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 179ee84a89114b854ac2dd1d293633a7f6c8dac1
- Anyone running Linux 5.12

## Description

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

bpf: Fix incorrect pruning due to atomic fetch precision tracking

When backtrack\_insn encounters a BPF\_STX instruction with BPF\_ATOMIC
and BPF\_FETCH, the src register (or r0 for BPF\_CMPXCHG) also acts as
a destination, thus receiving the old value from the memory location.

The current backtracking logic does not account for this. It treats
atomic fetch operations the same as regular stores where the src
register is only an input. This leads the backtrack\_insn to fail to
propagate precision to the stack location, which is then not marked
as precise!

Later, the verifier's path pruning can incorrectly consider two states
equivalent when they differ in terms of stack state. Meaning, two
branches can be treated as equivalent and thus get pruned when they
should not be seen as such.

Fix it as follows: Extend the BPF\_LDX handling in backtrack\_insn to
also cover atomic fetch operations via is\_atomic\_fetch\_insn() helper.
When the fetch dst register is being tracked for precision, clear it,
and propagate precision over to the stack slot. For non-stack memory,
the precision walk stops at the atomic instruction, same as regular
BPF\_LDX. This covers all fetch variants.

Before:

  0: (b7) r1 = 8                        ; R1=8
  1: (7b) \*(u64 \*)(r10 -8) = r1         ; R1=8 R10=fp0 fp-8=8
  2: (b7) r2 = 0                        ; R2=0
  3: (db) r2 = atomic64\_fetch\_add((u64 \*)(r10 -8), r2)          ; R2=8 R10=fp0 fp-8=mmmmmmmm
  4: (bf) r3 = r10                      ; R3=fp0 R10=fp0
  5: (0f) r3 += r2
  mark\_precise: frame0: last\_idx 5 first\_idx 0 subseq\_idx -1
  mark\_precise: frame0: regs=r2 stack= before 4: (bf) r3 = r10
  mark\_precise: frame0: regs=r2 stack= before 3: (db) r2 = atomic64\_fetch\_add((u64 \*)(r10 -8), r2)
  mark\_precise: frame0: regs=r2 stack= before 2: (b7) r2 = 0
  6: R2=8 R3=fp8
  6: (b7) r0 = 0                        ; R0=0
  7: (95) exit

After:

  0: (b7) r1 = 8                        ; R1=8
  1: (7b) \*(u64 \*)(r10 -8) = r1         ; R1=8 R10=fp0 fp-8=8
  2: (b7) r2 = 0                        ; R2=0
  3: (db) r2 = atomic64\_fetch\_add((u64 \*)(r10 -8), r2)          ; R2=8 R10=fp0 fp-8=mmmmmmmm
  4: (bf) r3 = r10                      ; R3=fp0 R10=fp0
  5: (0f) r3 += r2
  mark\_precise: frame0: last\_idx 5 first\_idx 0 subseq\_idx -1
  mark\_precise: frame0: regs=r2 stack= before 4: (bf) r3 = r10
  mark\_precise: frame0: regs=r2 stack= before 3: (db) r2 = atomic64\_fetch\_add((u64 \*)(r10 -8), r2)
  mark\_precise: frame0: regs= stack=-8 before 2: (b7) r2 = 0
  mark\_precise: frame0: regs= stack=-8 before 1: (7b) \*(u64 \*)(r10 -8) = r1
  mark\_precise: frame0: regs=r1 stack= before 0: (b7) r1 = 8
  6: R2=8 R3=fp8
  6: (b7) r0 = 0                        ; R0=0
  7: (95) exit

## Affected and fixed versions

- Linux: \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 06999c8a2c52b13977771ab093b8e179821b532d; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7c72e5f3741d1c5cc53439137162f0e09254e6e9; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7ffbe45b1d227e24659998a91cfd4c27af457e71; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 179ee84a89114b854ac2dd1d293633a7f6c8dac1 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 179ee84a89114b854ac2dd1d293633a7f6c8dac1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-43009.md
Affected: Linux >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 06999c8a2c52b13977771ab093b8e179821b532d; >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8; >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 7c72e5f3741d1c5cc53439137162f0e09254e6e9; >= 5ca419f2864a2c60940dcf4…
Fixed in: Linux 06999c8a2c52b13977771ab093b8e179821b532d, Linux 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8, Linux 7c72e5f3741d1c5cc53439137162f0e09254e6e9, Linux 7ffbe45b1d227e24659998a91cfd4c27af457e71, Linux 179ee84a89114b854ac2dd1d293633a7f6c8dac1

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-2026-43009 being exploited?

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

### How serious is CVE-2026-43009?

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

### Which versions are affected by CVE-2026-43009?

Linux \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 06999c8a2c52b13977771ab093b8e179821b532d; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7c72e5f3741d1c5cc53439137162f0e09254e6e9; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 7ffbe45b1d227e24659998a91cfd4c27af457e71; \>= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \< 179ee84a89114b854ac2dd1d293633a7f6c8dac1; Linux 5.12.

### Is there a fix for CVE-2026-43009?

Yes. Fixed in Linux 06999c8a2c52b13977771ab093b8e179821b532d, Linux 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8, Linux 7c72e5f3741d1c5cc53439137162f0e09254e6e9, Linux 7ffbe45b1d227e24659998a91cfd4c27af457e71, Linux 179ee84a89114b854ac2dd1d293633a7f6c8dac1. Upgrade Linux to 179ee84a89114b854ac2dd1d293633a7f6c8dac1 or later.

### How do I check if I'm affected by CVE-2026-43009?

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/7ffbe45b1d227e24659998a91cfd4c27af457e71>
- patch: <https://git.kernel.org/stable/c/179ee84a89114b854ac2dd1d293633a7f6c8dac1>
- other: <https://git.kernel.org/stable/c/06999c8a2c52b13977771ab093b8e179821b532d>
- other: <https://git.kernel.org/stable/c/1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8>
- other: <https://git.kernel.org/stable/c/7c72e5f3741d1c5cc53439137162f0e09254e6e9>
- other: <https://git.kernel.org/stable/c/ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c>

## 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-2026-43009>

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