Commit c21f45cf authored by Alexandr Sapozhnikov's avatar Alexandr Sapozhnikov Committed by Greg Kroah-Hartman
Browse files

net/sctp: fix a null dereference in sctp_disposition sctp_sf_do_5_1D_ce()



[ Upstream commit 2f311968 ]

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.

Signed-off-by: default avatarAlexandr Sapozhnikov <alsp705@gmail.com>
Acked-by: default avatarXin Long <lucien.xin@gmail.com>
Fixes: 30f6ebf6 ("sctp: add SCTP_AUTH_NO_AUTH type for AUTHENTICATION_EVENT")
Link: https://patch.msgid.link/20251002091448.11-1-alsp705@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 77e402b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment