{"id":"CVE-2026-143363","state":"PUBLISHED","title":"bpf: Don't let bpf_arena_free_pages() see a half-set user range","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_arena_free_pages() see a half-set user range\n\nIf map_extra is 0, the first arena_map_mmap() sets user_vm_start and\nuser_vm_end. It holds arena->lock, but bpf_arena_free_pages() reads both\nfields without this mutex. The kfunc relies on the verifier, which rejects\na prog if user_vm_start of its arena is 0. But this check covers only the\nmaps in used_maps. The kfunc accepts any trusted pointer to struct bpf_map.\n\nThus the kfunc can run during arena_map_mmap() and read user_vm_start as 0\nand user_vm_end as vma->vm_end. Then min() does not limit page_cnt to the\narena. arena_free_range() unmaps and frees pages of other vmalloc areas.\n\nRead user_vm_start one time and return if it is 0. This value means that no\nrange is set, because arena_get_unmapped_area() rejects address 0. If only\nuser_vm_end is still 0, uaddr_end is 0 and the kfunc returns, as today.","publishedAt":"2026-12-03T09:22:16.226Z","updatedAt":"2026-12-03T09:22:16.226Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"317460317a02a1af512697e6e964298dedd8a163","status":"affected","lessThan":"49153a811e95ccaf45b0c0e516f6e20783de8ef1","versionType":"git"},{"version":"317460317a02a1af512697e6e964298dedd8a163","status":"affected","lessThan":"52498f14c2d26d67a9bf06998b797900827a06ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/arena.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/arena.c"]}],"references":["https://git.kernel.org/stable/c/49153a811e95ccaf45b0c0e516f6e20783de8ef1","https://git.kernel.org/stable/c/52498f14c2d26d67a9bf06998b797900827a06ad"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143363.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143363","state":"PUBLISHED","datePublished":"2026-12-03T09:22:16.226Z","dateUpdated":"2026-12-03T09:22:16.226Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.371Z"},"containers":{"cna":{"title":"bpf: Don't let bpf_arena_free_pages() see a half-set user range","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_arena_free_pages() see a half-set user range\n\nIf map_extra is 0, the first arena_map_mmap() sets user_vm_start and\nuser_vm_end. It holds arena->lock, but bpf_arena_free_pages() reads both\nfields without this mutex. The kfunc relies on the verifier, which rejects\na prog if user_vm_start of its arena is 0. But this check covers only the\nmaps in used_maps. The kfunc accepts any trusted pointer to struct bpf_map.\n\nThus the kfunc can run during arena_map_mmap() and read user_vm_start as 0\nand user_vm_end as vma->vm_end. Then min() does not limit page_cnt to the\narena. arena_free_range() unmaps and frees pages of other vmalloc areas.\n\nRead user_vm_start one time and return if it is 0. This value means that no\nrange is set, because arena_get_unmapped_area() rejects address 0. If only\nuser_vm_end is still 0, uaddr_end is 0 and the kfunc returns, as today."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"317460317a02a1af512697e6e964298dedd8a163","status":"affected","lessThan":"49153a811e95ccaf45b0c0e516f6e20783de8ef1","versionType":"git"},{"version":"317460317a02a1af512697e6e964298dedd8a163","status":"affected","lessThan":"52498f14c2d26d67a9bf06998b797900827a06ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/arena.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/arena.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/49153a811e95ccaf45b0c0e516f6e20783de8ef1"},{"url":"https://git.kernel.org/stable/c/52498f14c2d26d67a9bf06998b797900827a06ad"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:16.226Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}