{"id":"CVE-2026-53032","state":"PUBLISHED","title":"bpf: Fix NULL deref in map_kptr_match_type for scalar regs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix NULL deref in map_kptr_match_type for scalar regs\n\nCommit ab6c637ad027 (\"bpf: Fix a bpf_kptr_xchg() issue with local\nkptr\") refactored map_kptr_match_type() to branch on btf_is_kernel()\nbefore checking base_type(). A scalar register stored into a kptr\nslot has no btf, so the btf_is_kernel(reg->btf) call dereferences\nNULL.\n\nMove the base_type() != PTR_TO_BTF_ID guard before any reg->btf\naccess.","publishedAt":"2026-06-24T16:29:39.916Z","updatedAt":"2026-06-24T16:29:39.916Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"520454e839710c327808c2fcc98e28cee77355fc","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"0a36c1f72888bca0237295a4da19cd91821a90be","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"6982653ce5f119982aa58f1af58e7bfbebf39252","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"da1d615ce49a47986a8864e2371a26e97861085c","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad","versionType":"git"},{"version":"af3d2e0f3a54e67806959d161e613457772babc5","status":"affected","versionType":"git"},{"version":"4782968e0d631b0d8944dcfd4bf8fb49be087101","status":"affected","versionType":"git"},{"version":"6.4.16","status":"affected","lessThan":"6.5","versionType":"semver"},{"version":"6.5.3","status":"affected","lessThan":"6.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.141","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.91","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":["https://git.kernel.org/stable/c/520454e839710c327808c2fcc98e28cee77355fc","https://git.kernel.org/stable/c/0a36c1f72888bca0237295a4da19cd91821a90be","https://git.kernel.org/stable/c/6982653ce5f119982aa58f1af58e7bfbebf39252","https://git.kernel.org/stable/c/da1d615ce49a47986a8864e2371a26e97861085c","https://git.kernel.org/stable/c/4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53032.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53032","state":"PUBLISHED","datePublished":"2026-06-24T16:29:39.916Z","dateUpdated":"2026-06-24T16:29:39.916Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.380Z"},"containers":{"cna":{"title":"bpf: Fix NULL deref in map_kptr_match_type for scalar regs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix NULL deref in map_kptr_match_type for scalar regs\n\nCommit ab6c637ad027 (\"bpf: Fix a bpf_kptr_xchg() issue with local\nkptr\") refactored map_kptr_match_type() to branch on btf_is_kernel()\nbefore checking base_type(). A scalar register stored into a kptr\nslot has no btf, so the btf_is_kernel(reg->btf) call dereferences\nNULL.\n\nMove the base_type() != PTR_TO_BTF_ID guard before any reg->btf\naccess."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"520454e839710c327808c2fcc98e28cee77355fc","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"0a36c1f72888bca0237295a4da19cd91821a90be","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"6982653ce5f119982aa58f1af58e7bfbebf39252","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"da1d615ce49a47986a8864e2371a26e97861085c","versionType":"git"},{"version":"ab6c637ad0276e42f8acabcbc64932a6d346dab3","status":"affected","lessThan":"4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad","versionType":"git"},{"version":"af3d2e0f3a54e67806959d161e613457772babc5","status":"affected","versionType":"git"},{"version":"4782968e0d631b0d8944dcfd4bf8fb49be087101","status":"affected","versionType":"git"},{"version":"6.4.16","status":"affected","lessThan":"6.5","versionType":"semver"},{"version":"6.5.3","status":"affected","lessThan":"6.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.141","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.91","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/520454e839710c327808c2fcc98e28cee77355fc"},{"url":"https://git.kernel.org/stable/c/0a36c1f72888bca0237295a4da19cd91821a90be"},{"url":"https://git.kernel.org/stable/c/6982653ce5f119982aa58f1af58e7bfbebf39252"},{"url":"https://git.kernel.org/stable/c/da1d615ce49a47986a8864e2371a26e97861085c"},{"url":"https://git.kernel.org/stable/c/4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-24T16:29:39.916Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.141"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.91"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.0.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}