CVE-2026-139211: sctp: reject forged cookie peer_addr with unknown address family

Published Nov 30, 2026
·
Updated

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

sctp: reject forged cookie peeraddr with unknown address family

When cookie authentication is disabled, COOKIE-ECHO peeraddr is attacker-controlled. An invalid safamily made sctpgetafspecific() return NULL and crash in sctptransportinit() on afspecific->sockaddrlen. Validate it with af->addrvalid() in sctpunpackcookie(), which also rejects a mismatched family, e.g. an AFINET6 peeraddr on an IPv4 socket that would later crash in sctpv6getdst() on inet6sk(sk)->opt. Validate a copy of peeraddr, since addrvalid() rewrites a v4-mapped v6 address in place and the cookie still lives in the received skb, which is not guaranteed to be unshared. Store the validated copy in the new association and pass it to sctpprocessinit() instead of the raw cookie, so a v4-mapped v6 address is normalised to AFINET before the association and its primary transport are built from it.

For that, sctpv6addrvalid() has to return 0 for a non-v4-mapped address when it is called with a socket that is not PFINET6, so that IPv6 addresses are never used on IPv4 sockets. The check is done after the v4-mapped handling, so v4-mapped addresses passed to an IPv4 socket through the socket API keep being accepted. As addrvalid() now also checks skfamily and ipv6onlysock, simplify the address handling in sctpprocessparam() with it, as it additionally filters out non-unicast addresses. As a side effect, a v4-mapped address in an IPv6 address parameter is now normalised to AFINET before the transport is created, matching what the socket API paths already do.

Also add the missing !af check in sctpprocessinit(), as sctpgetafspecific(AFINET6) returns NULL on CONFIGIPV6=n builds.

BUG: KASAN: null-ptr-deref in sctptransportnew+0xa7/0x350 Read of size 4 at addr 00000000000000b4 by task poc/682 Call Trace: <IRQ> sctptransportnew+0xa7/0x350 sctpassocaddpeer+0x153/0x850 sctpprocessinit+0xf9/0x1180 sctpsfdo51Dce+0x464/0xbc0 sctpdosm+0x114/0x2990 sctpendpointbhrcv+0x280/0x430 sctpinqpush+0xdd/0x100 sctprcv+0x17f5/0x1ae0 sctp4rcv+0x2b/0x40 ipprotocoldeliverrcu+0x25b/0x270 iplocaldeliver+0xd1/0xe0 </IRQ> Kernel panic - not syncing: Fatal exception in interrupt

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In SCTP cookie handling, validate a copy of peer_addr with af->addr_valid() before passing it to sctp_process_init(); reject unknown or mismatched address families and normalize v4-mapped IPv6 addresses to AF_INET for IPv4 sockets.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description

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