# CVE-2024-56681: crypto: bcm - add error check in the ahash_hmac_init function

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-12-28T09:46:09.675Z
- Modified: 2026-10-15T22:18:02.660Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 8f1a9a960b1107bd0e0ec3736055f5ed0e717edf; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 75e1e38e5d80d6d9011b7322698ffba3dd3db30a; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 28f8ffa945f7d7150463e15097ea73b19529d6f5; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 4ea3e3b761e371102bb1486778e2f8dbc9e37413; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before ae5253313e0ea5f00c06176074592b7f493c8546; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before ee36db8e8203420e6d5c42eb9428920c2fc36532; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before bba9e38c5ad41d0a88b22a59e5b6dd3e31825118; from 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 before 19630cf57233e845b6ac57c9c969a4888925467b; 4.11 (not affected: before 4.11; from 4.19.325 up to 4.19.*; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 4.11 before 4.19.325; from 4.20 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.11.11; from 6.12 before 6.12.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/8f1a9a960b1107bd0e0ec3736055f5ed0e717edf> (patch)
- <https://git.kernel.org/stable/c/75e1e38e5d80d6d9011b7322698ffba3dd3db30a> (patch)
- <https://git.kernel.org/stable/c/28f8ffa945f7d7150463e15097ea73b19529d6f5> (patch)
- <https://git.kernel.org/stable/c/4ea3e3b761e371102bb1486778e2f8dbc9e37413> (patch)
- <https://git.kernel.org/stable/c/05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc> (patch)
- <https://git.kernel.org/stable/c/ae5253313e0ea5f00c06176074592b7f493c8546> (patch)
- <https://git.kernel.org/stable/c/ee36db8e8203420e6d5c42eb9428920c2fc36532> (patch)
- <https://git.kernel.org/stable/c/bba9e38c5ad41d0a88b22a59e5b6dd3e31825118> (patch)
- <https://git.kernel.org/stable/c/19630cf57233e845b6ac57c9c969a4888925467b> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-56681 · Whole record: https://cve.day/CVE-2024-56681.json · Rebuilt by cve.day 2026-11-25T22:58:50.530Z
