CVE-2022-50364

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

MEDIUM
5.5
CVSS Score
Published: September 17, 2025 at 02:56 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.3 ≤ v < 5.10.1634.3 ≤ v < 5.15.864.3 ≤ v < 6.0.164.3 ≤ v < 6.1.24.3 ≤ v < 6.25.11 ≤ v < 5.15.865.16 ≤ v < 6.0.166.1 ≤ v < 6.1.24.3b3fdd32799d834e2626fae087906e886037350c6
Vendor states this is fixed in 2d47b79d2bd39cc6369eccf94a06568d84c906ae (fixed)
Vendor states this is fixed in 61df25c41b8e0d2c988ccf17139f70075a2e1ba4 (fixed)
Vendor states this is fixed in 8212800943997fab61874550278d653cb378c60c (fixed)
Vendor states this is fixed in f5049b3ad9446203b916ee375f30fa217735f63a (fixed)
Vendor states this is fixed in f7a440c89b6d460154efeb058272760e41bdfea8 (fixed)
Vendor states this is fixed in 4.3 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card