Skip to contentSkip to conversation

CVE-2026-46075: crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path

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: atmel-sha204a - Fix potential UAF and memory leak in remove path

Unregister the hwrng to prevent new ->read() calls and flush the Atmel I2C workqueue before teardown to prevent a potential UAF if a queued callback runs while the device is being removed.

Drop the early return to ensure sysfs entries are removed and ->hwrng.priv is freed, preventing a memory leak.

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

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

	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.6.140 with commit c5a45d14234bf26e28a89e3a5dcc08336595cf11
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.12.86 with commit 775c00d87c385b758da9504cf053acea00e2ed40
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.18.27 with commit 1193c12126d39bf986a5a9214827b73707b193ab
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 7.0.4 with commit 31901371ccd16b42d2f167b1018ba9ae8bd5a6c7
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 7.1-rc1 with commit bab1adf3b87e4bfac92c4f5963c63db434d561c1

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

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/atmel-sha204a.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/c5a45d14234bf26e28a89e3a5dcc08336595cf11
	https://git.kernel.org/stable/c/775c00d87c385b758da9504cf053acea00e2ed40
	https://git.kernel.org/stable/c/1193c12126d39bf986a5a9214827b73707b193ab
	https://git.kernel.org/stable/c/31901371ccd16b42d2f167b1018ba9ae8bd5a6c7
	https://git.kernel.org/stable/c/bab1adf3b87e4bfac92c4f5963c63db434d561c1