Thread (8 messages) 8 messages, 4 authors, 2024-02-13

Re: [PATCH] [v2] net: sctp: fix skb leak in sctp_inq_free()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-02-13 00:25:16
Also in: linux-sctp

On Mon, 12 Feb 2024 11:22:02 +0300 Dmitry Antipov wrote:
In case of GSO, 'chunk->skb' pointer may point to an entry from
fraglist created in 'sctp_packet_gso_append()'. To avoid freeing
random fraglist entry (and so undefined behavior and/or memory
leak), introduce 'sctp_chunk_release()' helper to ensure that
'chunk->skb' is set to 'chunk->head_skb' (i.e. fraglist head)
before calling 'sctp_chunk_free()', and use the aforementioned
helper in 'sctp_inq_pop()' as well.
Please repost this as a separate thread, per:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#resending-after-review
Xin Long is probably out for New Year celebrations, anyway.
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help