CVE-2021-47098 hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

High 7.8 Published Updated

An integer overflow in the Linux kernel's lm90 hardware monitoring driver can cause a denial of service when setting specific hysteresis values.

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-2021-47098?

CVE-2021-47098 is a high-severity vulnerability in Linux kernel, published on 4 Mar 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:

hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

Commit b50aa49638c7 ("hwmon: (lm90) Prevent integer underflows of temperature calculations") addressed a number of underflow situations when writing temperature limits. However, it missed one situation, seen when an attempt is made to set the hysteresis value to MAX_LONG and the critical temperature limit is negative.

Use clamp_val() when setting the hysteresis temperature to ensure that the provided value can never overflow or underflow.

Weakness: CWE-190

Which versions are affected by CVE-2021-47098?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47098?

Apply the vendor's patch.

Is CVE-2021-47098 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47098, GHSA-qcmx-p4h8-4fhq, UBUNTU-CVE-2021-47098.

Is CVE-2021-47098 in your software?

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

Check your SBOMs for free