{"id":"CVE-2026-98042","aliases":["CVE-2026-98042"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Don't resurrect a scalar id dropped by collect_linked_regs()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't resurrect a scalar id dropped by collect_linked_regs()\n\ncheck_cond_jmp_op() copies the compared registers into\nenv->{false,true}_reg{1,2} before collect_linked_regs() runs and copies\nthose snapshots back into both branch states afterwards.\n\ncollect_linked_regs() records at most LINKED_REGS_MAX members of a\nlinked registers group in the jump history and calls clear_scalar_id()\nfor every member that does not fit. The compared register is not exempt\nfrom that.\n\nAs a consequence, sync_linked_regs() might adjust ranges for more\nregisters than bpf_bt_sync_linked_regs() can propagate precision to.\n\nCollect the linked registers before the snapshots are taken instead.\nThis might lead to some unnecessary clear_scalar_id's, but from\nprevious testing situations with many linked registers are\nextremely rare.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't resurrect a scalar id dropped by collect_linked_regs()\n\ncheck_cond_jmp_op() copies the compared registers into\nenv->{false,true}_reg{1,2} before collect_linked_regs() runs and copies\nthose snapshots back into both branch states afterwards.\n\ncollect_linked_regs() records at most LINKED_REGS_MAX members of a\nlinked registers group in the jump history and calls clear_scalar_id()\nfor every member that does not fit. The compared register is not exempt\nfrom that.\n\nAs a consequence, sync_linked_regs() might adjust ranges for more\nregisters than bpf_bt_sync_linked_regs() can propagate precision to.\n\nCollect the linked registers before the snapshots are taken instead.\nThis might lead to some unnecessary clear_scalar_id's, but from\nprevious testing situations with many linked registers are\nextremely rare.","source":"cvelist"}],"published":"2026-09-25T10:23:54.242Z","modified":"2026-10-19T10:17:58.103Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ec1d77cb0ee98249142dcd0376d76e7a48ba0b31","fixed":"e821ff19b8ef08255ff8d8234774ed814637e9bf","status":"affected"},{"type":"git","introduced":"ec1d77cb0ee98249142dcd0376d76e7a48ba0b31","fixed":"73a98f96811e2cb0f4210b1caa8cb322f92f2a2b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e821ff19b8ef08255ff8d8234774ed814637e9bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73a98f96811e2cb0f4210b1caa8cb322f92f2a2b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98042","url":"https://www.cve.org/CVERecord?id=CVE-2026-98042","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:48.113Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98042","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98042","licence":"Public domain","modified":"2026-10-19T10:17:58.103Z"}],"updatedAt":"2026-11-25T22:59:41.033Z","epss":{"score":0.00189,"percentile":0.08959,"date":"2026-12-01T12:00:22.000Z"}}