# CVE-2022-50364: i2c: mux: reg: check return value after calling platform_get_resource()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-09-17T14:56:15.753Z
- Modified: 2026-06-17T05:23:20.280Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 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.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/61df25c41b8e0d2c988ccf17139f70075a2e1ba4> (patch)
- <https://git.kernel.org/stable/c/8212800943997fab61874550278d653cb378c60c> (patch)
- <https://git.kernel.org/stable/c/f5049b3ad9446203b916ee375f30fa217735f63a> (patch)
- <https://git.kernel.org/stable/c/f7a440c89b6d460154efeb058272760e41bdfea8> (patch)
- <https://git.kernel.org/stable/c/2d47b79d2bd39cc6369eccf94a06568d84c906ae> (patch)

## Sources

- CVE List: [CVE-2022-50364](https://www.cve.org/CVERecord?id=CVE-2022-50364), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50364](https://nvd.nist.gov/vuln/detail/CVE-2022-50364), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50364 · Whole record: https://cve.day/CVE-2022-50364.json · Rebuilt by cve.day 2026-11-25T22:58:21.182Z
