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.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 kernel data and potentially allow a local attacker to execute arbitrary code or crash the operating system.

Affected Systems

All Linux kernel releases that embed the tegra crypto subsystem are susceptible before the patch. The vulnerability is present in kernel builds that provide the tegra_gcm_do_one_req() function, which is typically used on Nvidia Tegra platforms. Any distribution kernel that has not yet incorporated the upstream fix is affected.

Risk and Exploitability

No CVSS score is provided, but the nature of the overflow indicates a high severity. EPSS data is unavailable and the vulnerability is not listed in CISA's KEV catalog, suggesting no publicly known exploits yet. The attacker would need local code execution capabilities to trigger a cryptographic request with an unset authentication size, so the vector is local but feasible for privileged or compromised users. Successful exploitation could lead to privilege escalation or denial of service by corrupting kernel memory.

Generated by OpenCVE AI on August 26, 2026 at 16:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the tegra_gcm_do_one_req() cryptlen fix or apply the specific upstream 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.
  • Ensure that all applications using the tegra GCM path invoke 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 26, 2026 at 16:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-122

Wed, 26 Aug 2026 14:45:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-26T14:37:03.180Z

Reserved: 2026-08-26T14:34:25.763Z

Link: CVE-2026-80522

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:17:05.800

Modified: 2026-08-26T15:17:05.800

Link: CVE-2026-80522

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T16:45:08Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow