CVE-2022-50364
published 2025-09-17CVE-2022-50364: In the Linux kernel, the following vulnerability has been resolved: i2c: mux: reg: check return value after calling platform_get_resource() It will cause…
PriorityP420medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.19%
8.8th percentile
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
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= b3fdd32799d834e2626fae087906e886037350c6 < 61df25c41b8e0d2c988ccf17139f70075a2e1ba4 | 61df25c41b8e0d2c988ccf17139f70075a2e1ba4 |
| linux | linux | >= b3fdd32799d834e2626fae087906e886037350c6 < 8212800943997fab61874550278d653cb378c60c | 8212800943997fab61874550278d653cb378c60c |
| linux | linux | >= b3fdd32799d834e2626fae087906e886037350c6 < f5049b3ad9446203b916ee375f30fa217735f63a | f5049b3ad9446203b916ee375f30fa217735f63a |
| linux | linux | >= b3fdd32799d834e2626fae087906e886037350c6 < f7a440c89b6d460154efeb058272760e41bdfea8 | f7a440c89b6d460154efeb058272760e41bdfea8 |
| linux | linux | >= b3fdd32799d834e2626fae087906e886037350c6 < 2d47b79d2bd39cc6369eccf94a06568d84c906ae | 2d47b79d2bd39cc6369eccf94a06568d84c906ae |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 4.3 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 5.11 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 6.1 < 6.1.2 | 6.1.2 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: i2c: mux: reg: check return value after calling platform_get_resource()
vendor_redhat·2025-09-17·CVSS 5.5
CVE-2022-50364 [MEDIUM] kernel: i2c: mux: reg: check return value after calling platform_get_resource()
kernel: i2c: mux: reg: check return value after calling platform_get_resource()
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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Packag
Debian
CVE-2022-50364: linux - In the Linux kernel, the following vulnerability has been resolved: i2c: mux: r...
vendor_debian·2022·CVSS 5.5
CVE-2022-50364 [MEDIUM] CVE-2022-50364: linux - In the Linux kernel, the following vulnerability has been resolved: i2c: mux: r...
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.
Scope: local
bookworm: resolved (fixed in 6.1.4-1)
bullseye: resolved (fixed in 5.10.178-1)
forky: resolved (fixed in 6.1.4-1)
sid: resolved (fixed in 6.1.4-1)
trixie: resolved (fixed in 6.1.4-1)
GHSA
GHSA-362x-cqj5-vh62: In the Linux kernel, the following vulnerability has been resolved:
i2c: mux: reg: check return value after calling platform_get_resource()
It will
ghsa_unreviewed·2025-09-17
CVE-2022-50364 [MEDIUM] CWE-476 GHSA-362x-cqj5-vh62: In the Linux kernel, the following vulnerability has been resolved:
i2c: mux: reg: check return value after calling platform_get_resource()
It will
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.
OSV
CVE-2022-50364: In the Linux kernel, the following vulnerability has been resolved: i2c: mux: reg: check return value after calling platform_get_resource() It will ca
osv·2025-09-17·CVSS 5.5
CVE-2022-50364 [MEDIUM] CVE-2022-50364: In the Linux kernel, the following vulnerability has been resolved: i2c: mux: reg: check return value after calling platform_get_resource() It will ca
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.
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/2d47b79d2bd39cc6369eccf94a06568d84c906aehttps://git.kernel.org/stable/c/61df25c41b8e0d2c988ccf17139f70075a2e1ba4https://git.kernel.org/stable/c/8212800943997fab61874550278d653cb378c60chttps://git.kernel.org/stable/c/f5049b3ad9446203b916ee375f30fa217735f63ahttps://git.kernel.org/stable/c/f7a440c89b6d460154efeb058272760e41bdfea8
2025-09-17
Published