{"id":"CVE-2026-139294","state":"PUBLISHED","title":"bpf: Use the socket of a sk_lookup test run under RCU","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use the socket of a sk_lookup test run under RCU\n\nbpf_sk_lookup_assign() accepts only sockets which are freed by RCU, and\ntakes no reference. bpf_prog_test_run_sk_lookup() looks at sk_reuseport of\nthe selected socket and generates its cookie, which is a write, behind\nbpf_test_timer_leave(), that is outside of the RCU read side critical\nsection in which the program ran. If the socket is closed in the meantime\nit may be gone.\n\nDo both before the section ends.","publishedAt":"2026-11-30T13:33:25.484Z","updatedAt":"2026-11-30T13:33:25.484Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"e1d83cf6d3fcc70189a82be21e68b8164660670c","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"4588284c6c25732e2411e0630c42cbbedfbb866b","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"ccf05077a60dbadd2947084b2d97289a1fb18a65","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"8b460e65da1f63423a8e96ae5831dca448c13d89","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"8b71f8bf8e26e244e3a83d0822b3901f8e083353","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"6aff0129f327b159c86a54e6bea64a027630ff6b","versionType":"git"},{"version":"6d3fad2b44eb9d226a896d1c93909f0fd2e1b9ea","status":"affected","versionType":"git"},{"version":"5.10.135","status":"affected","lessThan":"5.11","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]}],"references":["https://git.kernel.org/stable/c/e1d83cf6d3fcc70189a82be21e68b8164660670c","https://git.kernel.org/stable/c/4588284c6c25732e2411e0630c42cbbedfbb866b","https://git.kernel.org/stable/c/ccf05077a60dbadd2947084b2d97289a1fb18a65","https://git.kernel.org/stable/c/8b460e65da1f63423a8e96ae5831dca448c13d89","https://git.kernel.org/stable/c/8b71f8bf8e26e244e3a83d0822b3901f8e083353","https://git.kernel.org/stable/c/6aff0129f327b159c86a54e6bea64a027630ff6b"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139294.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139294","state":"PUBLISHED","datePublished":"2026-11-30T13:33:25.484Z","dateUpdated":"2026-11-30T13:33:25.484Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Use the socket of a sk_lookup test run under RCU","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use the socket of a sk_lookup test run under RCU\n\nbpf_sk_lookup_assign() accepts only sockets which are freed by RCU, and\ntakes no reference. bpf_prog_test_run_sk_lookup() looks at sk_reuseport of\nthe selected socket and generates its cookie, which is a write, behind\nbpf_test_timer_leave(), that is outside of the RCU read side critical\nsection in which the program ran. If the socket is closed in the meantime\nit may be gone.\n\nDo both before the section ends."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"e1d83cf6d3fcc70189a82be21e68b8164660670c","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"4588284c6c25732e2411e0630c42cbbedfbb866b","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"ccf05077a60dbadd2947084b2d97289a1fb18a65","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"8b460e65da1f63423a8e96ae5831dca448c13d89","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"8b71f8bf8e26e244e3a83d0822b3901f8e083353","versionType":"git"},{"version":"7c32e8f8bc33a5f4b113a630857e46634e3e143b","status":"affected","lessThan":"6aff0129f327b159c86a54e6bea64a027630ff6b","versionType":"git"},{"version":"6d3fad2b44eb9d226a896d1c93909f0fd2e1b9ea","status":"affected","versionType":"git"},{"version":"5.10.135","status":"affected","lessThan":"5.11","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e1d83cf6d3fcc70189a82be21e68b8164660670c"},{"url":"https://git.kernel.org/stable/c/4588284c6c25732e2411e0630c42cbbedfbb866b"},{"url":"https://git.kernel.org/stable/c/ccf05077a60dbadd2947084b2d97289a1fb18a65"},{"url":"https://git.kernel.org/stable/c/8b460e65da1f63423a8e96ae5831dca448c13d89"},{"url":"https://git.kernel.org/stable/c/8b71f8bf8e26e244e3a83d0822b3901f8e083353"},{"url":"https://git.kernel.org/stable/c/6aff0129f327b159c86a54e6bea64a027630ff6b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:25.484Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.135"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}