crypto: aspeed - fix double free caused by devm
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: aspeed - fix double free caused by devm
The clock obtained via devm_clk_get_enabled() is automatically managed by devres and will be disabled and freed on driver detach. Manually calling clk_disable_unprepare() in error path and remove function causes double free.
Remove the manual clock cleanup in both aspeed_acry_probe()'s error path and aspeed_acry_remove().
From the CVE record · Linux
The Linux kernel's aspeed crypto driver can free a managed clock twice during driver removal or a probe error. The input does not establish whether an attacker can trigger this behavior or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with the aspeed crypto driver should check their installations; affected versions were not provided.