CVE-2026-68137
net/x25: fix use-after-free in x25_kill_by_neigh()
Reported by linux · Published August 10, 2026
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().
EPSS 0.54% · 46.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a, 9aabda553184346f74810e2ee1d96920b4612e3f, 610678d4be94b619c751572e8a58de705592cd07, 5499e0602d2faafd42c580d25f615903c3fbe11b, 5.18, 5.17, 5.5, 4.20, 4.15, 4.10, 3f4fe26c20c30bd5a2e2583e80685def0b27858c |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5c94b6205e87411dbe9dc1ca088eb36b8837fb47, 409570a619c1cda2e0fde6018a256b9e3d3ba0ee, 7781607938c8371d4c2b243527430241c62e39c2 |
| Linux | Linux | 5.18, 0, 5.10.265 |
| Linux | Linux | 6.1.183, 5.18, 0 |
| linux | linux_kernel | 5.18, 5.18, 5.18 |
Timeline
- Aug 10, 2026 CVE Published
- Aug 11, 2026 Coalition ESS Score
- Aug 16, 2026 Security Advisory
- Aug 19, 2026 CVE Updated
- Aug 24, 2026 EPSS Score (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68137
vulnetix vdb fixes CVE-2026-68137
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68137/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart