CVE-2021-47384: hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
If driver read tmp value sufficient for (tmp & 0x08) && (!(tmp & 0x80)) && ((tmp & 0x7) == ((tmp >> 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 alignments]
Other sources
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
The Linux kernel CVE team has assigned CVE-2021-47384 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052144-CVE-2021-47384-f311@gregkh/T
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47384?
CVE-2021-47384 has been classified as a low-severity vulnerability in the Linux kernel.
How do I fix CVE-2021-47384?
To fix CVE-2021-47384, you need to update the Linux kernel to versions 5.4.151, 5.10.71, 5.14.10, or 5.15.
Which Linux kernel versions are affected by CVE-2021-47384?
CVE-2021-47384 affects Linux kernel versions prior to 5.4.151, 5.10.71, 5.14.10, and 5.15.
What is the impact of CVE-2021-47384?
The impact of CVE-2021-47384 is a potential NULL pointer dereference vulnerability when certain driver conditions are met.
Is CVE-2021-47384 specific to any Linux distribution?
CVE-2021-47384 is relevant to multiple Linux distributions that use the affected kernel versions, including Red Hat.