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

bpf: Check params size before reading reserved fields

bpf_crypto_ctx_create() is a kfunc whose second argument is declared
with the __sz annotation, so the verifier only guarantees that
params__sz bytes of params are valid. The function nevertheless reads
params->reserved[0] and params->reserved[1] (offsets 14 and 15) before
comparing params__sz against the size of struct bpf_crypto_params, so a
BPF program can pass a shorter buffer and have the kernel read past the
region that was validated for it.

Move the size check in front of the reserved field reads.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Kernel Buffer Overread
Action: Patch
AI Analysis

Impact

The Linux kernel function bpf_crypto_ctx_create validates the size of the buffer it receives only after it reads two reserved fields at offsets 14 and 15. Because the size check is performed too late, a malicious caller can supply a smaller buffer that satisfies the verifier but causes the kernel to read beyond the boundary of the provided memory. The resulting out‑of‑bounds read can leak kernel memory or overwrite kernel data. This weakness is an out‑of‑bounds read (CWE‑125). Based on the description, it is inferred that this overread could be exploited to read sensitive kernel data or corrupt critical structures, potentially enabling privilege escalation.

Affected Systems

All Linux kernel releases that do not yet contain the patch that moved the size check before the reserved field reads are affected. The advisory does not list exact kernel versions, so any kernel older than the commit that introduced the fix remains vulnerable. Systems that load BPF programs from untrusted sources are particularly at risk.

Risk and Exploitability

EPSS data is not available and the vulnerability is not listed in CISA KEV. No public CVSS score has been reported. The likely attack vector is local and requires an actor with CAP_BPF or root privileges to inject a crafted BPF program. Although an active exploit is not reported, the overread could expose kernel memory or serve as a foothold for further exploitation. Given the potential impact, the risk is considered high enough to warrant immediate patching.

Generated by OpenCVE AI on October 18, 2026 at 22:42 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Linux kernel update that includes the bpf: Check params size before reading reserved fields fix.
  • Reboot the system to ensure the updated kernel is running.
  • Restrict BPF program loading to trusted users only, for example, by revoking CAP_BPF from untrusted accounts or disabling the capability in the system.

Generated by OpenCVE AI on October 18, 2026 at 22:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Check params size before reading reserved fields bpf_crypto_ctx_create() is a kfunc whose second argument is declared with the __sz annotation, so the verifier only guarantees that params__sz bytes of params are valid. The function nevertheless reads params->reserved[0] and params->reserved[1] (offsets 14 and 15) before comparing params__sz against the size of struct bpf_crypto_params, so a BPF program can pass a shorter buffer and have the kernel read past the region that was validated for it. Move the size check in front of the reserved field reads.
Title bpf: Check params size before reading reserved fields
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-18T15:19:26.922Z

Reserved: 2026-09-25T10:25:14.360Z

Link: CVE-2026-98611

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:13.927

Modified: 2026-10-18T16:17:13.927

Link: CVE-2026-98611

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T22:45:04Z

Weaknesses