Description
In the Linux kernel, the following vulnerability has been resolved: crypto: caam - fix DMA corruption 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 rounding was performed, but never actually used for the allocation. Fix this by replacing kmemdup with kmalloc for a larger buffer, followed by memcpy.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
199354d7fb6eaa2cc5bb650af0bca624baffee35 to < a7ecf06d3ee06e9b3322e1e7b003ea5c6f6e135aaffected199354d7fb6eaa2cc5bb650af0bca624baffee35 to < c0c133e0225d87aad326bb90bbce9bdd6fde3cbbaffected199354d7fb6eaa2cc5bb650af0bca624baffee35 to < 68feed135a0c7243a9275ae7e6a18260f755f52baffected199354d7fb6eaa2cc5bb650af0bca624baffee35 to < f2af8be110bde26b3e3354efdfdda97f426306a4affected199354d7fb6eaa2cc5bb650af0bca624baffee35 to < 5ddfdcbe10dc5f97afc4e46ca22be2be717e8cafaffected
Linux Linux
Default version status: affected
6.3affected0 to < 6.3unaffected6.6.134 to ≤ 6.6.*unaffected6.12.81 to ≤ 6.12.*unaffected6.18.22 to ≤ 6.18.*unaffected6.19.12 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a7ecf06d3ee06e9b3322e1e7b003ea5c6f6e135a ↗
- https://git.kernel.org/stable/c/c0c133e0225d87aad326bb90bbce9bdd6fde3cbb ↗
- https://git.kernel.org/stable/c/68feed135a0c7243a9275ae7e6a18260f755f52b ↗
- https://git.kernel.org/stable/c/f2af8be110bde26b3e3354efdfdda97f426306a4 ↗
- https://git.kernel.org/stable/c/5ddfdcbe10dc5f97afc4e46ca22be2be717e8caf ↗