CVE-2026-80522: crypto: tegra - fix rctx->cryptlen calculation in tegra_gcm_do_one_req()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: tegra - fix rctx->cryptlen calculation in tegra_gcm_do_one_req()
Perform rctx->cryptlen calculation in tegra_gcm_do_one_req() the same way it is done in tegra_ccm_crypt_init(). The current formulae may lead to a crash if a caller does not call tegra_gcm_setauthsize() and so ctx->authsize remains zero. Then a decrypt operation with incorrect rctx->cryptlen will lead to a write beyound rctx->dst_sg buffer.
As a follow-up cleanup delete struct tegra_aead_ctx->authsize field since it appears to be completely unused. Also simplify tegra_ccm_setauthsize() and tegra_gcm_setauthsize() functions respectively.
The Linux kernel CVE team has assigned CVE-2026-80522 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 6.12.105 with commit cd6991001bf0681ed0bcf21f9cc3d261d749b2bb Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 6.18.46 with commit 99a18e1d979e0fad3aaf9c65ae6696897c1d9869 Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 7.1.10 with commit c6237834d9994de209cb90c7a2c461247bce8e90 Issue introduced in 6.10 with commit 0880bb3b00c855fc244b7177ffdaafef4d0aa1e0 and fixed in 7.2 with commit 360f2974fcea49c61f6d6f81554741a9eeee7168
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-80522
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
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/cd6991001bf0681ed0bcf21f9cc3d261d749b2bb https://git.kernel.org/stable/c/99a18e1d979e0fad3aaf9c65ae6696897c1d9869 https://git.kernel.org/stable/c/c6237834d9994de209cb90c7a2c461247bce8e90 https://git.kernel.org/stable/c/360f2974fcea49c61f6d6f81554741a9eeee7168