CVE-2026-139603

bpf: Skip zero-length stream writes

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

bpf: Skip zero-length stream writes

A stream write whose formatted output is empty still allocates a stream
element and links it into the stream log. Capacity accounting only counts
payload bytes, so such elements never count against the stream limit, and a
program that keeps producing empty output allocates elements without bound
until a reader drains them.

Return success without allocating anything when there is nothing to write,
for both bpf_stream_vprintk() and staged writes. Every element in a stream
log then carries at least one byte, which later changes rely on when they
derive read readiness from published byte counts.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Linux kernel's BPF stream logging system incorrectly handling zero-length output. When a stream write produces no formatted data, the kernel still allocates a stream element and links it in the log. These elements, lacking payload bytes, do not count against the stream limit, allowing continuous creation of empty elements until a reader removes them. An application that repeatedly logs empty data could exhaust kernel memory with these unused elements, potentially leading to denial of service.

Affected Systems

Linux kernel installations are impacted. Vendor identifiers include Linux:Linux. No specific kernel versions are listed; the issue applies to any kernel build that includes the affected BPF stream logging code.

Risk and Exploitability

The lack of a hard limit on empty stream write allocations poses a legitimate denial‑of‑service risk. No publicly available exploit requires special privileges or network access; the vulnerability can be triggered by any process with the ability to perform BPF stream writes, which is typically a privileged kernel operation. The EPSS score is unavailable, and the vulnerability is not catalogued in CISA’s KEV list. The CVSS score is not publicly disclosed, so the overall severity assessment is based on the resource exhaustion nature of the flaw, implying a high potential impact if not mitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patched BPF stream logging code.
  • If an immediate kernel upgrade is not feasible, limit the use of BPF stream logging in critical or high‑availability services to reduce the attack surface.
  • Monitor kernel memory usage and system logs for abnormal accumulation of stream elements that could indicate exploitation of this flaw.

Generated by OpenCVE AI on December 1, 2026 at 00:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Skip zero-length stream writes A stream write whose formatted output is empty still allocates a stream element and links it into the stream log. Capacity accounting only counts payload bytes, so such elements never count against the stream limit, and a program that keeps producing empty output allocates elements without bound until a reader drains them. Return success without allocating anything when there is nothing to write, for both bpf_stream_vprintk() and staged writes. Every element in a stream log then carries at least one byte, which later changes rely on when they derive read readiness from published byte counts.
Title bpf: Skip zero-length stream writes
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM