CVE-2022-49832 pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map
A null pointer dereference in the Linux kernel pinctrl driver can cause a system crash when memory allocation fails during device tree parsing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49832?
CVE-2022-49832 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-476
Which versions are affected by CVE-2022-49832?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49832?
Apply the vendor's patch.
Is CVE-2022-49832 being exploited?
There is no known exploitation of CVE-2022-49832 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49832, GHSA-59mw-5p3c-3rh3, UBUNTU-CVE-2022-49832.