]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sctp: Fix MAC comparison to be constant-time
authorEric Biggers <ebiggers@kernel.org>
Mon, 18 Aug 2025 20:54:23 +0000 (13:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:15 +0000 (16:23 +0200)
commit9c05d44ec24126fc283835b68f82dba3ae985209
treebca87a4d51693ebf1c2741adc40a6305e75345a3
parent52f37ce2d523959e8a2a1a135c869f72044ecb15
sctp: Fix MAC comparison to be constant-time

commit dd91c79e4f58fbe2898dac84858033700e0e99fb upstream.

To prevent timing attacks, MACs need to be compared in constant time.
Use the appropriate helper function for this.

Fixes: bbd0d59809f9 ("[SCTP]: Implement the receive and verification of AUTH chunk")
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://patch.msgid.link/20250818205426.30222-3-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c