CVE-2026-43330

Summary

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.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux199354d7fb6eaa2cc5bb650af0bca624baffee35 < 31022cfde5235c45fa765f0aabeff5f0652852f2affected
LinuxLinux199354d7fb6eaa2cc5bb650af0bca624baffee35 < c2fb4984fe09fc176fe4c12d5e3edf626df6511daffected
LinuxLinux199354d7fb6eaa2cc5bb650af0bca624baffee35 < aa545df011338df13f0833fc1fabcb15c0521959affected
LinuxLinux199354d7fb6eaa2cc5bb650af0bca624baffee35 < cebc5ebd958346195b77f42d0cd5141b4e448faeaffected
LinuxLinux199354d7fb6eaa2cc5bb650af0bca624baffee35 < 80688afb9c35b3934ce2d6be9973758915e2e0efaffected
LinuxLinux6.3affected
LinuxLinux0 < 6.3unaffected
LinuxLinux6.6.134 <= 6.6.*unaffected
LinuxLinux6.12.81 <= 6.12.*unaffected
LinuxLinux6.18.22 <= 6.18.*unaffected
LinuxLinux6.19.12 <= 6.19.*unaffected
LinuxLinux7.0 <= *unaffected

Weaknesses

References