CVE-2026-98038

bpf: Keep refcount_acquire nullable for borrowed RCU kptrs

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 ]

Key facts

Published
25 Sep 2026
Last changed
21 Oct 2026
Assigned by
Linux
EPSS
0.215% likely to be exploited in the next 30 days, higher than 11.956% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 85bfc8b6db43502444c428eaa2de20bdd2fb9064 (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 8d19e2cdfba9ba8c8eb6a459cd666bec00a1d2c6 (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 85074498228a2500ea8b8039c49cc1ab8ad5328f (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding dc36739e5cc9f60485418a910b42bc95339218d2 (affected)
LinuxLinux
  • Default status: affected
  • 6.8 (affected)
  • 0 up to but excluding 6.8 (unaffected)
  • 6.12.114 up to and including 6.12.* (unaffected)
  • 6.18.57 up to and including 6.18.* (unaffected)
  • 7.2.7 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 25 Sep 2026 Published

References