net/x25: fix use-after-free in x25_kill_by_neigh()
CVE-2026-68137Published 10 Aug 2026, 11:59 UTC
Real-world risk
8.5/ 10High
Patch this week; within 48 h if Internet-facing
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.8
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Linux)
In the Linux kernel, the following vulnerability has been resolved: net/x25: fix use-after-free in x25_kill_by_neigh() x25_kill_by_neigh() walks the global X.25 socket list looking for sockets attached to a terminating neighbour. x25_list_lock protects list membership while the lookup is in progress, but it does not pin a socket's lifetime after the lock is dropped. The function currently drops x25_list_lock before calling lock_sock(s). A concurrent close can run x25_release(), remove the same socket from x25_list, and drop the last socket reference in that window. The neighbour teardown path can then lock or inspect a freed struct sock/struct x25_sock. Take sock_hold(s) while x25_list_lock still proves that the list entry is live, then drop the temporary reference after the socket has been locked, rechecked, and released. Recheck x25_sk(s)->neighbour after lock_sock(), because another path may have disconnected the socket before this path acquired the socket lock. Restart the list walk after each disconnect because the list lock was dropped and the previous iterator state may no longer be valid. A QEMU/KASAN run against origin/master reproduced a slab-use-after-free in x25_kill_by_neigh().
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Linux kernelUbiquitous | >= 5.10.110, < 5.10.265; >= 5.15.33, < 5.15.216; >= 4.9.311, < 4.10; >= 4.14.276, < 4.15; >= 4.19.238, < 4.20; >= 5.4.189, < 5.5; >= 5.16.19, < 5.17; >= 5.17.2, < 5.18; = 5.18; >= 5.17.2, < 6.1.183; >= 6.2, < 6.6.148; >= 6.7, < 6.12.101; >= 6.13, < 6.18.42; >= 6.19, < 7.1.6; = 7.2; = 7.2; = 7.2; = 7.2 | 5.10.265, 5.15.216, 4.10, 4.15, 4.20, 5.5, 5.17, 5.18, 7.2, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6 |
What to do
Update to a fixed version: 5.10.265, 5.15.216, 4.10, 4.15, 4.20, 5.5, 5.17, 5.18, 7.2, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 47), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 1 × threat 0.858.500
- Rounded to one decimal between 0.1 and 108.5
Exploitation and evidence timeline
- 10 Aug 2026 Published
- 2 Dec 2026 Risk 8.5 (cvss fallback)
Weakness
CWE-416
References
- https://git.kernel.org/stable/c/db6b04f6d65549bb1c7bc8e64a92e7b7d03be676patch
- https://git.kernel.org/stable/c/5e8a754ac2009a88a7b99ab61eab6296eed360f3patch
- https://git.kernel.org/stable/c/c98a454d1a9e1bd09d5fd55a7aa589b199340b88patch
- https://git.kernel.org/stable/c/3f4fe26c20c30bd5a2e2583e80685def0b27858cpatch
- https://git.kernel.org/stable/c/610678d4be94b619c751572e8a58de705592cd07patch
- https://git.kernel.org/stable/c/ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558apatch
- https://git.kernel.org/stable/c/9aabda553184346f74810e2ee1d96920b4612e3fpatch
- https://git.kernel.org/stable/c/5499e0602d2faafd42c580d25f615903c3fbe11bpatch
- CVE-2026-68137 on CVE.org