CVE-2026-98037

Source
https://cve.org/CVERecord?id=CVE-2026-98037
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98037.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98037
Downstream
Published
2026-09-25T10:23:51Z
Modified
2026-09-26T03:48:37Z
Summary
bpf: Reject untrusted allocated-object pointers
Details

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 ]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98037.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b12171533a9bb23cf6fba7262b479028b65e1e8
Fixed
092c2874dc1b2060fa77a465a971acd4fdf87683
Fixed
135d542b97fa93e32c457d49d6e7b33ca7d05bae
Fixed
6b1f786ad85a0b63393b76f5e634deab1a73198c
Fixed
7441ee8276641bddaf1cba7bb75ef9c1458ceb3b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98037.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.12.111
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.53
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98037.json"