CVE-2026-46068: crypto: nx - fix bounce buffer leaks in nx842_crypto_{alloc,free}_ctx
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: nx - fix bounce buffer leaks in nx842_crypto_{alloc,free}_ctx
The bounce buffers are allocated with __get_free_pages() using BOUNCE_BUFFER_ORDER (order 2 = 4 pages), but both the allocation error path and nx842_crypto_free_ctx() release the buffers with free_page(). Use free_pages() with the matching order instead.
The Linux kernel CVE team has assigned CVE-2026-46068 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.2 with commit ed70b479c2c0b6e1319f0cb2de19f1051be219a4 and fixed in 6.6.141 with commit f17a4850d1ce7c11cba8b1830b9bfedfede878bb Issue introduced in 4.2 with commit ed70b479c2c0b6e1319f0cb2de19f1051be219a4 and fixed in 6.12.88 with commit 910bb34b801d39794e656f7d48414844b2bd354e Issue introduced in 4.2 with commit ed70b479c2c0b6e1319f0cb2de19f1051be219a4 and fixed in 6.18.27 with commit 5c07962fed66e1238fad7635fa150570bd38b4c5 Issue introduced in 4.2 with commit ed70b479c2c0b6e1319f0cb2de19f1051be219a4 and fixed in 7.0.4 with commit 80fd99d7c30ea889662d21f1b44d8fea4c83138d Issue introduced in 4.2 with commit ed70b479c2c0b6e1319f0cb2de19f1051be219a4 and fixed in 7.1-rc1 with commit adb3faf2db1a66d0f015b44ac909a32dfc7f2f9c
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-46068
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/nx/nx-842.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/f17a4850d1ce7c11cba8b1830b9bfedfede878bb https://git.kernel.org/stable/c/910bb34b801d39794e656f7d48414844b2bd354e https://git.kernel.org/stable/c/5c07962fed66e1238fad7635fa150570bd38b4c5 https://git.kernel.org/stable/c/80fd99d7c30ea889662d21f1b44d8fea4c83138d https://git.kernel.org/stable/c/adb3faf2db1a66d0f015b44ac909a32dfc7f2f9c