# CVE-2026-98042: bpf: Don't resurrect a scalar id dropped by collect_linked_regs()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-25T10:23:54.242Z
- Modified: 2026-10-19T10:17:58.103Z
- Assigned by: Linux

## Description

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

bpf: Don't resurrect a scalar id dropped by collect_linked_regs()

check_cond_jmp_op() copies the compared registers into
env->{false,true}_reg{1,2} before collect_linked_regs() runs and copies
those snapshots back into both branch states afterwards.

collect_linked_regs() records at most LINKED_REGS_MAX members of a
linked registers group in the jump history and calls clear_scalar_id()
for every member that does not fit. The compared register is not exempt
from that.

As a consequence, sync_linked_regs() might adjust ranges for more
registers than bpf_bt_sync_linked_regs() can propagate precision to.

Collect the linked registers before the snapshots are taken instead.
This might lead to some unnecessary clear_scalar_id's, but from
previous testing situations with many linked registers are
extremely rare.

(As written by CVE List.)

## Affected

- Linux Linux: from ec1d77cb0ee98249142dcd0376d76e7a48ba0b31 before e821ff19b8ef08255ff8d8234774ed814637e9bf; from ec1d77cb0ee98249142dcd0376d76e7a48ba0b31 before 73a98f96811e2cb0f4210b1caa8cb322f92f2a2b; 7.1 (not affected: before 7.1; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/e821ff19b8ef08255ff8d8234774ed814637e9bf>
- <https://git.kernel.org/stable/c/73a98f96811e2cb0f4210b1caa8cb322f92f2a2b>

## Sources

- CVE List: [CVE-2026-98042](https://www.cve.org/CVERecord?id=CVE-2026-98042), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98042](https://nvd.nist.gov/vuln/detail/CVE-2026-98042), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98042 · Whole record: https://cve.day/CVE-2026-98042.json · Rebuilt by cve.day 2026-11-25T22:59:41.033Z
