CVE-2026-139023

crypto: atmel-tdes - zero-initialize device state

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

crypto: atmel-tdes - zero-initialize device state

Commit c659d07f11a3 ("crypto: atmel-tdes - Switch to managed version of
kzalloc") accidentally replaced kzalloc() with devm_kmalloc(), so the
device state is no longer zeroed.

atmel_tdes_hw_init() tests dd->flags during probe: a stale TDES_FLAGS_INIT
skips the hardware reset, and a stale TDES_FLAGS_BUSY makes
atmel_tdes_handle_queue() treat the engine as permanently busy, leaving
every request queued and never dispatched.

Seen on a SAM9X75 Curiosity: the first TDES request after boot never
completes and the TDES interrupt count stays at zero, while the AES and
SHA engines on the same SoC work normally.

Switch to devm_kzalloc(), matching the Atmel AES and SHA drivers.

Analysis

AI-generated

Technical impact

The vulnerability occurs when a kernel change replaced kzalloc() with devm_kmalloc(), which does not zero the allocated memory. The atmel_tdes_hw_init() routine then sees stale flags, causing the hardware reset to be skipped and the engine to remain marked busy. As a result, subsequent TDES requests never complete, while other cryptographic engines on the same SoC remain functional. This flaw can lead to a denial of service for applications that rely on the TDES engine.

Affected Systems

The flaw affects the Linux kernel on SoCs that include the Atmel TDES engine, most notably the SAM9X75 Curiosity board. The affected code path is part of the atmel-tdes driver, so any kernel configuration that includes this driver and the buggy memory allocation call is vulnerable. No specific kernel version ranges were enumerated, but the issue is present from the time the erroneous commit was introduced forward until the patch is applied.

Risk and Exploitability

The risk is primarily a denial‑of‑service for TDES operations. There is no indication of remote code execution or disclosure. Because the defect is triggered by normal TDES requests after boot, an attacker with the ability to issue cryptographic requests locally could force the engine to stall. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting that exploitation is currently unlikely or unreported. Nevertheless, the impact on availability warrants quick remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that replaces devm_kmalloc with devm_kzalloc for the atmel_tdes driver
  • If a patched kernel is not yet available, temporarily disable the TDES engine or avoid using TDES functions until a fix is deployed
  • After applying the fix, reboot the system to re‑initialize the hardware state and verify that TDES requests complete successfully

Generated by OpenCVE AI on November 30, 2026 at 18:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-255
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crypto: atmel-tdes - zero-initialize device state Commit c659d07f11a3 ("crypto: atmel-tdes - Switch to managed version of kzalloc") accidentally replaced kzalloc() with devm_kmalloc(), so the device state is no longer zeroed. atmel_tdes_hw_init() tests dd->flags during probe: a stale TDES_FLAGS_INIT skips the hardware reset, and a stale TDES_FLAGS_BUSY makes atmel_tdes_handle_queue() treat the engine as permanently busy, leaving every request queued and never dispatched. Seen on a SAM9X75 Curiosity: the first TDES request after boot never completes and the TDES interrupt count stays at zero, while the AES and SHA engines on the same SoC work normally. Switch to devm_kzalloc(), matching the Atmel AES and SHA drivers.
Title crypto: atmel-tdes - zero-initialize device state
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
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM