ASoC: imx-card: Add NULL check in imx_card_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ aa736700f42fa0813e286ca2f9274ffaa25163b9 · < dd2bbb9564d0d24a2643ad90008a79840368c4b4| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s imx_card_probe() does not check whether devm_kasprintf() returns NULL. If memory allocation fails, this can cause a NULL pointer dereference. The input does not establish an attack path or authentication requirements.
Engineers running Linux kernels that include the ASoC imx-card driver should check whether their kernel contains the fix; affected versions are not specified.