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.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Potential BPF register mismanagement leading to incorrect kernel behavior
Action: Patch immediately
AI Analysis

Impact

The vulnerability involves an eBPF subsystem bug where the kernel fails to correctly preserve scalar register identifiers during linked‑register history synchronization. The snapshots used for branch evaluation are taken after a cleanup routine clears scalar identifiers that do not fit in the limited record. Consequently, back‑syncing of register ranges may adjust more registers than the propagation routine can handle, leaving stale or incorrect values in the eBPF program’s state. This mismanagement can result in incorrect kernel behavior due to inaccurate register handling during BPF program execution.

Affected Systems

All Linux kernel releases that shipped the unpatched code are affected; the vulnerability is present in the core kernel irrespective of distribution or vendor, as it resides in the generic Linux eBPF implementation. No precise version range is specified, so any kernel prior to the patch that includes the buggy collect_linked_regs() implementation remains at risk.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity vulnerability, and the EPSS score of less than 1% reflects a very low probability of exploitation. The vulnerability is not listed in CISA's KEV catalog, suggesting no confirmed widespread exploitation. It remains a local‑access kernel‑level issue, triggered by an eBPF program with sufficient permissions. Attackers with privileged or kernel access could craft a custom BPF bytecode payload to trigger the faulty state propagation, potentially causing incorrect kernel behavior. Exploitation would require building a BPF program that exercises the bug and is likely restricted to environments where untrusted code regularly loads eBPF programs.

Generated by OpenCVE AI on September 30, 2026 at 13:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates the collect_linked_regs() patch and ensure the system is running the latest kernel release.
  • Restart the machine to load the new kernel and fully initialize all eBPF subsystems.
  • If an immediate kernel upgrade is not possible, disable eBPF‑enabled features such as cgroup filtering, Netfilter BPF hooks, or tracepoints that load custom BPF programs, until the patch is applied.
  • Monitor kernel logs for eBPF‑related errors or crash reports to detect unintended behavior that could indicate exploitation.

Generated by OpenCVE AI on September 30, 2026 at 13:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 29 Sep 2026 21:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title bpf: Don't resurrect a scalar id dropped by collect_linked_regs()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:12:48.113Z

Reserved: 2026-09-25T10:19:56.071Z

Link: CVE-2026-98042

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:32.987

Modified: 2026-10-19T10:17:58.103

Link: CVE-2026-98042

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98042 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T14:00:07Z

Weaknesses