Thread (3 messages) 3 messages, 3 authors, 2025-10-23

Re: [PATCH v2 net] sctp: avoid NULL dereference when chunk data buffer is missing

From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: 2025-10-21 13:42:23
Also in: linux-sctp, lkml

On Tue, Oct 21, 2025 at 04:00:36PM +0300, Alexey Simakov wrote:
chunk->skb pointer is dereferenced in the if-block where it's supposed
to be NULL only.

chunk->skb can only be NULL if chunk->head_skb is not. Check for frag_list
instead and do it just before replacing chunk->skb. We're sure that
otherwise chunk->skb is non-NULL because of outer if() condition.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 90017accff61 ("sctp: Add GSO support")
Signed-off-by: Alexey Simakov <redacted>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>

Thx.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help