]> Git Repo - linux.git/commit
crypto: scomp - fix req->dst buffer overflow
authorChengming Zhou <[email protected]>
Wed, 27 Dec 2023 09:35:23 +0000 (09:35 +0000)
committerHerbert Xu <[email protected]>
Fri, 29 Dec 2023 03:25:56 +0000 (11:25 +0800)
commit744e1885922a9943458954cfea917b31064b4131
tree0e80906cca7dc8b91b8e2c243278562b57492981
parent44ff4ea133b5c3fa28fa3ef79fed80cac999f07c
crypto: scomp - fix req->dst buffer overflow

The req->dst buffer size should be checked before copying from the
scomp_scratch->dst to avoid req->dst buffer overflow problem.

Fixes: 1ab53a77b772 ("crypto: acomp - add driver-side scomp interface")
Reported-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Chengming Zhou <[email protected]>
Reviewed-by: Barry Song <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/scompress.c
This page took 0.045355 seconds and 4 git commands to generate.