thermal/drivers/tegra/soctherma: Switch to devm cooling device registration
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ee126267bc04bfb03816ae9d71ca24c5bf99e739, Kernel 0c65f786a69402620306828aa19817fd71f37f4b, Kernel 6f2a863e7e9adf6088fe644259576181e60ee5e5 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: thermal/drivers/tegra/soctherma: Switch to devm cooling device registration Use devm_thermal_of_cooling_device_register() to simplify resource management and avoid manual cleanup in error paths. As a side effect this change has the benefit of solving an existing issue. Before, the function tegra_soctherm_remove() only called debugfs_remove_recursive() and never called thermal_cooling_device_unregister() for any of the cooling devices registered here. After the driver removal, the thermal framework's cdev list would still hold references to thermal_cooling_device objects whose devdata pointer (ts) pointed to memory already freed by the platform device's devm cleanup. With this change, the cooling device is unregistered when the driver is removed, thus fixing the issue above.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <ee126267bc04bfb03816ae9d71ca24c5bf99e739, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <0c65f786a69402620306828aa19817fd71f37f4b, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <6f2a863e7e9adf6088fe644259576181e60ee5e5, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <78a2ba09fd7501df09239c7e3c311c80c259ed31, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <a643ce49ddcdbdec173e7bbf4c32c897e0293ba9, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <deaeb7be8e6b04c8b71080acba1bd88698f56b1d, >=ce0dbf04f685d48ffdec64a17ebb4965f828c3ff <e777ab46db8c2addffe801274d713252318ef750, =4.9 | ee126267bc04bfb03816ae9d71ca24c5bf99e739, 0c65f786a69402620306828aa19817fd71f37f4b, 6f2a863e7e9adf6088fe644259576181e60ee5e5, 78a2ba09fd7501df09239c7e3c311c80c259ed31, a643ce49ddcdbdec173e7bbf4c32c897e0293ba9, deaeb7be8e6b04c8b71080acba1bd88698f56b1d, e777ab46db8c2addffe801274d713252318ef750 |
| linux-kernel: Kernel | >=5.11.0 <5.15.222, >=5.16.0 <6.1.189, >=6.13.0 <6.18.53, >=6.2.0 <6.6.158, >=6.7.0 <6.12.111, >=4.9.0 <5.10.271 | 5.15.222, 6.1.189, 6.18.53, 6.6.158, 6.12.111, 5.10.271 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket