Bug 2396137 (CVE-2022-50364) - CVE-2022-50364 kernel: i2c: mux: reg: check return value after calling platform_get_resource()
Summary: CVE-2022-50364 kernel: i2c: mux: reg: check return value after calling platfo...
Keywords:
Status: NEW
Alias: CVE-2022-50364
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-17 15:03 UTC by OSIDB Bzimport
Modified: 2025-09-17 17:48 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-17 15:03:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.