crypto: caam - fix overflow on long hmac keys
Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.
cve-program · CVE-2026-43330
PublishedIn 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-43330 · CVE overview and exploitation status
cve-program · CVE-2026-43330
- https://git.kernel.org/stable/c/31022cfde5235c45fa765f0aabeff5f0652852f2
- https://git.kernel.org/stable/c/c2fb4984fe09fc176fe4c12d5e3edf626df6511d
- https://git.kernel.org/stable/c/aa545df011338df13f0833fc1fabcb15c0521959
- https://git.kernel.org/stable/c/cebc5ebd958346195b77f42d0cd5141b4e448fae
- https://git.kernel.org/stable/c/80688afb9c35b3934ce2d6be9973758915e2e0ef
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.