CVE-2026-90300

bpf: Clear buf on error in __bpf_get_task_stack

Published Sep 17, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Clear buf on error in __bpf_get_task_stack

Both bpf_get_task_stack and bpf_get_task_stack_sleepable helpers that
use __bpf_get_task_stack have buf defined as ARG_PTR_TO_UNINIT_MEM
argument and we should initialize the buf on every return path.

Adding missing buf memset for __bpf_get_task_stack fail paths. This
provides deterministic buffer contents, which is useful when the buffer
is used directly as a map key.

Analysis

AI-generated

Technical impact

During execution of the kernel BPF helper __bpf_get_task_stack, the buffer passed as an argument is cleared only on successful returns. On failure paths the buffer remains uninitialized, which can be reused as a map key. This fault allows a local attacker to read deterministic garbage values from memory that may contain sensitive information or to inject faulty map entries, potentially leading to information leakage or a denial‑of‑service disposition for kernel‑level map handling.

Affected Systems

The vulnerability affects Linux kernel builds that expose the bpf_get_task_stack and bpf_get_task_stack_sleepable helpers without the recent fix that adds a memset on error. Systems running a kernel released before the commit that introduced the clearing logic are susceptible. No product version list is provided in the advisory, so any kernel without the patch may be impacted.

Risk and Exploitability

The EPSS rating is very low (< 1%) and the flaw is not on CISA’s KEV list, suggesting limited exploitation activity. Attack likely requires local action to load a crafted BPF program that triggers the helper on an error condition to read the garbage buffer. The absence of a publicly documented exploit and the inferred necessity of local BPF privileges keep the overall risk classed as low for most environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the __bpf_get_task_stack buffer clearance fix.
  • Restrict or disable untrusted BPF program loading by limiting CAP_BPF or employing seccomp policies to reduce local BPF execution rights.
  • If a sysctl interface exists to disable the vulnerable helper, configure it to prevent usage of the helper entirely.

Generated by OpenCVE AI on September 19, 2026 at 15:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-758
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Clear buf on error in __bpf_get_task_stack Both bpf_get_task_stack and bpf_get_task_stack_sleepable helpers that use __bpf_get_task_stack have buf defined as ARG_PTR_TO_UNINIT_MEM argument and we should initialize the buf on every return path. Adding missing buf memset for __bpf_get_task_stack fail paths. This provides deterministic buffer contents, which is useful when the buffer is used directly as a map key.
Title bpf: Clear buf on error in __bpf_get_task_stack
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-758

    Reliance on Undefined, Unspecified, or Implementation-Defined Behavior

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:35 PM
Reserved
Sep 11, 2026, 7:38 PM
Status
Received
Published
Sep 17, 2026, 5:17 PM
Modified
Oct 30, 2026, 1:20 PM