crypto: sa2ul - Fix HMAC key preparation
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
crypto: sa2ul - Fix HMAC key preparation
sa_prepare_iopads() has multiple bugs, as discussed at https://lore.kernel.org/linux-crypto/20260831055141.1632832-1-s-vadapalli@ti.com/T/#u
- Commit 3bf533787910 ("crypto: sha256 - Use the partial block API") introduced a 1-byte buffer overflow in the SHA-256 case by making the crypto_shash_export() write 1 more than sizeof(struct sha256_state).
- It never worked for HMAC keys longer than 64 bytes in the first place.
Fix both of these bugs by just using the crypto library to prepare the key, like what the chelsio and qat drivers do. Also remove the pointless use of an indirect call.
| Product | Versions |
|---|---|
| Linux Linux | d2c8ac187fc922e73930a1b2f6a211e27f595d01 to before 15797b618528bd2e7b94e8aac167f5ae23e24e1a Affectedd2c8ac187fc922e73930a1b2f6a211e27f595d01 to before 09da3a7fe7951e7659ee924d79db38812064d666 Affectedd2c8ac187fc922e73930a1b2f6a211e27f595d01 to before 780cd10c8e78f97ed768be229acff0ffd5483477 Affected |
| Linux Linux | 5.9 Affectedbefore 5.9 Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.