CVE-2022-50364
JSON

5.5medium

i2c: mux: reg: check return value after calling platform_get_resource()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: i2c: mux: reg: check return value after calling platform_get_resource() It will cause null-ptr-deref in resource_size(), if platform_get_resource() returns NULL, move calling resource_size() after devm_ioremap_resource() that will check 'res' to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b3fdd32799d834e2626fae087906e886037350c6 before 61df25c41b8e0d2c988ccf17139f70075a2e1ba4, from b3fdd32799d834e2626fae087906e886037350c6 before 8212800943997fab61874550278d653cb378c60c, from b3fdd32799d834e2626fae087906e886037350c6 before f5049b3ad9446203b916ee375f30fa217735f63a, from b3fdd32799d834e2626fae087906e886037350c6 before f7a440c89b6d460154efeb058272760e41bdfea8, from b3fdd32799d834e2626fae087906e886037350c6 before 2d47b79d2bd39cc6369eccf94a06568d84c906ae, 4.3
Not affected: before 4.3, from 5.10.163 up to 5.10.*, from 5.15.86 up to 5.15.*, from 6.0.16 up to 6.0.*, from 6.1.2 up to 6.1.*, from 6.2 up to *
CVE List
linux linux_kernelfrom 4.3 before 5.10.163, from 5.11 before 5.15.86, from 5.16 before 6.0.16, from 6.1 before 6.1.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50364 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50364 changed 2026-06-17Public domain