]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 02:36:25 +0000 (19:36 -0700)
commitdd91c79e4f58fbe2898dac84858033700e0e99fb
tree5ae477e9337f85b9fed44e16a5e6e27bce5847d9
parent490a9591b5feb40b91052bbb0e6bc038ed8490ff
sctp: Fix MAC comparison to be constant-time

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>
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c