Skip to contentSkip to conversation

CVE-2026-46019: crypto: atmel-aes - Fix 3-page memory leak in atmel_aes_buff_cleanup

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-aes - Fix 3-page memory leak in atmel_aes_buff_cleanup

atmel_aes_buff_init() allocates 4 pages using __get_free_pages() with ATMEL_AES_BUFFER_ORDER, but atmel_aes_buff_cleanup() frees only the first page using free_page(), leaking the remaining 3 pages. Use free_pages() with ATMEL_AES_BUFFER_ORDER to fix the memory leak.

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

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

	Issue introduced in 4.5 with commit bbe628ed897d728d38c4035381d12b2f308fac6f and fixed in 6.6.140 with commit b63f1e2f0e319ad3fe4a58eb3db4fd50cc98baca
	Issue introduced in 4.5 with commit bbe628ed897d728d38c4035381d12b2f308fac6f and fixed in 6.12.86 with commit 65b3589d39d05699c3850202f8333e5361033ea3
	Issue introduced in 4.5 with commit bbe628ed897d728d38c4035381d12b2f308fac6f and fixed in 6.18.27 with commit 61516b4a5b2647dc3f8f67b5dffaf038be997511
	Issue introduced in 4.5 with commit bbe628ed897d728d38c4035381d12b2f308fac6f and fixed in 7.0.4 with commit 230ad8a78fe67266b1ba4685da1abdd61471c5b8
	Issue introduced in 4.5 with commit bbe628ed897d728d38c4035381d12b2f308fac6f and fixed in 7.1-rc1 with commit 3fcfff4ed35f963380a68741bcd52742baff7f76

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

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-aes.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/b63f1e2f0e319ad3fe4a58eb3db4fd50cc98baca
	https://git.kernel.org/stable/c/65b3589d39d05699c3850202f8333e5361033ea3
	https://git.kernel.org/stable/c/61516b4a5b2647dc3f8f67b5dffaf038be997511
	https://git.kernel.org/stable/c/230ad8a78fe67266b1ba4685da1abdd61471c5b8
	https://git.kernel.org/stable/c/3fcfff4ed35f963380a68741bcd52742baff7f76