CVE-2022-50364

Source
https://cve.org/CVERecord?id=CVE-2022-50364
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50364.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50364
Downstream
Related
Published
2025-09-17T14:56:15.753Z
Modified
2026-07-15T01:49:20.183834608Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
i2c: mux: reg: check return value after calling platform_get_resource()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

It will cause null-ptr-deref in resourcesize(), if platformgetresource() returns NULL, move calling resourcesize() after devmioremapresource() that will check 'res' to avoid null-ptr-deref. And use devmplatformgetandioremap_resource() to simplify code.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50364.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/cve-osv-conversion/osv-output/CVE-2022-50364.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.3.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50364.json"