# CVE-2022-49832: pinctrl: devicetree: fix null pointer dereferencing in pinctrl\_dt\_to\_map

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-01T14:09:50.435Z
- **Modified:** 2026-11-05T20:17:15.353Z

## Who should check

- Anyone running Linux \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< aaf552c5d53abe4659176e099575fe870d2e4768; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< b4d9f55cd38435358bc16d580612bc0d798d7b4c; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< a988dcd3dd9e691c5ccc3324b209688f3b5453e9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 040f726fecd88121f3b95e70369785ad452dddf9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 777430aa4ddccaa5accec6db90ffc1d47f00d471; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 97e5b508e96176f1a73888ed89df396d7041bfcb; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 5834a3a98cd266ad35a229923c0adbd0addc8d68; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 91d5c5060ee24fe8da88cd585bb43b843d2f0dce
- Anyone running Linux 3.5

## 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.

## Affected and fixed versions

- Linux: \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< aaf552c5d53abe4659176e099575fe870d2e4768; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< b4d9f55cd38435358bc16d580612bc0d798d7b4c; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< a988dcd3dd9e691c5ccc3324b209688f3b5453e9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 040f726fecd88121f3b95e70369785ad452dddf9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 777430aa4ddccaa5accec6db90ffc1d47f00d471; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 97e5b508e96176f1a73888ed89df396d7041bfcb; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 5834a3a98cd266ad35a229923c0adbd0addc8d68; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 91d5c5060ee24fe8da88cd585bb43b843d2f0dce (cvelist)
- Linux: 3.5 (cvelist)

## Mitigation

- Upgrade Linux to 91d5c5060ee24fe8da88cd585bb43b843d2f0dce or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49832. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49832.md
Affected: Linux >= 57291ce295c0aca738dd284c4a9c591c09ebee71, < aaf552c5d53abe4659176e099575fe870d2e4768; >= 57291ce295c0aca738dd284c4a9c591c09ebee71, < b4d9f55cd38435358bc16d580612bc0d798d7b4c; >= 57291ce295c0aca738dd284c4a9c591c09ebee71, < a988dcd3dd9e691c5ccc3324b209688f3b5453e9; >= 57291ce295c0aca738dd284…
Fixed in: Linux 040f726fecd88121f3b95e70369785ad452dddf9, Linux 777430aa4ddccaa5accec6db90ffc1d47f00d471, Linux 97e5b508e96176f1a73888ed89df396d7041bfcb, Linux 5834a3a98cd266ad35a229923c0adbd0addc8d68, Linux 91d5c5060ee24fe8da88cd585bb43b843d2f0dce

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49832 being exploited?

There is no confirmed exploitation: CVE-2022-49832 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49832?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49832?

Linux \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< aaf552c5d53abe4659176e099575fe870d2e4768; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< b4d9f55cd38435358bc16d580612bc0d798d7b4c; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< a988dcd3dd9e691c5ccc3324b209688f3b5453e9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 040f726fecd88121f3b95e70369785ad452dddf9; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 777430aa4ddccaa5accec6db90ffc1d47f00d471; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 97e5b508e96176f1a73888ed89df396d7041bfcb; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 5834a3a98cd266ad35a229923c0adbd0addc8d68; \>= 57291ce295c0aca738dd284c4a9c591c09ebee71, \< 91d5c5060ee24fe8da88cd585bb43b843d2f0dce; Linux 3.5.

### Is there a fix for CVE-2022-49832?

Yes. Fixed in Linux 040f726fecd88121f3b95e70369785ad452dddf9, Linux 777430aa4ddccaa5accec6db90ffc1d47f00d471, Linux 97e5b508e96176f1a73888ed89df396d7041bfcb, Linux 5834a3a98cd266ad35a229923c0adbd0addc8d68, Linux 91d5c5060ee24fe8da88cd585bb43b843d2f0dce. Upgrade Linux to 91d5c5060ee24fe8da88cd585bb43b843d2f0dce or later.

### How do I check if I'm affected by CVE-2022-49832?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/aaf552c5d53abe4659176e099575fe870d2e4768>
- patch: <https://git.kernel.org/stable/c/b4d9f55cd38435358bc16d580612bc0d798d7b4c>
- patch: <https://git.kernel.org/stable/c/a988dcd3dd9e691c5ccc3324b209688f3b5453e9>
- patch: <https://git.kernel.org/stable/c/040f726fecd88121f3b95e70369785ad452dddf9>
- patch: <https://git.kernel.org/stable/c/777430aa4ddccaa5accec6db90ffc1d47f00d471>
- patch: <https://git.kernel.org/stable/c/97e5b508e96176f1a73888ed89df396d7041bfcb>
- patch: <https://git.kernel.org/stable/c/5834a3a98cd266ad35a229923c0adbd0addc8d68>
- patch: <https://git.kernel.org/stable/c/91d5c5060ee24fe8da88cd585bb43b843d2f0dce>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49832>

HTML: <https://flawdb.com/CVE-2022-49832> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49832>
