Skip to contentSkip to conversation

CVE-2026-45986: crypto: ccree - fix a memory leak in cc_mac_digest()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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: ccree - fix a memory leak in cc_mac_digest()

Add cc_unmap_result() if cc_map_hash_request_final() fails to prevent potential memory leak.

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

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

	Issue introduced in 4.17 with commit 63893811b0fcb52f6eaf9811cc08bddd46f81c3e and fixed in 6.6.140 with commit 3061c9bfb3f5b3522ab174e2fa7473b24422d1c6
	Issue introduced in 4.17 with commit 63893811b0fcb52f6eaf9811cc08bddd46f81c3e and fixed in 6.12.86 with commit 22f1dd4ca3bfe77db52cc7df3cc353dc114aab8b
	Issue introduced in 4.17 with commit 63893811b0fcb52f6eaf9811cc08bddd46f81c3e and fixed in 6.18.27 with commit 910f335786a0a0f0b46c3c8c19a13d25cb4454b6
	Issue introduced in 4.17 with commit 63893811b0fcb52f6eaf9811cc08bddd46f81c3e and fixed in 7.0.4 with commit 502440c235fe34cee02b24d7f893841f7565b3bc
	Issue introduced in 4.17 with commit 63893811b0fcb52f6eaf9811cc08bddd46f81c3e and fixed in 7.1-rc1 with commit 02c64052fad03699b9c6d1df2f9b444d17e4ac50

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-45986

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/ccree/cc_hash.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/3061c9bfb3f5b3522ab174e2fa7473b24422d1c6
	https://git.kernel.org/stable/c/22f1dd4ca3bfe77db52cc7df3cc353dc114aab8b
	https://git.kernel.org/stable/c/910f335786a0a0f0b46c3c8c19a13d25cb4454b6
	https://git.kernel.org/stable/c/502440c235fe34cee02b24d7f893841f7565b3bc
	https://git.kernel.org/stable/c/02c64052fad03699b9c6d1df2f9b444d17e4ac50