CVE-2025-22066
JSON

5.5medium

ASoC: imx-card: Add NULL check in imx_card_probe()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: imx-card: Add NULL check in imx_card_probe() devm_kasprintf() returns NULL when memory allocation fails. Currently, imx_card_probe() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue.

Affected

Product or packageVersionsReported by
Linux Linuxfrom aa736700f42fa0813e286ca2f9274ffaa25163b9 before 018e6cf2503e60087747b0ebc190e18b3640766f, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before 38253922a89a742e7e622f626b41c64388367361, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before e283a5bf4337a7300ac5e6ae363cc8b242a0b4b7, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before 4d8458e48ff135bddc402ad79821dc058ea163d0, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before b01700e08be99e3842570142ec5973ccd7e73eaf, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before dd2bbb9564d0d24a2643ad90008a79840368c4b4, from aa736700f42fa0813e286ca2f9274ffaa25163b9 before 93d34608fd162f725172e780b1c60cc93a920719, 5.14
Not affected: before 5.14, from 5.15.180 up to 5.15.*, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*
CVE List
linux linux_kernelfrom 5.14 before 5.15.180, from 5.16 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ASoC: imx-card: Add NULL check in imx_card_probe() devm_kasprintf() returns NULL when memory allocation fails. Currently, imx_card_probe() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: imx-card: Añadir comprobación de NULL en imx_card_probe(). Devm_kasprintf() devuelve NULL cuando falla la asignación de memoria. Actualmente, imx_card_probe() no comprueba este caso, lo que provoca una desreferencia de puntero NULL. Añadir comprobación de NULL después de devm_kasprintf() para evitar este problema.

References

Sources

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