CVE-2021-47384
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
21/05/2024
Last modified:
02/04/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field<br />
<br />
If driver read tmp value sufficient for<br />
(tmp & 0x08) && (!(tmp & 0x80)) && ((tmp & 0x7) == ((tmp >> 4) & 0x7))<br />
from device then Null pointer dereference occurs.<br />
(It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)<br />
Also lm75[] does not serve a purpose anymore after switching to<br />
devm_i2c_new_dummy_device() in w83791d_detect_subclients().<br />
<br />
The patch fixes possible NULL pointer dereference by removing lm75[].<br />
<br />
Found by Linux Driver Verification project (linuxtesting.org).<br />
<br />
[groeck: Dropped unnecessary continuation lines, fixed multi-line alignments]
Impact
Base Score 3.x
5.30
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.151 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.5 (including) | 5.10.71 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.14.10 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/6cb01fe630eaffc5a2c3f7364436caddba286623
- https://git.kernel.org/stable/c/746011193f44f97f8784edcf8327c587946745fc
- https://git.kernel.org/stable/c/7c4fd5de39f273626a2b0f3a446d2cc85cd47616
- https://git.kernel.org/stable/c/dd4d747ef05addab887dc8ff0d6ab9860bbcd783
- https://git.kernel.org/stable/c/6cb01fe630eaffc5a2c3f7364436caddba286623
- https://git.kernel.org/stable/c/746011193f44f97f8784edcf8327c587946745fc
- https://git.kernel.org/stable/c/7c4fd5de39f273626a2b0f3a446d2cc85cd47616
- https://git.kernel.org/stable/c/dd4d747ef05addab887dc8ff0d6ab9860bbcd783



