diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2024-02-01 06:49:09 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-02-02 11:08:12 +0100 |
commit | 24c890dd712f6345e382256cae8c97abb0406b70 (patch) | |
tree | ab8ac0b6ed69da9841c3cc585c2192de5fcb02dd /drivers | |
parent | crypto: cbc - Ensure statesize is zero (diff) | |
download | linux-24c890dd712f6345e382256cae8c97abb0406b70.tar.xz linux-24c890dd712f6345e382256cae8c97abb0406b70.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: b6d972f68983 ("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 'drivers')
0 files changed, 0 insertions, 0 deletions