Kernel memory corruption via ignored HMAC initialization failure
Published Dec 28, 2024 · Updated Aug 5, 2026
Use-after-free in the Broadcom SPU HMAC driver in affected Linux kernel builds allows local users to corrupt kernel memory through AF_ALG. ahash_hmac_init frees ctx->shash after a zero-length key makes ahash_init return -ENOKEY, but reports success and leaves the stale pointer for update or final operations. Any unprivileged local user with access to hmac-sha1-iproc can trigger the path, enabling kernel reads, writes, control-flow hijacking, or a panic.
Summary
What happened
Use-after-free in the Broadcom SPU HMAC driver in affected Linux kernel builds allows local users to corrupt kernel memory through AF_ALG. ahash_hmac_init frees ctx->shash after a zero-length key makes ahash_init return -ENOKEY, but reports success and leaves the stale pointer for update or final operations. Any unprivileged local user with access to hmac-sha1-iproc can trigger the path, enabling kernel reads, writes, control-flow hijacking, or a panic.
The record
- CVE
- CVE-2024-56681
- Published
- Dec 28, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- Dec 28, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.11
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <19630cf57233e845b6ac57c9c969a4888925467b
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <28f8ffa945f7d7150463e15097ea73b19529d6f5
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <4ea3e3b761e371102bb1486778e2f8dbc9e37413
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <75e1e38e5d80d6d9011b7322698ffba3dd3db30a
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <8f1a9a960b1107bd0e0ec3736055f5ed0e717edf
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <ae5253313e0ea5f00c06176074592b7f493c8546
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <bba9e38c5ad41d0a88b22a59e5b6dd3e31825118
- Affected versionversion=9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 <ee36db8e8203420e6d5c42eb9428920c2fc36532
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo