CVE-2021-47386: hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
If driver read val value sufficient for (val & 0x08) && (!(val & 0x80)) && ((val & 0x7) == ((val >> 4) & 0x7)) from device then Null pointer dereference occurs. (It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers) Also lm75[] does not serve a purpose anymore after switching to devmi2cnewdummydevice() in w83791ddetectsubclients().
The patch fixes possible NULL pointer dereference by removing lm75[].
Found by Linux Driver Verification project (linuxtesting.org).
[groeck: Dropped unnecessary continuation lines, fixed multi-line alignment]
Other sources
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
The Linux kernel CVE team has assigned CVE-2021-47386 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052145-CVE-2021-47386-2701@gregkh/T
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47386?
The severity of CVE-2021-47386 is categorized as low, as it involves a NULL pointer dereference in the hwmon subsystem of the Linux kernel.
How do I fix CVE-2021-47386?
To fix CVE-2021-47386, upgrade your Linux kernel to version 5.4.151, 5.10.71, or later versions that have mitigated this vulnerability.
Which Linux kernel versions are affected by CVE-2021-47386?
CVE-2021-47386 affects Linux kernel versions prior to 5.4.151, 5.10.71, 5.14.10, and 5.15.
Does CVE-2021-47386 affect all distributions of Linux?
CVE-2021-47386 is specifically relevant to distributions that use the affected versions of the Linux kernel, particularly those from Red Hat.
Is CVE-2021-47386 exploitable in production environments?
While CVE-2021-47386 poses a low severity risk, any vulnerability in a production environment should be assessed, as exploitation can lead to system instability.