Skip to contentSkip to conversation

CVE-2026-43044: crypto: caam - fix DMA corruption on long hmac keys

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-43044 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.3 with commit 199354d7fb6eaa2cc5bb650af0bca624baffee35 and fixed in 6.6.134 with commit a7ecf06d3ee06e9b3322e1e7b003ea5c6f6e135a
	Issue introduced in 6.3 with commit 199354d7fb6eaa2cc5bb650af0bca624baffee35 and fixed in 6.12.81 with commit c0c133e0225d87aad326bb90bbce9bdd6fde3cbb
	Issue introduced in 6.3 with commit 199354d7fb6eaa2cc5bb650af0bca624baffee35 and fixed in 6.18.22 with commit 68feed135a0c7243a9275ae7e6a18260f755f52b
	Issue introduced in 6.3 with commit 199354d7fb6eaa2cc5bb650af0bca624baffee35 and fixed in 6.19.12 with commit f2af8be110bde26b3e3354efdfdda97f426306a4
	Issue introduced in 6.3 with commit 199354d7fb6eaa2cc5bb650af0bca624baffee35 and fixed in 7.0 with commit 5ddfdcbe10dc5f97afc4e46ca22be2be717e8caf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-43044

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/crypto/caam/caamhash.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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