Skip to contentSkip to conversation

CVE-2026-31391: crypto: atmel-sha204a - Fix OOM ->tfm_count leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

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 OOM ->tfm_count leak

If memory allocation fails, decrement ->tfm_count to avoid blocking future reads.

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

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

	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.1.167 with commit 66ee9c1c3575b5d6afc340faca00fd40ed5b7ad9
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.6.130 with commit 2bfc83cee05f8b9604502df27d94e8e2b4a3dbf1
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.12.78 with commit 1ab70c260cf16f931a728b2cb63fff5f38c814d8
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.18.20 with commit 6f502049a96b368ea6646c49d9520d6f69a101fa
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 6.19.10 with commit fd262dc6d758232511127372eba866b7600739ba
	Issue introduced in 5.3 with commit da001fb651b00e1deeaf24767dd691ae8152a4f5 and fixed in 7.0-rc3 with commit d240b079a37e90af03fd7dfec94930eb6c83936e

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

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/66ee9c1c3575b5d6afc340faca00fd40ed5b7ad9
	https://git.kernel.org/stable/c/2bfc83cee05f8b9604502df27d94e8e2b4a3dbf1
	https://git.kernel.org/stable/c/1ab70c260cf16f931a728b2cb63fff5f38c814d8
	https://git.kernel.org/stable/c/6f502049a96b368ea6646c49d9520d6f69a101fa
	https://git.kernel.org/stable/c/fd262dc6d758232511127372eba866b7600739ba
	https://git.kernel.org/stable/c/d240b079a37e90af03fd7dfec94930eb6c83936e