{"api_version":"1","generated_at":"2026-11-30T16:27:45+00:00","cve":"CVE-2026-139269","urls":{"html":"https://cve.report/CVE-2026-139269","api":"https://cve.report/api/cve/CVE-2026-139269.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139269","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139269"},"summary":{"title":"bpf: Fix arena race between page free and alloc leading to incoherency","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix arena race between page free and alloc leading to incoherency\n\nExisting arena kfunc code has an underlying race condition\nthat can lead to writes being lost from the BPF program's\npoint of view:\n\na) A memory range gets freed by operation (1), and its range\nis added back to the arena range tree.\n\nb) A concurrent allocation (2) reallocates the range, and does\nwrites to it. Writes from that CPU may follow the stale TLB\nentries into the pages that are about to be freed.\n\nc) (1) invalidates the TLB. The old pages, and any writes done\nto them, are now inaccessible. zap_pages() similarly removes the\nmappings for userspace threads.\n\nThis can be triggered by particularly demanding BPF arena data\nstructures that constantly allocate and deallocate memory, like\nhash table allocations.\n\nSolve this ABA problem by keeping the range allocated until TLB\ninvalidation and unmapping are complete. Under the arena spinlock,\nclaim any free pages in the range and clear its kernel PTEs. Then drop\nthe spinlock, lock and unlock each cleared page to wait for faults that\nare still installing a user PTE, flush the kernel TLB and zap the user\npage tables. Finally, retake the spinlock to release the range. Frees\nserialize on zap_mutex, so an overlapping free cannot release the range\nearly. Claiming the range only allocates a range tree node when the\nwhole range is free, and then there is nothing to free.\n\nUser faults on a range that is allocated without a page now raise\nSIGBUS instead of populating it. That covers a range reserved with\nbpf_arena_reserve_pages() and a range whose kernel PTEs a free has\nalready cleared. Touching a page while a BPF program frees it is a user\nspace bug, and in a BPF_F_SEGV_ON_FAULT arena it already raises SIGSEGV.\n\nSleepable frees run synchronously and are deferred only when the arena\nspinlock cannot be taken. The deferred free worker retries such a free\nin place instead of requeueing itself, so the flush_work() in\narena_map_free() waits for all of its work.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:49","updated_at":"2026-11-30 14:18:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/a9406fd55912882f56e603542cf10295d62dde3d","name":"https://git.kernel.org/stable/c/a9406fd55912882f56e603542cf10295d62dde3d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7244a2e58d2167292972f9380abb3a4d17a343e3","name":"https://git.kernel.org/stable/c/7244a2e58d2167292972f9380abb3a4d17a343e3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139269","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139269","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b8467290edab4bafae352bf3f317055669a1a458 a9406fd55912882f56e603542cf10295d62dde3d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b8467290edab4bafae352bf3f317055669a1a458 7244a2e58d2167292972f9380abb3a4d17a343e3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/arena.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a9406fd55912882f56e603542cf10295d62dde3d","status":"affected","version":"b8467290edab4bafae352bf3f317055669a1a458","versionType":"git"},{"lessThan":"7244a2e58d2167292972f9380abb3a4d17a343e3","status":"affected","version":"b8467290edab4bafae352bf3f317055669a1a458","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/arena.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.0"},{"lessThan":"7.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix arena race between page free and alloc leading to incoherency\n\nExisting arena kfunc code has an underlying race condition\nthat can lead to writes being lost from the BPF program's\npoint of view:\n\na) A memory range gets freed by operation (1), and its range\nis added back to the arena range tree.\n\nb) A concurrent allocation (2) reallocates the range, and does\nwrites to it. Writes from that CPU may follow the stale TLB\nentries into the pages that are about to be freed.\n\nc) (1) invalidates the TLB. The old pages, and any writes done\nto them, are now inaccessible. zap_pages() similarly removes the\nmappings for userspace threads.\n\nThis can be triggered by particularly demanding BPF arena data\nstructures that constantly allocate and deallocate memory, like\nhash table allocations.\n\nSolve this ABA problem by keeping the range allocated until TLB\ninvalidation and unmapping are complete. Under the arena spinlock,\nclaim any free pages in the range and clear its kernel PTEs. Then drop\nthe spinlock, lock and unlock each cleared page to wait for faults that\nare still installing a user PTE, flush the kernel TLB and zap the user\npage tables. Finally, retake the spinlock to release the range. Frees\nserialize on zap_mutex, so an overlapping free cannot release the range\nearly. Claiming the range only allocates a range tree node when the\nwhole range is free, and then there is nothing to free.\n\nUser faults on a range that is allocated without a page now raise\nSIGBUS instead of populating it. That covers a range reserved with\nbpf_arena_reserve_pages() and a range whose kernel PTEs a free has\nalready cleared. Touching a page while a BPF program frees it is a user\nspace bug, and in a BPF_F_SEGV_ON_FAULT arena it already raises SIGSEGV.\n\nSleepable frees run synchronously and are deferred only when the arena\nspinlock cannot be taken. The deferred free worker retries such a free\nin place instead of requeueing itself, so the flush_work() in\narena_map_free() waits for all of its work."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:11.082Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a9406fd55912882f56e603542cf10295d62dde3d"},{"url":"https://git.kernel.org/stable/c/7244a2e58d2167292972f9380abb3a4d17a343e3"}],"title":"bpf: Fix arena race between page free and alloc leading to incoherency","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139269","datePublished":"2026-11-30T13:33:11.082Z","dateReserved":"2026-11-30T13:22:15.924Z","dateUpdated":"2026-11-30T13:33:11.082Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:49","lastModifiedDate":"2026-11-30 14:18:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139269","Ordinal":"1","Title":"bpf: Fix arena race between page free and alloc leading to incoh","CVE":"CVE-2026-139269","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139269","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix arena race between page free and alloc leading to incoherency\n\nExisting arena kfunc code has an underlying race condition\nthat can lead to writes being lost from the BPF program's\npoint of view:\n\na) A memory range gets freed by operation (1), and its range\nis added back to the arena range tree.\n\nb) A concurrent allocation (2) reallocates the range, and does\nwrites to it. Writes from that CPU may follow the stale TLB\nentries into the pages that are about to be freed.\n\nc) (1) invalidates the TLB. The old pages, and any writes done\nto them, are now inaccessible. zap_pages() similarly removes the\nmappings for userspace threads.\n\nThis can be triggered by particularly demanding BPF arena data\nstructures that constantly allocate and deallocate memory, like\nhash table allocations.\n\nSolve this ABA problem by keeping the range allocated until TLB\ninvalidation and unmapping are complete. Under the arena spinlock,\nclaim any free pages in the range and clear its kernel PTEs. Then drop\nthe spinlock, lock and unlock each cleared page to wait for faults that\nare still installing a user PTE, flush the kernel TLB and zap the user\npage tables. Finally, retake the spinlock to release the range. Frees\nserialize on zap_mutex, so an overlapping free cannot release the range\nearly. Claiming the range only allocates a range tree node when the\nwhole range is free, and then there is nothing to free.\n\nUser faults on a range that is allocated without a page now raise\nSIGBUS instead of populating it. That covers a range reserved with\nbpf_arena_reserve_pages() and a range whose kernel PTEs a free has\nalready cleared. Touching a page while a BPF program frees it is a user\nspace bug, and in a BPF_F_SEGV_ON_FAULT arena it already raises SIGSEGV.\n\nSleepable frees run synchronously and are deferred only when the arena\nspinlock cannot be taken. The deferred free worker retries such a free\nin place instead of requeueing itself, so the flush_work() in\narena_map_free() waits for all of its work.","Type":"Description","Title":"bpf: Fix arena race between page free and alloc leading to incoh"}]}}}