# CVE-2026-93138: bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-09-17T16:11:38.795Z
- Modified: 2026-10-19T10:17:03.837Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux

bpf_get_btf_vmlinux() lazily parses the vmlinux BTF under the
bpf_verifier_lock, but publishes the result through a plain store
and re-checks it through a plain lockless load. Nothing orders
the stores initializing the struct btf inside btf_parse_vmlinux()
against the store publishing the pointer: On a weakly ordered
arch, a concurrent first-time caller taking the lockless fast
path could in principle observe the pointer before the parsed
contents are visible. The mutex_unlock() does not help such a
reader given it only synchronizes with a later acquisition of the
same lock. Thus, publish the pointer with smp_store_release()
and read it on the fast path with smp_load_acquire().

Acquire semantics are needed rather than a dependency-ordered
READ_ONCE(): btf_parse_vmlinux() also populates globals outside
the returned object (e.g. bpf_ctx_convert.t). An address
dependency would only order accesses performed through the
pointer and not cover other globals.

(As written by CVE List.)

## Affected

- Linux Linux: from 8580ac9404f6240668a026785d7d8856f0530409 before f32a4a40bc635be25d6816da4bd91e9e58c31bf3; from 8580ac9404f6240668a026785d7d8856f0530409 before a7fe72d780122eb934536f1719abad445f6afdf7; from 8580ac9404f6240668a026785d7d8856f0530409 before e18a10b39c994f04e1ebd7f8fc042bb1ca8ad053; from 8580ac9404f6240668a026785d7d8856f0530409 before 978524ecfc1c539282df5858de1eec20748c6f74; from 8580ac9404f6240668a026785d7d8856f0530409 before eaf302628a78806f66d8224d6ba03fb4d5025de4; from 8580ac9404f6240668a026785d7d8856f0530409 before 2892f3f44bf865c8fb6b6c0960edec4cc91806ee; from 8580ac9404f6240668a026785d7d8856f0530409 before 86d11c594d60b255b526fa5260f669463fb1a063; from 8580ac9404f6240668a026785d7d8856f0530409 before 92863e678070f57c17c868e4bfa2441a5c61ad2b; 5.5 (not affected: before 5.5; from 5.10.270 up to 5.10.*; from 5.15.221 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f32a4a40bc635be25d6816da4bd91e9e58c31bf3>
- <https://git.kernel.org/stable/c/a7fe72d780122eb934536f1719abad445f6afdf7>
- <https://git.kernel.org/stable/c/e18a10b39c994f04e1ebd7f8fc042bb1ca8ad053>
- <https://git.kernel.org/stable/c/978524ecfc1c539282df5858de1eec20748c6f74>
- <https://git.kernel.org/stable/c/eaf302628a78806f66d8224d6ba03fb4d5025de4>
- <https://git.kernel.org/stable/c/2892f3f44bf865c8fb6b6c0960edec4cc91806ee>
- <https://git.kernel.org/stable/c/86d11c594d60b255b526fa5260f669463fb1a063>
- <https://git.kernel.org/stable/c/92863e678070f57c17c868e4bfa2441a5c61ad2b>

## Sources

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

---

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