Files
linux/net/sctp
Xin Long c665025c19 sctp: add vtag check in sctp_sf_violation
[ Upstream commit aa0f697e45 ]

sctp_sf_violation() is called when processing HEARTBEAT_ACK chunk
in cookie_wait state, and some other places are also using it.

The vtag in the chunk's sctphdr should be verified, otherwise, as
later in chunk length check, it may send abort with the existent
asoc's vtag, which can be exploited by one to cook a malicious
chunk to terminate a SCTP asoc.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 12:02:10 +09:00
..
2023-05-16 11:52:53 +09:00
2023-05-16 11:52:53 +09:00
2016-04-15 17:29:36 -04:00
2016-06-03 19:37:21 -04:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00