Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-50028

thermal: core: Reference count the zone in thermal_zone_get_by_id()

Description

In the Linux kernel, the following vulnerability has been resolved: thermal: core: Reference count the zone in thermal_zone_get_by_id() There are places in the thermal netlink code where nothing prevents the thermal zone object from going away while being accessed after it has been returned by thermal_zone_get_by_id(). To address this, make thermal_zone_get_by_id() get a reference on the thermal zone device object to be returned with the help of get_device(), under thermal_list_lock, and adjust all of its callers to this change with the help of the cleanup.h infrastructure.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 to < c95538b286efc6109c987e97a051bc7844ede802affected
  • 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 to < a42a5839f400e929c489bb1b58f54596c4535167affected

Linux Linux

Default version status: affected

  • 5.9affected
  • 0 to < 5.9unaffected
  • 6.11.4 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References