# CVE-2024-43822: ASoc: PCM6240: Return directly after a failed devm_kzalloc() in pcmdevice_i2c_probe()

- 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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:42.997Z
- Modified: 2026-06-17T07:51:46.833Z
- 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: PCM6240: Return directly after a failed devm_kzalloc() in pcmdevice_i2c_probe()

The value “-ENOMEM” was assigned to the local variable “ret”
in one if branch after a devm_kzalloc() call failed at the beginning.
This error code will trigger then a pcmdevice_remove() call with a passed
null pointer so that an undesirable dereference will be performed.
Thus return the appropriate error code directly.

(As written by CVE List.)

## Affected

- Linux Linux: from 1324eafd37aa5c5b970c1b48a857acc81f0685c8 before fa6f16eff7320c91e908309e31be34cbbe4b7e58; from 1324eafd37aa5c5b970c1b48a857acc81f0685c8 before 3722873d49a1788d5420894d4f6f63e35f5c1f13; 6.10 (not affected: before 6.10; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.10 before 6.10.3

## References

- <https://git.kernel.org/stable/c/fa6f16eff7320c91e908309e31be34cbbe4b7e58> (patch)
- <https://git.kernel.org/stable/c/3722873d49a1788d5420894d4f6f63e35f5c1f13> (patch)

## Sources

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

---

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