CVE-2026-98059·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.2.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.2.7
Fixed in: 7.2.7
How to fix this CVE
Update your Linux kernel to version 7.2.7 or later to resolve this BPF tracepoint vulnerability that could allow NULL pointer dereference attacks through eBPF programs. Systems running kernel versions 6.19 through 7.2.6 should prioritize this update, as the fix hardens pointer validation in the sched_process_wait tracepoint to prevent unsafe memory access by malicious or buggy BPF code.
sudo dnf upgrade kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against the vulnerable range (6.19 to 7.2.6)
- Step 2: Verify if BPF programs are loaded on your system with `bpftool prog list` (requires bpf-tools package)
- Step 3: Search system logs for kernel panic or oops messages related to NULL pointer dereference: `sudo grep -i 'null pointer\|general protection fault' /var/log/kern.log`
- Step 4: After updating, confirm the new kernel is running with `uname -r` and verify it reports version 7.2.7 or higher
FAQ
What is CVE-2026-98059?
This vulnerability affects the Linux kernel's eBPF subsystem where the sched_process_wait tracepoint can receive a NULL pointer argument that is not properly validated. Unprotected BPF code can dereference this NULL pointer, causing a kernel crash or potential code execution.
Is CVE-2026-98059 being actively exploited?
No, this vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it requires a privileged user to load malicious BPF programs, limiting its exposure.
What versions of Kernel are affected by CVE-2026-98059?
Linux kernel versions 6.19 through 7.2.6 are vulnerable. The fix is available in kernel 7.2.7 and later stable releases.
How do I check if my server is vulnerable to CVE-2026-98059?
Run `uname -r` to check your kernel version. If it shows a version between 6.19 and 7.2.6, your system is vulnerable and should be updated immediately.
Does Defensia detect CVE-2026-98059?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98059 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98059. Free for 1 server.
Get started free