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

CVE-2025-22066
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected aa736700f42fa0813e286ca2f9274ffaa25163b9 < 018e6cf2503e60087747b0ebc190e18b3640766f ; affected aa736700f42fa0813e286ca2f9274ffaa25163b9 < 38253922a89a742e7e622f626b41c64388367361 ; affected aa736700f42fa0813e286ca2f9274ffaa25163b9 < e283a5bf4337a7300ac5e6ae363cc8b242a0b4b7 ; affected aa736700f42fa0813e286ca2f9274ffaa25163b9 < 4d8458e48ff135bddc402ad79821dc058ea163d0 ; affected aa736700f42fa0813e286ca2f9274ffaa25163b9 < b01700e08be99e3842570142ec5973ccd7e73eaf ; affected aa736700f42fa0813e286ca2f9274ffaa25163b9 < dd2bbb9564d0d24a2643ad90008a79840368c4b4
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.180 ≤ 5.15.* ; unaffected 6.1.134 ≤ 6.1.* ; unaffected 6.6.87 ≤ 6.6.* ; unaffected 6.12.23 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD