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

Published Aug 10, 2026
·
Updated

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

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

x25killbyneigh() 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 locksock(s). A concurrent close can run x25release(), remove the same socket from x25list, and drop the last socket reference in that window. The neighbour teardown path can then lock or inspect a freed struct sock/struct x25sock.

Take sockhold(s) while x25listlock 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 x25killbyneigh().

Affected Software

1 affected component
Linux Kernel

Event History

Aug 10, 2026
CVE Published
via MITRE·11:59 AM
Data Sourced
via MITRE·11:59 AM
Description
Data Sourced
via NVD·01:19 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-68137?

CVE-2026-68137 has a risk rating of 48.

2

What type of vulnerability is CVE-2026-68137?

CVE-2026-68137 is classified as a Use After Free vulnerability in the Linux kernel.

3

How do I fix CVE-2026-68137?

To fix CVE-2026-68137, ensure that you update to the latest version of the Linux kernel that includes the patch for this vulnerability.

4

What is the impact of CVE-2026-68137?

CVE-2026-68137 can potentially lead to memory corruption and could be exploited to execute arbitrary code.

5

Which specific function is affected by CVE-2026-68137?

CVE-2026-68137 affects the x25_kill_by_neigh() function in the net/x25 module of the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203