summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/pkcs7_verify.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2024-02-01 13:49:09 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-02-02 18:08:12 +0800
commitfb73c2eabf9a5bc33d626154c1bbfb54a8f47278 (patch)
treeed26b5b513a0af31a157abe2b46629aea5d3ae19 /crypto/asymmetric_keys/pkcs7_verify.c
parentca9069561198164afc252b66fb904cf484fc8138 (diff)
downloadlinux-crypto-fb73c2eabf9a5bc33d626154c1bbfb54a8f47278.tar.gz
linux-crypto-fb73c2eabf9a5bc33d626154c1bbfb54a8f47278.zip
crypto: algif_hash - Remove bogus SGL free on zero-length error path
When a zero-length message is hashed by algif_hash, and an error is triggered, it tries to free an SG list that was never allocated in the first place. Fix this by not freeing the SG list on the zero-length error path. Reported-by: Shigeru Yoshida <syoshida@redhat.com> Reported-by: xingwei lee <xrivendell7@gmail.com> Fixes: 483577ac3920 ("crypto: af_alg/hash: Fix recvmsg() after sendmsg(MSG_MORE)") Cc: <stable@vger.kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reported-by: syzbot+3266db0c26d1fbbe3abb@syzkaller.appspotmail.com Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/pkcs7_verify.c')
0 files changed, 0 insertions, 0 deletions