Description
In the Linux kernel, the following vulnerability has been resolved:

crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path

Unregister the hwrng to prevent new ->read() calls and flush the Atmel
I2C workqueue before teardown to prevent a potential UAF if a queued
callback runs while the device is being removed.

Drop the early return to ensure sysfs entries are removed and
->hwrng.priv is freed, preventing a memory leak.
Published: 2026-05-27
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Atmel SHA‑204a driver in the Linux kernel contains a flaw that occurs during its removal procedure. When the driver is torn down while its hardware random number generator callbacks are still queued, the driver fails to unregister the callback and to drain its internal I2C workqueue. A queued callback can therefore execute against freed driver data, resulting in a use‑after‑free that could allow an attacker to run code with kernel privileges. Additionally, an early return prevents the driver’s sysfs entries and the hwrng private data from being freed, leading to a memory leak that may degrade system stability over time.

Affected Systems

Any Linux kernel build that still contains the unpatched atmel‑sha204a module. The vendor list identifies the Linux kernel; no specific version range is supplied, meaning that all kernels prior to the commit that applied the fix are potentially vulnerable if the module is present.

Risk and Exploitability

Use‑after‑free vulnerabilities in kernel drivers can enable high‑privilege code execution, but the description does not confirm exploitable control over the callback data. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, so the likelihood of exploitation cannot be quantified. The risk is theoretical and would depend on an attacker’s ability to trigger the module’s removal while callbacks remain queued, making practical exploitation uncertain given typical host protection mechanisms.

Generated by OpenCVE AI on May 28, 2026 at 02:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates the upstream patch for the atmel‑sha204a driver, ensuring the hwrng callback is unregistered and the I2C workqueue is drained during removal.
  • If a kernel upgrade cannot be performed immediately, unload the atmel‑sha204a module or disable its hardware RNG interface so that no removal path can be exercised.
  • If the module must remain loaded, manually drain any outstanding hwrng callbacks and confirm that the workqueue is empty before initiating device removal, and remove all sysfs entries as part of the unload process.
  • As a precaution for environments that do not require the Atmel SHA‑204a driver, consider disabling the module in the kernel configuration or by removing it from the device tree to eliminate the vulnerability altogether.

Generated by OpenCVE AI on May 28, 2026 at 02:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 17:00:00 +0000


Thu, 28 May 2026 00:15:00 +0000


Wed, 27 May 2026 22:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-416

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path Unregister the hwrng to prevent new ->read() calls and flush the Atmel I2C workqueue before teardown to prevent a potential UAF if a queued callback runs while the device is being removed. Drop the early return to ensure sysfs entries are removed and ->hwrng.priv is freed, preventing a memory leak.
Title crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path
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-06-14T17:52:29.232Z

Reserved: 2026-05-13T15:03:33.096Z

Link: CVE-2026-46075

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:28.823

Modified: 2026-06-01T17:17:22.443

Link: CVE-2026-46075

cve-icon Redhat

Severity :

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-46075 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T03:00:05Z

Weaknesses
  • CWE-364

    Signal Handler Race Condition

  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-416

    Use After Free