# CVE-2026-138922: crypto: sa2ul - Fix HMAC key preparation

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:13.993Z
- Modified: 2026-11-30T14:17:51.177Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d2c8ac187fc922e73930a1b2f6a211e27f595d01 before 15797b618528bd2e7b94e8aac167f5ae23e24e1a; from d2c8ac187fc922e73930a1b2f6a211e27f595d01 before 09da3a7fe7951e7659ee924d79db38812064d666; from d2c8ac187fc922e73930a1b2f6a211e27f595d01 before 780cd10c8e78f97ed768be229acff0ffd5483477; 5.9 (not affected: before 5.9; from 6.18.64 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/15797b618528bd2e7b94e8aac167f5ae23e24e1a>
- <https://git.kernel.org/stable/c/09da3a7fe7951e7659ee924d79db38812064d666>
- <https://git.kernel.org/stable/c/780cd10c8e78f97ed768be229acff0ffd5483477>

## Sources

- CVE List: [CVE-2026-138922](https://www.cve.org/CVERecord?id=CVE-2026-138922), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138922](https://nvd.nist.gov/vuln/detail/CVE-2026-138922), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138922 · Whole record: https://cve.day/CVE-2026-138922.json · Rebuilt by cve.day 2026-11-30T14:32:43.528Z
