{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50364","id":"CVE-2022-50364","title":"i2c: mux: reg: check return value after calling platform_get_resource()","description":"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 c","descriptionLong":"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.","published":"2025-09-17T14:56:15.753Z","updated":"2026-10-28T02:30:46.980142728Z","reserved":"2025-09-17T14:53:06.994Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3fdd32799d834e2626fae087906e886037350c6","lessThan":"61df25c41b8e0d2c988ccf17139f70075a2e1ba4","status":"affected","versionType":"git"},{"version":"b3fdd32799d834e2626fae087906e886037350c6","lessThan":"8212800943997fab61874550278d653cb378c60c","status":"affected","versionType":"git"},{"version":"b3fdd32799d834e2626fae087906e886037350c6","lessThan":"f5049b3ad9446203b916ee375f30fa217735f63a","status":"affected","versionType":"git"},{"version":"b3fdd32799d834e2626fae087906e886037350c6","lessThan":"f7a440c89b6d460154efeb058272760e41bdfea8","status":"affected","versionType":"git"},{"version":"b3fdd32799d834e2626fae087906e886037350c6","lessThan":"2d47b79d2bd39cc6369eccf94a06568d84c906ae","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.3","status":"affected"},{"version":"0","lessThan":"4.3","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/61df25c41b8e0d2c988ccf17139f70075a2e1ba4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8212800943997fab61874550278d653cb378c60c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f5049b3ad9446203b916ee375f30fa217735f63a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f7a440c89b6d460154efeb058272760e41bdfea8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2d47b79d2bd39cc6369eccf94a06568d84c906ae","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50364.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50364","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00216,"epssPercentile":0.12155,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50364","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50364","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50364","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50364","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}