CVE-2026-98846: sctp: check RCV_SHUTDOWN after the sendmsg connect wait

Published Oct 18, 2026
·
Updated

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

sctp: check RCVSHUTDOWN after the sendmsg connect wait

sctpwaitforconnect() drops the socket lock while it sleeps. An out-of-the-blue ABORT can then be processed from the socket backlog and unlink the association. If a concurrent shutdown(fd, SHUTRD) sets RCVSHUTDOWN, the waiter breaks with err == 0 before checking asoc->base.dead. Its final sctpassociationput() can then free the association, leaving sctpsendmsgtoasoc() to continue with a dangling pointer.

Check RCVSHUTDOWN along with the wait error in sctpsendmsgtoasoc() before using the association again. The check only accesses the socket, so it needs no additional association reference. Return the existing -ESRCH so that sctpsendmsg() skips freeing a new association that may already have been destroyed.

Keep sctpwaitforconnect() unchanged to preserve its behavior for the connect() caller.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:50 PM
Data Sourced
via MITRE·03:50 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

The issue requires SCTP sendmsg() to be waiting for an association connection while the socket lock is dropped. During that wait, an out-of-the-blue SCTP ABORT must unlink the association and a concurrent shutdown(fd, SHUT_RD) must set RCV_SHUTDOWN.

2

Is this limited to a particular SCTP operation?

Yes. The affected path is sctp_sendmsg_to_asoc() after its connect wait completes. The related connect() behavior is intentionally left unchanged by the fix.

3

What happens if the vulnerable race is reached?

The association can be freed while sctp_sendmsg_to_asoc() still retains a pointer to it. Continuing to use that dangling pointer can result in a use-after-free condition.

4

What does the fix change?

The fix checks RCV_SHUTDOWN together with the wait error before sctp_sendmsg_to_asoc() uses the association again. It returns -ESRCH so sctp_sendmsg() does not free a newly created association that may already have been destroyed.

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