{
  "id": "CVE-2026-43009",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-43009",
  "published_at": "2026-05-01T14:15:16.271Z",
  "title": "bpf: Fix incorrect pruning due to atomic fetch precision tracking",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix incorrect pruning due to atomic fetch precision tracking\n\nWhen backtrack_insn encounters a BPF_STX instruction with BPF_ATOMIC\nand BPF_FETCH, the src register (or r0 for BPF_CMPXCHG) also acts as\na destination, thus receiving the old value from the memory location.\n\nThe current backtracking logic does not account for this. It treats\natomic fetch operations the same as regular stores where the src\nregister is only an input. This leads the backtrack_insn to fail to\npropagate precision to the stack location, which is then not marked\nas precise!\n\nLater, the verifier's path pruning can incorrectly consider two states\nequivalent when they differ in terms of stack state. Meaning, two\nbranches can be treated as equivalent and thus get pruned when they\nshould not be seen as such.\n\nFix it as follows: Extend the BPF_LDX handling in backtrack_insn to\nalso cover atomic fetch operations via is_atomic_fetch_insn() helper.\nWhen the fetch dst register is being tracked for precision, clear it,\nand propagate precision over to the stack slot. For non-stack memory,\nthe precision walk stops at the atomic instruction, same as regular\nBPF_LDX. This covers all fetch variants.\n\nBefore:\n\n  0: (b7) r1 = 8                        ; R1=8\n  1: (7b) *(u64 *)(r10 -8) = r1         ; R1=8 R10=fp0 fp-8=8\n  2: (b7) r2 = 0                        ; R2=0\n  3: (db) r2 = atomic64_fetch_add((u64 *)(r10 -8), r2)          ; R2=8 R10=fp0 fp-8=mmmmmmmm\n  4: (bf) r3 = r10                      ; R3=fp0 R10=fp0\n  5: (0f) r3 += r2\n  mark_precise: frame0: last_idx 5 first_idx 0 subseq_idx -1\n  mark_precise: frame0: regs=r2 stack= before 4: (bf) r3 = r10\n  mark_precise: frame0: regs=r2 stack= before 3: (db) r2 = atomic64_fetch_add((u64 *)(r10 -8), r2)\n  mark_precise: frame0: regs=r2 stack= before 2: (b7) r2 = 0\n  6: R2=8 R3=fp8\n  6: (b7) r0 = 0                        ; R0=0\n  7: (95) exit\n\nAfter:\n\n  0: (b7) r1 = 8                        ; R1=8\n  1: (7b) *(u64 *)(r10 -8) = r1         ; R1=8 R10=fp0 fp-8=8\n  2: (b7) r2 = 0                        ; R2=0\n  3: (db) r2 = atomic64_fetch_add((u64 *)(r10 -8), r2)          ; R2=8 R10=fp0 fp-8=mmmmmmmm\n  4: (bf) r3 = r10                      ; R3=fp0 R10=fp0\n  5: (0f) r3 += r2\n  mark_precise: frame0: last_idx 5 first_idx 0 subseq_idx -1\n  mark_precise: frame0: regs=r2 stack= before 4: (bf) r3 = r10\n  mark_precise: frame0: regs=r2 stack= before 3: (db) r2 = atomic64_fetch_add((u64 *)(r10 -8), r2)\n  mark_precise: frame0: regs= stack=-8 before 2: (b7) r2 = 0\n  mark_precise: frame0: regs= stack=-8 before 1: (7b) *(u64 *)(r10 -8) = r1\n  mark_precise: frame0: regs=r1 stack= before 0: (b7) r1 = 8\n  6: R2=8 R3=fp8\n  6: (b7) r0 = 0                        ; R0=0\n  7: (95) exit",
  "cwe": "CWE-682",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c 06999c8a2c52b13977771ab093b8e179821b532d",
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c 1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8",
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c 7c72e5f3741d1c5cc53439137162f0e09254e6e9",
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c",
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c 7ffbe45b1d227e24659998a91cfd4c27af457e71",
          "\u003e= 5ca419f2864a2c60940dcf4bbaeb69546200e36f, \u003c 179ee84a89114b854ac2dd1d293633a7f6c8dac1"
        ],
        "fixed_in": [
          "06999c8a2c52b13977771ab093b8e179821b532d",
          "1aac6b271e0a80b91c2f6a8f75ab0c0b1fc8ffe8",
          "7c72e5f3741d1c5cc53439137162f0e09254e6e9",
          "ea150ffa9fc9f78c5cf22e1f7b06b6d016b1017c",
          "7ffbe45b1d227e24659998a91cfd4c27af457e71",
          "179ee84a89114b854ac2dd1d293633a7f6c8dac1"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.12"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.114",
          "6.18.50",
          "6.19.12",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "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."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
