CVE-2026-98038
Received Received - Intake

Use-After-Free in Linux Kernel BPF

Vulnerability report for CVE-2026-98038, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-25

Last updated on: 2026-09-25

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Keep refcount_acquire nullable for borrowed RCU kptrs bpf_refcount_acquire() is fallible for a borrowed reference because the object may have reached a zero refcount. The verifier therefore keeps KF_RET_NULL on the return value unless the argument is an owning reference. An RCU-protected load of a local kptr is marked MEM_ALLOC, but it only receives NON_OWN_REF when the pointee contains a graph node. A refcounted object without a graph node consequently looks like an owning reference even though the loaded register has no acquired reference state. If the program drops the last real reference while remaining in the RCU critical section, refcount_inc_not_zero() returns NULL while the verifier treats the result as non-NULL. Only classify the argument as owning when it is backed by a verifier-tracked reference. This retains the non-NULL return for pointers from bpf_obj_new(), bpf_kptr_xchg(), or an earlier successful acquisition, while requiring a NULL check for borrowed RCU kptrs. [ kkd: Rewrote commit log ]

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-25
Last Modified
2026-09-25
Generated
2026-09-25
AI Q&A
2026-09-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a flaw in the bpf_refcount_acquire() function where it incorrectly handles borrowed RCU-protected kptrs. The verifier may treat a non-owning reference as an owning reference, leading to a NULL return from refcount_inc_not_zero() while the verifier assumes a valid reference. This can cause issues if the last reference is dropped during an RCU critical section.

Impact Analysis

This vulnerability could allow a local attacker to cause a denial of service or unexpected behavior in the kernel by exploiting the incorrect handling of reference counts. It may lead to crashes or instability in systems running vulnerable Linux kernel versions.

Mitigation Strategies

Update the Linux kernel to the latest patched version to resolve this bpf_refcount_acquire() vulnerability. Monitor kernel logs for unusual BPF-related errors or crashes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-98038. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart