Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before 6dbeb0f788582e1ab5dfc3f41994eac0ec88c2b5; affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before c5a45d14234bf26e28a89e3a5dcc08336595cf11; affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before 775c00d87c385b758da9504cf053acea00e2ed40; affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before 1193c12126d39bf986a5a9214827b73707b193ab; affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before 31901371ccd16b42d2f167b1018ba9ae8bd5a6c7; affected da001fb651b00e1deeaf24767dd691ae8152a4f5 before bab1adf3b87e4bfac92c4f5963c63db434d561c1 |
| Linux / Linux | affected 5.3; unaffected 0 before 5.3; unaffected 6.1.175 through 6.1.*; unaffected 6.6.140 through 6.6.*; unaffected 6.12.86 through 6.12.*; unaffected 6.18.27 through 6.18.*; unaffected 7.0.4 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/6dbeb0f788582e1ab5dfc3f41994eac0ec88c2b5
- https://git.kernel.org/stable/c/c5a45d14234bf26e28a89e3a5dcc08336595cf11
- https://git.kernel.org/stable/c/775c00d87c385b758da9504cf053acea00e2ed40
- https://git.kernel.org/stable/c/1193c12126d39bf986a5a9214827b73707b193ab
- https://git.kernel.org/stable/c/31901371ccd16b42d2f167b1018ba9ae8bd5a6c7
- https://git.kernel.org/stable/c/bab1adf3b87e4bfac92c4f5963c63db434d561c1