# CVE-2026-98037: bpf: Reject untrusted allocated-object pointers

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-25T10:23:51.126Z
- Modified: 2026-10-19T10:17:57.647Z
- Assigned by: Linux

## 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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 1b12171533a9bb23cf6fba7262b479028b65e1e8 before 092c2874dc1b2060fa77a465a971acd4fdf87683; from 1b12171533a9bb23cf6fba7262b479028b65e1e8 before 135d542b97fa93e32c457d49d6e7b33ca7d05bae; from 1b12171533a9bb23cf6fba7262b479028b65e1e8 before 6b1f786ad85a0b63393b76f5e634deab1a73198c; from 1b12171533a9bb23cf6fba7262b479028b65e1e8 before 7441ee8276641bddaf1cba7bb75ef9c1458ceb3b; 6.8 (not affected: before 6.8; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/092c2874dc1b2060fa77a465a971acd4fdf87683>
- <https://git.kernel.org/stable/c/135d542b97fa93e32c457d49d6e7b33ca7d05bae>
- <https://git.kernel.org/stable/c/6b1f786ad85a0b63393b76f5e634deab1a73198c>
- <https://git.kernel.org/stable/c/7441ee8276641bddaf1cba7bb75ef9c1458ceb3b>

## Sources

- CVE List: [CVE-2026-98037](https://www.cve.org/CVERecord?id=CVE-2026-98037), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98037](https://nvd.nist.gov/vuln/detail/CVE-2026-98037), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98037 · Whole record: https://cve.day/CVE-2026-98037.json · Rebuilt by cve.day 2026-11-25T22:59:41.031Z
