{"id":"CVE-2026-93138","aliases":["CVE-2026-93138"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux\n\nbpf_get_btf_vmlinux() lazily parses the vmlinux BTF under the\nbpf_verifier_lock, but publishes the result through a plain store\nand re-checks it through a plain lockless load. Nothing orders\nthe stores initializing the struct btf inside btf_parse_vmlinux()\nagainst the store publishing the pointer: On a weakly ordered\narch, a concurrent first-time caller taking the lockless fast\npath could in principle observe the pointer before the parsed\ncontents are visible. The mutex_unlock() does not help such a\nreader given it only synchronizes with a later acquisition of the\nsame lock. Thus, publish the pointer with smp_store_release()\nand read it on the fast path with smp_load_acquire().\n\nAcquire semantics are needed rather than a dependency-ordered\nREAD_ONCE(): btf_parse_vmlinux() also populates globals outside\nthe returned object (e.g. bpf_ctx_convert.t). An address\ndependency would only order accesses performed through the\npointer and not cover other globals.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix vmlinux BTF prep race in bpf_get_btf_vmlinux\n\nbpf_get_btf_vmlinux() lazily parses the vmlinux BTF under the\nbpf_verifier_lock, but publishes the result through a plain store\nand re-checks it through a plain lockless load. Nothing orders\nthe stores initializing the struct btf inside btf_parse_vmlinux()\nagainst the store publishing the pointer: On a weakly ordered\narch, a concurrent first-time caller taking the lockless fast\npath could in principle observe the pointer before the parsed\ncontents are visible. The mutex_unlock() does not help such a\nreader given it only synchronizes with a later acquisition of the\nsame lock. Thus, publish the pointer with smp_store_release()\nand read it on the fast path with smp_load_acquire().\n\nAcquire semantics are needed rather than a dependency-ordered\nREAD_ONCE(): btf_parse_vmlinux() also populates globals outside\nthe returned object (e.g. bpf_ctx_convert.t). An address\ndependency would only order accesses performed through the\npointer and not cover other globals.","source":"cvelist"}],"published":"2026-09-17T16:11:38.795Z","modified":"2026-10-19T10:17:03.837Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"f32a4a40bc635be25d6816da4bd91e9e58c31bf3","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"a7fe72d780122eb934536f1719abad445f6afdf7","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"e18a10b39c994f04e1ebd7f8fc042bb1ca8ad053","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"978524ecfc1c539282df5858de1eec20748c6f74","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"eaf302628a78806f66d8224d6ba03fb4d5025de4","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"2892f3f44bf865c8fb6b6c0960edec4cc91806ee","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"86d11c594d60b255b526fa5260f669463fb1a063","status":"affected"},{"type":"git","introduced":"8580ac9404f6240668a026785d7d8856f0530409","fixed":"92863e678070f57c17c868e4bfa2441a5c61ad2b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f32a4a40bc635be25d6816da4bd91e9e58c31bf3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7fe72d780122eb934536f1719abad445f6afdf7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e18a10b39c994f04e1ebd7f8fc042bb1ca8ad053","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/978524ecfc1c539282df5858de1eec20748c6f74","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eaf302628a78806f66d8224d6ba03fb4d5025de4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2892f3f44bf865c8fb6b6c0960edec4cc91806ee","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86d11c594d60b255b526fa5260f669463fb1a063","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92863e678070f57c17c868e4bfa2441a5c61ad2b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93138","url":"https://www.cve.org/CVERecord?id=CVE-2026-93138","licence":"CVE Terms of Use","modified":"2026-10-19T09:06:11.046Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93138","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93138","licence":"Public domain","modified":"2026-10-19T10:17:03.837Z"}],"updatedAt":"2026-11-25T22:59:39.465Z","epss":{"score":0.00176,"percentile":0.0745,"date":"2026-12-01T12:00:22.000Z"}}