crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ da001fb651b00e1deeaf24767dd691ae8152a4f5 · < bab1adf3b87e4bfac92c4f5963c63db434d561c1| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s atmel-sha204a driver has a potential use-after-free if a queued callback runs while the device is being removed. The remove path can also leak memory. The input does not establish an attack method, authentication requirement, or user interaction.
Engineers running Linux kernels with the atmel-sha204a driver should check their kernel versions against the vendor advisory; affected versions are not specified here.