CVE-2026-74692: net/smc: fix TOCTOU race between smc_listen_out() and listener close

Published Aug 22, 2026
·
Updated

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

net/smc: fix TOCTOU race between smclistenout() and listener close

smclistenout() reads lsmc->sk.skstate without the listener lock, then acquires locksocknested() only after the check passes. This opens a window where smccloseactive() can transition the listener to SMCCLOSED, call smcclosecleanuplisten() to drain the accept queue, and release the lock, all between the lockless read and the delayed lock acquisition:

smclistenwork (smchswq) smccloseactive() ------------------------------- ------------------------- releasesock(child) if (skstate == SMCLISTEN) TRUE locksock(listener) skstate = SMCCLOSED smcclosecleanuplisten() releasesock(listener) flushwork(tcplistenwork) locksocknested(listener) smcacceptenqueue(listener, child) / child enqueued on dead listener /

smccloseactive() flushes only tcplistenwork. Work items already dispatched onto smchswq for the CLC handshake continue running unguarded. smcacceptenqueue() takes a sockhold() on the child that is never released, so the child smcsock, its clcsock, and the reference all leak. A remote peer that opens TCP connections while the server calls close() can exhaust kernel memory.

Move locksocknested() to before the skstate check so that the test and the enqueue are atomic under the listener lock.

Affected Software

2 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.150.1-1<6.6.152.1-1
6.6.152.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.152.1-1
  2. Configuration

    Apply the net/smc fix: move lock_sock_nested() before the sk_state check in smc_listen_out() so the state check and accept enqueue are atomic under the listener lock; also ensure that if sk_state transitions to SMC_CLOSED, smc_close_cleanup_listen() is called to drain the accept queue and prevent leaked references.

    Linux kernel net/smc smc_listen_out() listener state handling = Call smc_close_cleanup_listen() to drain the accept queue when listener transitions to SMC_CLOSED; avoid lockless read/TOCTOU by moving lock_sock_nested() before the sk_state check so test and enqueue are atomic under the listener lock.

Event History

Aug 22, 2026
CVE Published
via MITRE·03:32 PM
Data Sourced
via MITRE·03:32 PM
DescriptionSeverity
Data Sourced
via NVD·04:16 PM
DescriptionSeverity
Aug 24, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What conditions are needed to trigger the leak?

A TCP connection must have work dispatched to the SMC handshake workqueue while the corresponding SMC listener is being closed. The listener can transition to SMC_CLOSED and have its accept queue drained before the dispatched handshake work later acquires the listener lock and enqueues the child.

2

What is the practical impact of a successful race?

The child can be enqueued on a dead listener after cleanup has completed. The child socket, its clcsock, and a socket reference can then leak because the reference taken during accept enqueue is never released.

3

Which systems are exposed based on the available information?

Systems using the Linux kernel SMC networking listener path are implicated. The provided data does not identify affected kernel versions, distributions, or whether the vulnerable path is enabled by default.

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