CVE-2026-139294
bpf: Use the socket of a sk_lookup test run under RCU
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Use the socket of a sk_lookup test run under RCU bpf_sk_lookup_assign() accepts only sockets which are freed by RCU, and takes no reference. bpf_prog_test_run_sk_lookup() looks at sk_reuseport of the selected socket and generates its cookie, which is a write, behind bpf_test_timer_leave(), that is outside of the RCU read side critical section in which the program ran. If the socket is closed in the meantime it may be gone. Do both before the section ends.
INFO
Published Date :
Nov. 30, 2026, 2:18 p.m.
Last Modified :
Nov. 30, 2026, 2:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Complete socket operations within RCU critical sections.
- Perform socket actions before the RCU section ends.
- Update the Linux kernel to the latest version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139294.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139294 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139294
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139294 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139294 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: bpf: Use the socket of a sk_lookup test run under RCU bpf_sk_lookup_assign() accepts only sockets which are freed by RCU, and takes no reference. bpf_prog_test_run_sk_lookup() looks at sk_reuseport of the selected socket and generates its cookie, which is a write, behind bpf_test_timer_leave(), that is outside of the RCU read side critical section in which the program ran. If the socket is closed in the meantime it may be gone. Do both before the section ends. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139294.json">CVE-2026-139294</a> Added Reference https://git.kernel.org/stable/c/4588284c6c25732e2411e0630c42cbbedfbb866b Added Reference https://git.kernel.org/stable/c/6aff0129f327b159c86a54e6bea64a027630ff6b Added Reference https://git.kernel.org/stable/c/8b460e65da1f63423a8e96ae5831dca448c13d89 Added Reference https://git.kernel.org/stable/c/8b71f8bf8e26e244e3a83d0822b3901f8e083353 Added Reference https://git.kernel.org/stable/c/ccf05077a60dbadd2947084b2d97289a1fb18a65 Added Reference https://git.kernel.org/stable/c/e1d83cf6d3fcc70189a82be21e68b8164660670c