CVE-2026-80522

crypto: tegra - fix rctx->cryptlen calculation in tegra_gcm_do_one_req()

Published Aug 26, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel tegra crypto driver miscalculates the rctx->cryptlen value when the authentication size is not set by the caller, leading to an out‑of‑bounds write into the destination scatter‑gather buffer. This memory corruption can overwrite critical kernel data and may allow a local attacker to execute arbitrary code or crash the operating system.

Affected Systems

All Linux kernel releases that include the tegra crypto subsystem are vulnerable prior to the upstream fix. The flaw exists in any kernel build that exposes the tegra_gcm_do_one_req() function.

Risk and Exploitability

The CVSS score of 7.8 classifies the vulnerability as high severity. The EPSS score of less than 1% and the fact that it is not listed in the CISA KEV catalog suggest that publicly known exploits are unlikely so far. Exploitation requires a local user to trigger a cryptographic request with an unset authentication size, which is feasible for privileged or compromised users. Successful exploitation could lead to privilege escalation or a denial‑of‑service by corrupting kernel memory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the upstream tegra_gcm_do_one_req() cryptlen fix or apply the specific patch that corrects the calculation and removes the unused authsize field.
  • If a kernel upgrade cannot be performed immediately, cherry‑pick or install the relevant commit from the mainline kernel repository to introduce the corrected rctx->cryptlen implementation.
  • It remains a good practice to ensure that any application using the tegra GCM path calls tegra_gcm_setauthsize() before encryption or decryption so that the authentication size is properly set and the buffer length is correctly computed.
  • If the tegra crypto subsystem is not required, consider disabling it or restricting cryptographic calls to trusted code to reduce exposure.

Generated by OpenCVE AI on August 28, 2026 at 19:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4788-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-122
CWE-788
Type Values Removed Values Added
Weaknesses CWE-119
CWE-122
CWE-788
Type Values Removed Values Added
Weaknesses CWE-119
CWE-122
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-122
Type Values Removed Values Added
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.
Title crypto: tegra - fix rctx->cryptlen calculation in tegra_gcm_do_one_req()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 7:26 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 26, 2026, 3:17 PM
Modified
Oct 16, 2026, 8:17 PM
Severity
Important
Public date
Aug 26, 2026, 12:00 AM