{"id":"CVE-2022-50364","summary":"i2c: mux: reg: check return value after calling platform_get_resource()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: mux: reg: check return value after calling platform_get_resource()\n\nIt will cause null-ptr-deref in resource_size(), if platform_get_resource()\nreturns NULL, move calling resource_size() after devm_ioremap_resource() that\nwill check 'res' to avoid null-ptr-deref.\nAnd use devm_platform_get_and_ioremap_resource() to simplify code.","modified":"2026-03-20T11:47:24.570502Z","published":"2025-09-17T14:56:15.753Z","related":["SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1","SUSE-SU-2025:4515-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50364.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2d47b79d2bd39cc6369eccf94a06568d84c906ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61df25c41b8e0d2c988ccf17139f70075a2e1ba4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8212800943997fab61874550278d653cb378c60c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f5049b3ad9446203b916ee375f30fa217735f63a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7a440c89b6d460154efeb058272760e41bdfea8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50364.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50364"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b3fdd32799d834e2626fae087906e886037350c6"},{"fixed":"61df25c41b8e0d2c988ccf17139f70075a2e1ba4"},{"fixed":"8212800943997fab61874550278d653cb378c60c"},{"fixed":"f5049b3ad9446203b916ee375f30fa217735f63a"},{"fixed":"f7a440c89b6d460154efeb058272760e41bdfea8"},{"fixed":"2d47b79d2bd39cc6369eccf94a06568d84c906ae"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50364.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}