CVE-2026-139456

bpf: Fix arg_track_xfer() for atomic stack spills and fills

Published Nov 30, 2026 CVSS 3.1 · 6.7 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix arg_track_xfer() for atomic stack spills and fills

Track spilled stack pointers through 64-bit atomic accesses:
- BPF_STORE_REL spills the source register.
- BPF_LOAD_ACQ restores the spilled value into dst_reg.
- BPF_XCHG and BPF_{ADD,AND,OR,XOR} | BPF_FETCH restore it into src_reg.
- BPF_CMPXCHG restores it into R0.

This prevents missing stack accesses through pointers recovered by these
instructions, matching the main verifier's spill/fill behavior.

Analysis

AI-generated

Technical impact

The vulnerability is a flaw in the Linux BPF verifier’s handling of atomic stack spill and fill operations. The verifier incorrectly tracks spilled stack pointers through 64‑bit atomic accesses, allowing a malicious BPF program to construct pointers that bypass verifier checks. This can result in out‑of‑bounds reads or writes in kernel memory, potentially causing denial of service or privilege escalation for an attacker who can load crafted BPF code.

Affected Systems

All Linux kernel versions released before the inclusion of the commits 13cffb88318085117c988106d4f5e439646f3ba6 and 8a13ded782dd40f15fea22b74c3fc5a4cc200503 are potentially vulnerable.

Risk and Exploitability

No CVSS, EPSS, or KEV data are available, but the flaw requires local or privileged access to load malicious BPF payloads. In environments where BPF programs are accepted from untrusted sources, the risk is moderate; once patched, the issue is mitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that contains the atomic stack pointer tracking fix or cherry‑pick the commits 13cffb88318085117c988106d4f5e439646f3ba6 and 8a13ded782dd40f15fea22b74c3fc5a4cc200503 into the running kernel or your distribution’s patch set.
  • Restrict permission for loading BPF programs so that only trusted users or privileged processes can load them.
  • Audit BPF activity and monitor for abnormal loading patterns to detect potential exploitation attempts.

Generated by OpenCVE AI on December 1, 2026 at 05:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-843
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix arg_track_xfer() for atomic stack spills and fills Track spilled stack pointers through 64-bit atomic accesses: - BPF_STORE_REL spills the source register. - BPF_LOAD_ACQ restores the spilled value into dst_reg. - BPF_XCHG and BPF_{ADD,AND,OR,XOR} | BPF_FETCH restore it into src_reg. - BPF_CMPXCHG restores it into R0. This prevents missing stack accesses through pointers recovered by these instructions, matching the main verifier's spill/fill behavior.
Title bpf: Fix arg_track_xfer() for atomic stack spills and fills
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-788

    Access of Memory Location After End of Buffer

  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM