bpf: Reject untrusted allocated-object pointers
Summary
| CVE | CVE-2026-98037 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-25 11:17:32 UTC |
| Updated | 2026-09-25 11:17:32 UTC |
| 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 ] |
Risk And Classification
EPSS: 0.001680000 probability, percentile 0.054060000 (date 2026-09-27)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 1b12171533a9bb23cf6fba7262b479028b65e1e8 092c2874dc1b2060fa77a465a971acd4fdf87683 git | Not specified |
| CNA | Linux | Linux | affected 1b12171533a9bb23cf6fba7262b479028b65e1e8 135d542b97fa93e32c457d49d6e7b33ca7d05bae git | Not specified |
| CNA | Linux | Linux | affected 1b12171533a9bb23cf6fba7262b479028b65e1e8 6b1f786ad85a0b63393b76f5e634deab1a73198c git | Not specified |
| CNA | Linux | Linux | affected 1b12171533a9bb23cf6fba7262b479028b65e1e8 7441ee8276641bddaf1cba7bb75ef9c1458ceb3b git | Not specified |
| CNA | Linux | Linux | affected 6.8 | Not specified |
| CNA | Linux | Linux | unaffected 6.8 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.111 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.53 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.2.7 7.2.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3-rc2 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/7441ee8276641bddaf1cba7bb75ef9c1458ceb3b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/092c2874dc1b2060fa77a465a971acd4fdf87683 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/6b1f786ad85a0b63393b76f5e634deab1a73198c | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/135d542b97fa93e32c457d49d6e7b33ca7d05bae | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.