CVE-2024-50028 thermal: core: Reference count the zone in thermal_zone_get_by_id()

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel thermal subsystem allows attackers to cause denial of service or execute arbitrary code.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50028?

CVE-2024-50028 is a high-severity use after free vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2024-50028?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50028?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-50028 being exploited?

There is no known exploitation of CVE-2024-50028 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-51416, AZL-51504, BELL-CVE-2024-50028, DEBIAN-CVE-2024-50028, GHSA-xcmw-c2xm-xxjw, ROOT-OS-DEBIAN-11-CVE-2024-50028 and 3 more.

Is CVE-2024-50028 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free