First published: Sat Mar 02 2024(Updated: )
In the Linux kernel, the following vulnerability has been resolved: ieee802154: ca8210: Fix a potential UAF in ca8210_probe If of_clk_add_provider() fails in ca8210_register_ext_clock(), it calls clk_unregister() to release priv->clk and returns an error. However, the caller ca8210_probe() then calls ca8210_remove(), where priv->clk is freed again in ca8210_unregister_ext_clock(). In this case, a use-after-free may happen in the second time we call clk_unregister(). Fix this by removing the first clk_unregister(). Also, priv->clk could be an error code on failure of clk_register_fixed_rate(). Use IS_ERR_OR_NULL to catch this case in ca8210_unregister_ext_clock().
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Linux kernel | >=4.12<4.14.328 | |
Linux Linux kernel | >=4.15<4.19.297 | |
Linux Linux kernel | >=4.20<5.4.259 | |
Linux Linux kernel | >=5.5<5.10.199 | |
Linux Linux kernel | >=5.11<5.15.136 | |
Linux Linux kernel | >=5.16<6.1.59 | |
Linux Linux kernel | >=6.2<6.5.8 | |
Linux Linux kernel | =6.6-rc1 | |
Linux Linux kernel | =6.6-rc2 | |
Linux Linux kernel | =6.6-rc3 | |
Linux Linux kernel | =6.6-rc4 | |
Linux Linux kernel | =6.6-rc5 | |
debian/linux | 5.10.223-1 5.10.226-1 6.1.115-1 6.1.119-1 6.12.5-1 6.12.6-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.