CVE-2022-49608

pinctrl: ralink: Check for null return of devm_kcalloc

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
18.2
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00270 · 18.2th percentile
Published
2025-02-26T02:23Z
EPSS history
Timeline
  • 26 FEB 02:23Z
    pinctrl: ralink: Check for null return of devm_kcalloc
    cvelistv5