Thread (5 messages) flat view 5 messages, 4 authors, 2025-10-06

Re: [PATCH] net/sctp: fix a null dereference in sctp_disposition sctp_sf_do_5_1D_ce()

From: Xin Long <lucien.xin@gmail.com>
Date: 2025-10-02 19:27:36
Also in: linux-sctp, lkml

On Thu, Oct 2, 2025 at 5:14 AM Alexandr Sapozhnkiov [off-list ref] wrote:
From: Alexandr Sapozhnikov <redacted>

If new_asoc->peer.adaptation_ind=0 and sctp_ulpevent_make_authkey=0
and sctp_ulpevent_make_authkey() returns 0, then the variable
ai_ev remains zero and the zero will be dereferenced
in the sctp_ulpevent_free() function.

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

Signed-off-by: Alexandr Sapozhnikov <redacted>
Fixes: 30f6ebf65bc4 ("sctp: add SCTP_AUTH_NO_AUTH type for
AUTHENTICATION_EVENT")

Acked-by: Xin Long <lucien.xin@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help