# CVE-2026-43330: crypto: caam - fix overflow on long hmac keys

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-08T13:31:18.133Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: caam - fix overflow on long hmac keys

When a key longer than block size is supplied, it is copied and then
hashed into the real key.  The memory allocated for the copy needs to
be rounded to DMA cache alignment, as otherwise the hashed key may
corrupt neighbouring memory.

The copying is performed using kmemdup, however this leads to an overflow:
reading more bytes (aligned_len - keylen) from the keylen source buffer.
Fix this by replacing kmemdup with kmalloc, followed by memcpy.

(As written by CVE List.)

## Affected

- Linux Linux: from 199354d7fb6eaa2cc5bb650af0bca624baffee35 before 31022cfde5235c45fa765f0aabeff5f0652852f2; from 199354d7fb6eaa2cc5bb650af0bca624baffee35 before c2fb4984fe09fc176fe4c12d5e3edf626df6511d; from 199354d7fb6eaa2cc5bb650af0bca624baffee35 before aa545df011338df13f0833fc1fabcb15c0521959; from 199354d7fb6eaa2cc5bb650af0bca624baffee35 before cebc5ebd958346195b77f42d0cd5141b4e448fae; from 199354d7fb6eaa2cc5bb650af0bca624baffee35 before 80688afb9c35b3934ce2d6be9973758915e2e0ef; 6.3 (not affected: before 6.3; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.3 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/31022cfde5235c45fa765f0aabeff5f0652852f2> (patch)
- <https://git.kernel.org/stable/c/c2fb4984fe09fc176fe4c12d5e3edf626df6511d> (patch)
- <https://git.kernel.org/stable/c/aa545df011338df13f0833fc1fabcb15c0521959> (patch)
- <https://git.kernel.org/stable/c/cebc5ebd958346195b77f42d0cd5141b4e448fae> (patch)
- <https://git.kernel.org/stable/c/80688afb9c35b3934ce2d6be9973758915e2e0ef> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-43330 · Whole record: https://cve.day/CVE-2026-43330.json · Rebuilt by cve.day 2026-11-25T22:59:20.997Z
