pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map
Summary
| CVE | CVE-2022-49832 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-05-01 15:16:06 UTC |
| Updated | 2026-11-05 20:17:15 UTC |
| 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. |
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
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS: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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.