]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: af_alg - Cap AEAD AD length to 0x80000000
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 May 2026 09:02:45 +0000 (17:02 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:37 +0000 (18:08 +0800)
commite4c06479d7059888adf2f22bc1ebcf053bf691a2
tree98011d210df843be07d1f0832f8d404803e62f13
parentffdd2bc378953b525aca61902534e753f1f8e734
crypto: af_alg - Cap AEAD AD length to 0x80000000

In order to prevent arithmetic overflows when checking the TX
buffer size, cap the associated data length to 0x80000000.

Reported-by: Yiming Qian <yimingqian591@gmail.com>
Fixes: 400c40cf78da ("crypto: algif - add AEAD support")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c