CVE-2022-50364

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

Medium · published September 17, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
10.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00208 · 10.3th percentile
Published
2025-09-17T14:56Z
EPSS history
Timeline
  • 17 SEP 14:56Z
    i2c: mux: reg: check return value after calling platform_get_resource()
    cvelistv5