# CVE-2024-42298: ASoC: fsl: fsl_qmc_audio: Check devm_kasprintf() returned value

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:05.866Z
- Modified: 2026-06-17T07:49:12.417Z
- 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: fsl: fsl_qmc_audio: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 075c7125b11c72e7933401d73000d6d151196072 before b4205dfcfe96182118e54343954827eda51b2135; from 075c7125b11c72e7933401d73000d6d151196072 before af466037fa2b263e8ea5c47285513d2487e17d90; from 075c7125b11c72e7933401d73000d6d151196072 before e62599902327d27687693f6e5253a5d56583db58; 6.4 (not affected: before 6.4; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.4 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/b4205dfcfe96182118e54343954827eda51b2135> (patch)
- <https://git.kernel.org/stable/c/af466037fa2b263e8ea5c47285513d2487e17d90> (patch)
- <https://git.kernel.org/stable/c/e62599902327d27687693f6e5253a5d56583db58> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-42298 · Whole record: https://cve.day/CVE-2024-42298.json · Rebuilt by cve.day 2026-11-25T22:58:44.473Z
