# CVE-2025-22066: ASoC: imx-card: Add NULL check in imx_card_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:20.125Z
- Modified: 2026-06-17T08:44:58.277Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 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.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/018e6cf2503e60087747b0ebc190e18b3640766f> (patch)
- <https://git.kernel.org/stable/c/38253922a89a742e7e622f626b41c64388367361> (patch)
- <https://git.kernel.org/stable/c/e283a5bf4337a7300ac5e6ae363cc8b242a0b4b7> (patch)
- <https://git.kernel.org/stable/c/4d8458e48ff135bddc402ad79821dc058ea163d0> (patch)
- <https://git.kernel.org/stable/c/b01700e08be99e3842570142ec5973ccd7e73eaf> (patch)
- <https://git.kernel.org/stable/c/dd2bbb9564d0d24a2643ad90008a79840368c4b4> (patch)
- <https://git.kernel.org/stable/c/93d34608fd162f725172e780b1c60cc93a920719> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-22066](https://www.cve.org/CVERecord?id=CVE-2025-22066), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-22066](https://nvd.nist.gov/vuln/detail/CVE-2025-22066), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22066 · Whole record: https://cve.day/CVE-2025-22066.json · Rebuilt by cve.day 2026-11-25T22:58:56.592Z
