CVE-2026-98037

bpf: Reject untrusted allocated-object pointers

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Reject untrusted allocated-object pointers When the final RCU read-side critical section ends, a local kptr is demoted to PTR_UNTRUSTED but retains MEM_ALLOC. The pointer may be NULL or may refer to an object whose lifetime is no longer protected. type_is_ptr_alloc_obj() nevertheless recognizes any PTR_TO_BTF_ID with MEM_ALLOC as a live allocated object. In particular, a refcount-only local kptr never carries NON_OWN_REF, so it still passes the bpf_refcount_acquire() argument check after RCU protection ends. The kfunc can then dereference NULL or stale memory. Make type_is_ptr_alloc_obj() reject PTR_UNTRUSTED pointers. Since type_is_non_owning_ref() is based on the same predicate, graph kfunc arguments obey the same live-object requirement. Fault-protected reads of the demoted pointer remain valid: writes are already rejected, and read fixups use bpf_may_fault_on_deref() rather than this predicate. [ kkd: Rewrote commit log ]

Key facts

Published
25 Sep 2026
Last changed
19 Oct 2026
Assigned by
Linux
EPSS
0.201% likely to be exploited in the next 30 days, higher than 9.998% 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 092c2874dc1b2060fa77a465a971acd4fdf87683 (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 135d542b97fa93e32c457d49d6e7b33ca7d05bae (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 6b1f786ad85a0b63393b76f5e634deab1a73198c (affected)
  • 1b12171533a9bb23cf6fba7262b479028b65e1e8 up to but excluding 7441ee8276641bddaf1cba7bb75ef9c1458ceb3b (affected)
LinuxLinux
  • Default status: affected
  • 6.8 (affected)
  • 0 up to but excluding 6.8 (unaffected)
  • 6.12.111 up to and including 6.12.* (unaffected)
  • 6.18.53 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