Linux
thermal: core: Fix thermal zone device registration error path
In the Linux kernel, the following vulnerability has been resolved: thermal: core: Fix thermal zone device registration error path If thermal_zone_device_register_with_trips() fails after registering a thermal zone device, it needs to wait for the tz->removal completion like thermal_zone_device_unregister(), in case user space has managed to take a reference to the thermal zone device's kobject, in which case thermal_release() may not be called by the error path itself and tz may be freed prematurely. Add the missing wait_for_completion() call to the thermal zone device registration error path.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 335176dd8ebaca6493807dceea33c478305667fa, < 9e796001af97a1f7368d5114b7a8533dd98d797a
- >= 04e6ccfc93c5a1aa1d75a537cf27e418895e20ea, < 604da9c04c218362e1c1457304ebeb9c199d537c
- >= 04e6ccfc93c5a1aa1d75a537cf27e418895e20ea, < c4c7219e93319bba9ba0765dee597784c78f63c5
- >= 04e6ccfc93c5a1aa1d75a537cf27e418895e20ea, < 4d390f0e507dfb16d58f83a58d78d1150dc8b9d7
- >= 04e6ccfc93c5a1aa1d75a537cf27e418895e20ea, < 9e07e3b81807edd356e1f794cffa00a428eff443
- 02871710b93058eb1249d5847c0b2d1c2c3c98ae
- >= 6.6.14, < 6.6.134
- >= 6.7.2, < 6.8
Fixed in 9e796001af97a1f7368d5114b7a8533dd98d797a, 604da9c04c218362e1c1457304ebeb9c199d537c, c4c7219e93319bba9ba0765dee597784c78f63c5, 4d390f0e507dfb16d58f83a58d78d1150dc8b9d7, 9e07e3b81807edd356e1f794cffa00a428eff443, 6.6.134, 6.8
- 6.8
Fixed in 0, 6.6.134, 6.12.81, 6.18.22, 6.19.12, 7.0
Mitigation
Upgrade Linux to 9e796001af97a1f7368d5114b7a8533dd98d797a or 604da9c04c218362e1c1457304ebeb9c199d537c or c4c7219e93319bba9ba0765dee597784c78f63c5 or 4d390f0e507dfb16d58f83a58d78d1150dc8b9d7 or 9e07e3b81807edd356e1f794cffa00a428eff443 or 6.6.134 or 6.8 or later.
Upgrade Linux to 0 or 6.6.134 or 6.12.81 or 6.18.22 or 6.19.12 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.