CVE-2026-68137
net/x25: fix use-after-free in x25_kill_by_neigh()
Check your servers for CVE-2026-68137
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-68137 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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().
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.54%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 46.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5c94b6205e87411dbe9dc1ca088eb36b8837fb47, before db6b04f6d65549bb1c7bc8e64a92e7b7d03be676 affected from 409570a619c1cda2e0fde6018a256b9e3d3ba0ee, before 5e8a754ac2009a88a7b99ab61eab6296eed360f3 affected from 7781607938c8371d4c2b243527430241c62e39c2, before c98a454d1a9e1bd09d5fd55a7aa589b199340b88 affected from 7781607938c8371d4c2b243527430241c62e39c2, before 3f4fe26c20c30bd5a2e2583e80685def0b27858c affected from 7781607938c8371d4c2b243527430241c62e39c2, before 610678d4be94b619c751572e8a58de705592cd07 affected from 7781607938c8371d4c2b243527430241c62e39c2, before ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a affected from 7781607938c8371d4c2b243527430241c62e39c2, before 9aabda553184346f74810e2ee1d96920b4612e3f affected from 7781607938c8371d4c2b243527430241c62e39c2, before 5499e0602d2faafd42c580d25f615903c3fbe11b affected dffc859d1d9560da594e4282091781b8d2715f00 affected 858642789ada1b48630f322e59416ca9fca3e6b7 affected 4c240c5a105557e4546d0836e694868f22fd09b0 affected 9acf05b4e7b55fdb712ef7b331dbce5bcd391d0f affected 4a279d7ee1c65411b4055ecd428b8aa2b1711c1f affected 671529db75e6be777bb1c76aa07c2bdd2992be6d affected from 5.10.110, before 5.10.265 affected from 5.15.33, before 5.15.216 affected from 4.9.311, before 4.10 affected from 4.14.276, before 4.15 affected from 4.19.238, before 4.20 affected from 5.4.189, before 5.5 affected from 5.16.19, before 5.17 affected from 5.17.2, before 5.18
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 5.10.265 up to and including 5.10.* unaffected from 5.15.216 up to and including 5.15.* unaffected from 6.1.183 up to and including 6.1.* unaffected from 6.6.148 up to and including 6.6.* unaffected from 6.12.101 up to and including 6.12.* unaffected from 6.18.42 up to and including 6.18.* unaffected from 7.1.6 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-68137 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-68137
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-68137
trivy image --scanners vuln IMAGE | grep CVE-2026-68137
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/db6b04f6d65549bb1c7bc8e64a92e7b7d03be676 git.kernel.org
- https://git.kernel.org/stable/c/5e8a754ac2009a88a7b99ab61eab6296eed360f3 git.kernel.org
- https://git.kernel.org/stable/c/c98a454d1a9e1bd09d5fd55a7aa589b199340b88 git.kernel.org
- https://git.kernel.org/stable/c/3f4fe26c20c30bd5a2e2583e80685def0b27858c git.kernel.org
- https://git.kernel.org/stable/c/610678d4be94b619c751572e8a58de705592cd07 git.kernel.org
- https://git.kernel.org/stable/c/ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a git.kernel.org
- https://git.kernel.org/stable/c/9aabda553184346f74810e2ee1d96920b4612e3f git.kernel.org
- https://git.kernel.org/stable/c/5499e0602d2faafd42c580d25f615903c3fbe11b git.kernel.org
Source: the record CVE-2026-68137 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse