AZL-116803: CVE-2026-138922 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
crypto: sa2ul - Fix HMAC key preparation
saprepareiopads() 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 cryptoshashexport() write 1 more than sizeof(struct sha256state).
- 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the sa2ul driver, use the crypto library to prepare the HMAC key, as the Chelsio and QAT drivers do.
Event History
Frequently Asked Questions
Which cryptographic use cases are affected?
The issue is in the SA2UL crypto driver’s HMAC key preparation. The SHA-256 path can write one byte past the SHA-256 state buffer, and HMAC keys longer than 64 bytes were not handled correctly.
What must occur for the overflow condition to be reached?
The vulnerable SA2UL HMAC key-preparation path must be used with SHA-256. The provided data does not state whether an unprivileged or remote attacker can cause that path to be invoked.
How can I determine whether the listed package is affected?
Check whether the installed Azure Linux kernel package is version 6.6.161.1-1. The supplied information identifies that package version but does not provide a fixed package version.