Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: user - re-add size check for CRYPTO_MSG_GETALG
Commit 9aa867e ("crypto: user - Add CRYPTO_MSG_DELRNG") accidentally removed the minimum size check for CRYPTO_MSG_GETALG netlink messages. This allows userland to send a truncated CRYPTO_MSG_GETALG message as short as a netlink header only making crypto_report() operate on uninitialized memory by accessing data beyond the end of the netlink message. Fix this be re-adding the minimum required size of CRYPTO_MSG_GETALG messages to the crypto_msg_min[] array. Fixes: 9aa867e ("crypto: user - Add CRYPTO_MSG_DELRNG") Cc: [email protected] # v4.2 Signed-off-by: Mathias Krause <[email protected]> Cc: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information