Bug 2363449 (CVE-2022-49832) - CVE-2022-49832 kernel: pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map
Summary: CVE-2022-49832 kernel: pinctrl: devicetree: fix null pointer dereferencing in...
Keywords:
Status: NEW
Alias: CVE-2022-49832
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-05-01 15:05 UTC by OSIDB Bzimport
Modified: 2025-05-02 06:30 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:05:08 UTC
In the Linux kernel, the following vulnerability has been resolved:

pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map

Here is the BUG report by KASAN about null pointer dereference:

BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50
Read of size 1 at addr 0000000000000000 by task python3/2640
Call Trace:
 strcmp
 __of_find_property
 of_find_property
 pinctrl_dt_to_map

kasprintf() would return NULL pointer when kmalloc() fail to allocate.
So directly return ENOMEM, if kasprintf() return NULL pointer.

Comment 1 Avinash Hanwate 2025-05-02 06:20:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050137-CVE-2022-49832-d04a@gregkh/T


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