CVE-2026-31739: crypto: tegra - Add missing CRYPTO_ALG_ASYNC
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: tegra - Add missing CRYPTO_ALG_ASYNC
The tegra crypto driver failed to set the CRYPTO_ALG_ASYNC on its asynchronous algorithms, causing the crypto API to select them for users that request only synchronous algorithms. This causes crashes (at least). Fix this by adding the flag like what the other drivers do. Also remove the unnecessary CRYPTO_ALG_TYPE_* flags, since those just get ignored and overridden by the registration function anyway.
The Linux kernel CVE team has assigned CVE-2026-31739 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 6.12.81 with commit bdbf027a4504b4a86740de6beb6d18a957331839 Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 6.18.22 with commit 3aea268b6d5cde3b087df9eeecc3bc620aa09513 Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 6.19.12 with commit 429d05565eb19ee545d8a8395991372adbe4daf3 Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 7.0 with commit 4b56770d345524fc2acc143a2b85539cf7d74bc1
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-31739
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/tegra/tegra-se-aes.c
drivers/crypto/tegra/tegra-se-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/bdbf027a4504b4a86740de6beb6d18a957331839 https://git.kernel.org/stable/c/3aea268b6d5cde3b087df9eeecc3bc620aa09513 https://git.kernel.org/stable/c/429d05565eb19ee545d8a8395991372adbe4daf3 https://git.kernel.org/stable/c/4b56770d345524fc2acc143a2b85539cf7d74bc1