PoC Monitor
← All CVEs
CVE-2026-43009published 1 May 2026 14:15 UTCData: JSON · API

Linux

bpf: Fix incorrect pruning due to atomic fetch precision tracking

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

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-682
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 06999c8a2c52b13977771ab093b8e179821b532d
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 7c72e5f3741d1c5cc53439137162f0e09254e6e9
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 7ffbe45b1d227e24659998a91cfd4c27af457e71
  • >= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, < 179ee84a89114b854ac2dd1d293633a7f6c8dac1

Fixed in 06999c8a2c52b13977771ab093b8e179821b532d, 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8, 7c72e5f3741d1c5cc53439137162f0e09254e6e9, ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c, 7ffbe45b1d227e24659998a91cfd4c27af457e71, 179ee84a89114b854ac2dd1d293633a7f6c8dac1

Linux Linux
  • 5.12

Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.50, 6.19.12, 7.0

Mitigation

Upgrade Linux to 06999c8a2c52b13977771ab093b8e179821b532d or 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8 or 7c72e5f3741d1c5cc53439137162f0e09254e6e9 or ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c or 7ffbe45b1d227e24659998a91cfd4c27af457e71 or 179ee84a89114b854ac2dd1d293633a7f6c8dac1 or later.

Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.50 or 6.19.12 or 7.0 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published1 May 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.