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

Published Sep 25, 2026
·
Updated

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

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

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

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

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

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

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

What conditions are required for this issue to occur?

The issue requires a BPF verifier path involving conditional jumps and a linked-register group with more members than LINKED_REGS_MAX. The description notes that situations with many linked registers are extremely rare.

2

What is the practical effect of the flawed verifier state handling?

A scalar ID cleared for a linked register that does not fit in jump history can be restored from branch-state register snapshots. This can leave range adjustments affecting more registers than precision propagation can cover.

3

Is there an indicated workaround if the kernel update cannot be applied immediately?

No workaround or mitigation is provided in the available data. The described resolution changes the verifier flow so linked registers are collected before compared-register snapshots are taken.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203