CVE-2022-49832

pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:09 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.5 ≤ v < 4.14.3003.5 ≤ v < 4.19.2673.5 ≤ v < 4.9.3343.5 ≤ v < 5.10.1563.5 ≤ v < 5.15.803.5 ≤ v < 5.4.2253.5 ≤ v < 6.0.103.5 ≤ v < 6.14.10 ≤ v < 4.14.3004.15 ≤ v < 4.19.2674.20 ≤ v < 5.4.2255.11 ≤ v < 5.15.805.16 ≤ v < 6.0.105.5 ≤ v < 5.10.1563.557291ce295c0aca738dd284c4a9c591c09ebee716.1 rc16.1 rc26.1 rc36.1 rc46.1 rc5
Vendor states this is fixed in 40f726fecd88121f3b95e70369785ad452dddf9 (fixed)
Vendor states this is fixed in 5834a3a98cd266ad35a229923c0adbd0addc8d68 (fixed)
Vendor states this is fixed in 777430aa4ddccaa5accec6db90ffc1d47f00d471 (fixed)
Vendor states this is fixed in 91d5c5060ee24fe8da88cd585bb43b843d2f0dce (fixed)
Vendor states this is fixed in 97e5b508e96176f1a73888ed89df396d7041bfcb (fixed)
Vendor states this is fixed in a988dcd3dd9e691c5ccc3324b209688f3b5453e9 (fixed)
Vendor states this is fixed in aaf552c5d53abe4659176e099575fe870d2e4768 (fixed)
Vendor states this is fixed in b4d9f55cd38435358bc16d580612bc0d798d7b4c (fixed)
Vendor states this is fixed in 3.5 (unaffected)
Vendor states this is fixed in 4.14.300 (unaffected)
Vendor states this is fixed in 4.19.267 (unaffected)
Vendor states this is fixed in 4.9.334 (unaffected)
Vendor states this is fixed in 5.10.156 (unaffected)
Vendor states this is fixed in 5.15.80 (unaffected)
Vendor states this is fixed in 5.4.225 (unaffected)
Vendor states this is fixed in 6.0.10 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/040f726fecd88121f3b95e70369785ad452dddf9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5834a3a98cd266ad35a229923c0adbd0addc8d68
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/777430aa4ddccaa5accec6db90ffc1d47f00d471
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/91d5c5060ee24fe8da88cd585bb43b843d2f0dce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/97e5b508e96176f1a73888ed89df396d7041bfcb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a988dcd3dd9e691c5ccc3324b209688f3b5453e9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aaf552c5d53abe4659176e099575fe870d2e4768
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b4d9f55cd38435358bc16d580612bc0d798d7b4c

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card