CVE-2022-49608

pinctrl: ralink: Check for null return of devm_kcalloc

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:23 AM UTC
Updated: June 17, 2026 at 05:18 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.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: ralink: Check for null return of devm_kcalloc Because of the possible failure of the allocation, data->domains might be NULL pointer and will cause the dereference of the NULL pointer later. Therefore, it might be better to check it and directly return -ENOMEM without releasing data manually if fails, because the comment of the devm_kmalloc() says "Memory allocated with this function is automatically freed on driver detach.".

Affected

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

4.18 ≤ v < 4.19.2544.18 ≤ v < 5.10.1344.18 ≤ v < 5.15.584.18 ≤ v < 5.18.154.18 ≤ v < 5.194.18 ≤ v < 5.4.2084.20 ≤ v < 5.4.2085.11 ≤ v < 5.15.585.16 ≤ v < 5.18.155.5 ≤ v < 5.10.1345.19 rc15.19 rc25.19 rc35.19 rc45.19 rc55.19 rc65.19 rc7a86854d0c599b3202307abceb68feee4d7061578
Vendor states this is fixed in 13596e6c9e541e90e5fc2c52b23f08b951370da9 (fixed)
Vendor states this is fixed in 44016a85419ca0d4f1e4d0127b330f8e4e2a57d0 (fixed)
Vendor states this is fixed in 5595d30c4dc27d939635c3188c68203b6ece1711 (fixed)
Vendor states this is fixed in 5694b162f275fb9a9f89422701b2b963be11e496 (fixed)
Vendor states this is fixed in 6194c021496addc11763d1ffa89ce5751889fe3c (fixed)
Vendor states this is fixed in c3b821e8e406d5650e587b7ac624ac24e9b780a8 (fixed)
Vendor states this is fixed in 4.18 (unaffected)
Vendor states this is fixed in 4.19.254 (unaffected)
Vendor states this is fixed in 5.10.134 (unaffected)
Vendor states this is fixed in 5.15.58 (unaffected)
Vendor states this is fixed in 5.18.15 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.208 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13596e6c9e541e90e5fc2c52b23f08b951370da9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/44016a85419ca0d4f1e4d0127b330f8e4e2a57d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5595d30c4dc27d939635c3188c68203b6ece1711
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5694b162f275fb9a9f89422701b2b963be11e496
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6194c021496addc11763d1ffa89ce5751889fe3c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c3b821e8e406d5650e587b7ac624ac24e9b780a8

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

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

Quick Info

StatusMODIFIED
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