CVE-2026-98059

bpf: Mark sched_process_wait argument as nullable

Published Sep 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Mark sched_process_wait argument as nullable

do_wait() passes wo->wo_pid to the sched_process_wait tracepoint.
kernel_wait4() leaves wo_pid NULL for wait4(-1), and
kernel_waitid_prepare() does likewise for waitid(P_ALL).

btf_ctx_access() currently types argument 0 as PTR_TO_BTF_ID |
PTR_TRUSTED. Without PTR_MAYBE_NULL, the verifier accepts an unchecked
dereference. Trusted pointer loads have no fault protection, so a wait for
any child can then cause a NULL pointer dereference in JITed BPF code.

Add sched_process_wait to raw_tp_null_args[] with argument 0 marked
nullable. The verifier rejects an unchecked dereference while preserving
access after the program checks the pointer for NULL.

Analysis

AI-generated

Technical impact

The Linux kernel’s BPF verifier incorrectly treats the first argument of the sched_process_wait tracepoint as a non‑nullable pointer. A BPF program that does not perform a NULL check can cause the kernel to dereference a NULL value, leading to a kernel panic and system-wide denial of service. The flaw does not grant remote code execution or privilege escalation beyond the ability to load a BPF program, which typically requires CAP_SYS_ADMIN or root privileges. Based on the description, it is inferred that an attacker must be able to load BPF programs, so the exploit is limited to local or privileged contexts.

Affected Systems

All Linux kernel releases that have not yet incorporated the patch that marks the sched_process_wait argument as nullable are affected. No specific version range is provided; therefore, any kernel build before the fix, regardless of distribution, is vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS < 1% points to a low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the ability to load BPF programs with sufficient privileges; without such privileges, the flaw cannot be leveraged. The overall risk is thus moderate in environments where untrusted or uncontrolled BPF programs are allowed and where local privileged access is possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the fix for sched_process_wait nullability.
  • Restrict BPF program loading to users with CAP_SYS_ADMIN or root, preventing untrusted users from injecting potentially dangerous programs.
  • If the sched_process_wait tracepoint is not required, disable or restrict access to the raw BPF subsystem via kernel configuration or runtime sysctl to reduce the attack surface.

Generated by OpenCVE AI on September 30, 2026 at 09:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-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
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Mark sched_process_wait argument as nullable do_wait() passes wo->wo_pid to the sched_process_wait tracepoint. kernel_wait4() leaves wo_pid NULL for wait4(-1), and kernel_waitid_prepare() does likewise for waitid(P_ALL). btf_ctx_access() currently types argument 0 as PTR_TO_BTF_ID | PTR_TRUSTED. Without PTR_MAYBE_NULL, the verifier accepts an unchecked dereference. Trusted pointer loads have no fault protection, so a wait for any child can then cause a NULL pointer dereference in JITed BPF code. Add sched_process_wait to raw_tp_null_args[] with argument 0 marked nullable. The verifier rejects an unchecked dereference while preserving access after the program checks the pointer for NULL.
Title bpf: Mark sched_process_wait argument as nullable
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:13 AM
Reserved
Sep 25, 2026, 10:19 AM
Status
Analyzed
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 29, 2026, 5:56 PM
Severity
Low
Public date
Sep 25, 2026, 12:00 AM