CVE-2022-50364: 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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-50364 is a Linux kernel availability issue in an I2C mux driver. A local, low-privileged actor could trigger a kernel null-pointer dereference, potentially crashing the system. The source bundle does not show active exploitation or data theft risk.
Executive priority
Treat as routine but time-bound kernel maintenance. It can crash affected systems, but available evidence indicates local access is required and there is no confirmed active exploitation. Prioritize multi-user, shared, and exposed workload environments.
Technical view
The Linux kernel i2c mux reg code called resource_size() after platform_get_resource() without first ensuring the returned pointer was valid. If NULL, this could cause a NULL pointer dereference. The fix checks/remaps the resource safely using devm_platform_get_and_ioremap_resource(). CVSS is 5.5, local attack vector, availability impact only.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions with the vulnerable I2C mux reg code reachable. Distro-specific applicability is not provided in the source bundle, so teams should map their kernels to vendor advisories and the referenced stable kernel fixes.
Exploitation context
The CVSS vector requires local access and low privileges, with no user interaction. Impact is denial of service through kernel crash, not confidentiality or integrity compromise. The source bundle marks KEV false and provides no cited evidence of active exploitation.
Researcher notes
The issue is CWE-476 in the Linux kernel i2c mux reg path. The fix changes resource handling so NULL resource pointers are checked before size use. Public sources provide fix commits but not a detailed affected distro matrix or exploitation reports.
Mitigation direction
Update to a Linux kernel release containing the referenced stable fixes.
Check Linux distribution security advisories for backported fixes.
Prioritize systems where local users or workloads are not fully trusted.
If updates are delayed, monitor vendor guidance for supported mitigations.
Validation and detection
Inventory Linux kernel versions across servers, appliances, and embedded systems.
Identify systems using affected kernel branches or vendor backports.
Confirm whether the referenced fix commits are present in deployed kernels.
Review distribution advisories for CVE-2022-50364 package status.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.