CVE-2024-50070
JSON

5.5medium

pinctrl: stm32: check devm_kasprintf() returned value

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: stm32: check devm_kasprintf() returned value devm_kasprintf() can return a NULL pointer on failure but this returned value is not checked. Fix this lack and check the returned value. Found by code review.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 75285cb2b49a9bfe15fc22aecab45ef25d50e6f2 before a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3, from 32c170ff15b044579b1f8b8cdabf543406dde9da before 3b36bb1fca2b87f6292ca2a8593f297c5e9fab41, from 32c170ff15b044579b1f8b8cdabf543406dde9da before 1f266957ae1207b0717c2d69096bc70654ae9fcb, from 32c170ff15b044579b1f8b8cdabf543406dde9da before b0f0e3f0552a566def55c844b0d44250c58e4df6, 6.6
Not affected: before 6.6, from 6.6.58 up to 6.6.*, from 6.11.5 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.6 before 6.6.58, from 6.7 before 6.11.5, 6.12NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: pinctrl: stm32: check devm_kasprintf() returned value devm_kasprintf() can return a NULL pointer on failure but this returned value is not checked. Fix this lack and check the returned value. Found by code review.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: stm32: comprobar el valor devuelto por devm_kasprintf() devm_kasprintf() puede devolver un puntero NULL en caso de error, pero este valor devuelto no se comprueba. Corrija esta falla y compruebe el valor devuelto. Encontrado por revisión de código.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50070 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-50070 changed 2026-06-17Public domain