{"id":"CVE-2021-47384","aliases":["CVE-2021-47384"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field\n\nIf driver read tmp value sufficient for\n(tmp & 0x08) && (!(tmp & 0x80)) && ((tmp & 0x7) == ((tmp >> 4) & 0x7))\nfrom device then Null pointer dereference occurs.\n(It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)\nAlso lm75[] does not serve a purpose anymore after switching to\ndevm_i2c_new_dummy_device() in w83791d_detect_subclients().\n\nThe patch fixes possible NULL pointer dereference by removing lm75[].\n\nFound by Linux Driver Verification project (linuxtesting.org).\n\n[groeck: Dropped unnecessary continuation lines, fixed multi-line alignments]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field\n\nIf driver read tmp value sufficient for\n(tmp & 0x08) && (!(tmp & 0x80)) && ((tmp & 0x7) == ((tmp >> 4) & 0x7))\nfrom device then Null pointer dereference occurs.\n(It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)\nAlso lm75[] does not serve a purpose anymore after switching to\ndevm_i2c_new_dummy_device() in w83791d_detect_subclients().\n\nThe patch fixes possible NULL pointer dereference by removing lm75[].\n\nFound by Linux Driver Verification project (linuxtesting.org).\n\n[groeck: Dropped unnecessary continuation lines, fixed multi-line alignments]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: hwmon: (w83793) Corrija la desreferencia del puntero NULL eliminando el campo de estructura innecesario. Si el controlador lee el valor tmp suficiente para (tmp &amp; 0x08) &amp;&amp; (!(tmp &amp; 0x80)) &amp;&amp; (( tmp &amp; 0x7) == ((tmp &gt;&gt; 4) &amp; 0x7)) desde el dispositivo, luego se produce la desreferencia del puntero null. (Es posible si tmp = 0b0xyz1xyz, donde los mismos literales significan los mismos números) Además, lm75[] ya no sirve para nada después de cambiar a devm_i2c_new_dummy_device() en w83791d_detect_subclients(). El parche corrige la posible desreferencia del puntero NULL eliminando lm75[]. Encontrado por el proyecto de verificación de controladores de Linux (linuxtesting.org). [groeck: Se eliminaron líneas de continuación innecesarias, se corrigieron alineaciones de varias líneas]","source":"nvd"}],"published":"2024-05-21T15:03:44.955Z","modified":"2026-06-17T04:17:20.727Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"cf48d17623281c2b3185030ed23f148bd47e15de","fixed":"6cb01fe630eaffc5a2c3f7364436caddba286623","status":"affected"},{"type":"git","introduced":"cf48d17623281c2b3185030ed23f148bd47e15de","fixed":"7c4fd5de39f273626a2b0f3a446d2cc85cd47616","status":"affected"},{"type":"git","introduced":"cf48d17623281c2b3185030ed23f148bd47e15de","fixed":"746011193f44f97f8784edcf8327c587946745fc","status":"affected"},{"type":"git","introduced":"cf48d17623281c2b3185030ed23f148bd47e15de","fixed":"dd4d747ef05addab887dc8ff0d6ab9860bbcd783","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.151","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.71","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.14.10","lastAffected":"5.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.4.151"},{"status":"affected","introduced":"5.5","fixed":"5.10.71"},{"status":"affected","introduced":"5.11","fixed":"5.14.10"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6cb01fe630eaffc5a2c3f7364436caddba286623","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c4fd5de39f273626a2b0f3a446d2cc85cd47616","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/746011193f44f97f8784edcf8327c587946745fc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd4d747ef05addab887dc8ff0d6ab9860bbcd783","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T18:21:42.087Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47384","url":"https://www.cve.org/CVERecord?id=CVE-2021-47384","licence":"CVE Terms of Use","modified":"2026-05-11T13:53:39.015Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47384","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47384","licence":"Public domain","modified":"2026-06-17T04:17:20.727Z"}],"updatedAt":"2026-11-25T22:58:08.827Z","epss":{"score":0.01102,"percentile":0.65356,"date":"2026-11-30T12:00:22.000Z"}}