pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map

Summary

CVECVE-2022-49832
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-05-01 15:16:06 UTC
Updated2026-11-05 20:17:15 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-476

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 aaf552c5d53abe4659176e099575fe870d2e4768 git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 b4d9f55cd38435358bc16d580612bc0d798d7b4c git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 a988dcd3dd9e691c5ccc3324b209688f3b5453e9 git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 040f726fecd88121f3b95e70369785ad452dddf9 git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 777430aa4ddccaa5accec6db90ffc1d47f00d471 git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 97e5b508e96176f1a73888ed89df396d7041bfcb git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 5834a3a98cd266ad35a229923c0adbd0addc8d68 git Not specified
CNA Linux Linux affected 57291ce295c0aca738dd284c4a9c591c09ebee71 91d5c5060ee24fe8da88cd585bb43b843d2f0dce git Not specified
CNA Linux Linux affected 3.5 Not specified
CNA Linux Linux unaffected 3.5 semver Not specified
CNA Linux Linux unaffected 4.9.334 4.9.* semver Not specified
CNA Linux Linux unaffected 4.14.300 4.14.* semver Not specified
CNA Linux Linux unaffected 4.19.267 4.19.* semver Not specified
CNA Linux Linux unaffected 5.4.225 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.156 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.80 5.15.* semver Not specified
CNA Linux Linux unaffected 6.0.10 6.0.* semver Not specified
CNA Linux Linux unaffected 6.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/b4d9f55cd38435358bc16d580612bc0d798d7b4c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/5834a3a98cd266ad35a229923c0adbd0addc8d68 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/a988dcd3dd9e691c5ccc3324b209688f3b5453e9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/97e5b508e96176f1a73888ed89df396d7041bfcb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/91d5c5060ee24fe8da88cd585bb43b843d2f0dce 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/aaf552c5d53abe4659176e099575fe870d2e4768 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/040f726fecd88121f3b95e70369785ad452dddf9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/777430aa4ddccaa5accec6db90ffc1d47f00d471 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report