PT-2026-163252
CVE-2026-139211
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
sctp: reject forged cookie peer addr with unknown address family
When cookie authentication is disabled, COOKIE-ECHO peer addr is
attacker-controlled. An invalid sa family made sctp get af specific()
return NULL and crash in sctp transport init() on
af specific->sockaddr len. Validate it with af->addr valid() in
sctp unpack cookie(), which also rejects a mismatched family, e.g.
an AF INET6 peer addr on an IPv4 socket that would later crash in
sctp v6 get dst() on inet6 sk(sk)->opt. Validate a copy of peer addr,
since addr valid() 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 sctp process init() instead of the raw cookie, so a
v4-mapped v6 address is normalised to AF INET before the association
and its primary transport are built from it.
For that, sctp v6 addr valid() has to return 0 for a non-v4-mapped
address when it is called with a socket that is not PF INET6, 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 addr valid()
now also checks sk family and ipv6 only sock, simplify the address
handling in sctp process param() 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 AF INET before the
transport is created, matching what the socket API paths already do.
Also add the missing !af check in sctp process init(), as
sctp get af specific(AF INET6) returns NULL on CONFIG IPV6=n builds.
BUG: KASAN: null-ptr-deref in sctp transport new+0xa7/0x350
Read of size 4 at addr 00000000000000b4 by task poc/682
Call Trace:
sctp transport new+0xa7/0x350
sctp assoc add peer+0x153/0x850
sctp process init+0xf9/0x1180
sctp sf do 5 1D ce+0x464/0xbc0
sctp do sm+0x114/0x2990
sctp endpoint bh rcv+0x280/0x430
sctp inq push+0xdd/0x100
sctp rcv+0x17f5/0x1ae0
sctp4 rcv+0x2b/0x40
ip protocol deliver rcu+0x25b/0x270
ip local deliver+0xd1/0xe0
Kernel panic - not syncing: Fatal exception in interrupt
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾