Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-68137

net/x25: fix use-after-free in x25_kill_by_neigh()
Back to all
CVE

CVE-2026-68137

net/x25: fix use-after-free in x25_kill_by_neigh()

In the Linux kernel, the following vulnerability has been resolved:

net/x25: fix use-after-free in x25killby_neigh()

x25killby_neigh() walks the global X.25 socket list looking for sockets

attached to a terminating neighbour. x25listlock 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 x25listlock 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 sockhold(s) while x25list_lock still proves that the list entry is

live, then drop the temporary reference after the socket has been locked,

rechecked, and released. Recheck x25sk(s)->neighbour after locksock(),

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

x25killby_neigh().

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/3f4fe26c20c30bd5a2e2583e80685def0b27858c, https://git.kernel.org/stable/c/5499e0602d2faafd42c580d25f615903c3fbe11b, https://git.kernel.org/stable/c/5e8a754ac2009a88a7b99ab61eab6296eed360f3, https://git.kernel.org/stable/c/610678d4be94b619c751572e8a58de705592cd07, https://git.kernel.org/stable/c/9aabda553184346f74810e2ee1d96920b4612e3f, https://git.kernel.org/stable/c/c98a454d1a9e1bd09d5fd55a7aa589b199340b88, https://git.kernel.org/stable/c/db6b04f6d65549bb1c7bc8e64a92e7b7d03be676, https://git.kernel.org/stable/c/ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68137.json, https://nvd.nist.gov/vuln/detail/CVE-2026-68137, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00543%
EPSS Percentile
0.43293%
Introduced Version
5c94b6205e87411dbe9dc1ca088eb36b8837fb47,409570a619c1cda2e0fde6018a256b9e3d3ba0ee,7781607938c8371d4c2b243527430241c62e39c2,0,5.10.110,5.15.33,4.9.311,4.14.276,4.19.238,5.4.189,5.16.19,5.17.2,5.11.0,5.16.0,5.18.0,6.2.0,6.7.0,6.13.0
Fix Available
db6b04f6d65549bb1c7bc8e64a92e7b7d03be676,5e8a754ac2009a88a7b99ab61eab6296eed360f3,5499e0602d2faafd42c580d25f615903c3fbe11b,5.10.265,5.15.216,4.10,4.15,4.20,5.5,5.17,5.18,6.1.183,6.6.148,6.12.101,6.18.42,7.1.6,6.12.101-1~deb12u1,6.12.101-1

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading