]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
integrity: Check that algo parameter is within valid range
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 16 Apr 2026 15:40:37 +0000 (11:40 -0400)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 13 May 2026 12:21:18 +0000 (08:21 -0400)
commit474c78c26744b6921549f0c679b7507a57cfcbb9
treeb7cd64f6f60264013eb6439aa882a6b5783a273a
parentc93a5f038ccc11ed8558ce642f62d5ede701a348
integrity: Check that algo parameter is within valid range

Check that the algo parameter passed to calc_file_id_hash is within valid
range. Do this in asymmetric_verify_v3 since this value will also be passed
to a hashless signature verification function from here.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Kamlesh Kumar <kam@juniper.net>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/digsig_asymmetric.c