CVE-2021-47651

soc: qcom: rpmpd: Check for null return of devm_kcalloc

Medium · published February 26, 2025

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

In the Linux kernel, the following vulnerability has been resolved:

soc: qcom: rpmpd: 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.00247 · 15.1th percentile
Published
2025-02-26T01:54Z
EPSS history
Timeline
  • 26 FEB 01:54Z
    soc: qcom: rpmpd: Check for null return of devm_kcalloc
    cvelistv5