crypto: sa2ul - Fix HMAC key preparation

Summary

CVECVE-2026-138922
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:51 UTC
Updated2026-11-30 14:17:51 UTC
DescriptionIn 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/[email protected]/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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d2c8ac187fc922e73930a1b2f6a211e27f595d01 15797b618528bd2e7b94e8aac167f5ae23e24e1a git Not specified
CNA Linux Linux affected d2c8ac187fc922e73930a1b2f6a211e27f595d01 09da3a7fe7951e7659ee924d79db38812064d666 git Not specified
CNA Linux Linux affected d2c8ac187fc922e73930a1b2f6a211e27f595d01 780cd10c8e78f97ed768be229acff0ffd5483477 git Not specified
CNA Linux Linux affected 5.9 Not specified
CNA Linux Linux unaffected 5.9 semver Not specified
CNA Linux Linux unaffected 6.18.64 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/15797b618528bd2e7b94e8aac167f5ae23e24e1a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/780cd10c8e78f97ed768be229acff0ffd5483477 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/09da3a7fe7951e7659ee924d79db38812064d666 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report