# CVE-2024-35829: drm/lima: fix a memleak in lima_heap_alloc

- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-17T13:41:16.290Z
- Modified: 2026-06-17T07:35:30.200Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/lima: fix a memleak in lima_heap_alloc

When lima_vm_map_bo fails, the resources need to be deallocated, or
there will be memleaks.

(As written by CVE List.)

## Affected

- Linux Linux: from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before f2e80ac9344aebbff576453d5c0290b332e187ed; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before 746606d37d662c70ae1379fc658ee9c65f06880f; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before f6d51a91b41704704e395de6839c667b0f810bbf; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before 8e25c0ee5665e8a768b8e21445db1f86e9156eb7; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before 4ab14eccf5578af1dd5668a5f2d771df27683cab; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before ec6bb037e4a35fcbb5cd7bc78242d034ed893fcd; from 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 before 04ae3eb470e52a3c41babe85ff8cee195e4dcbea; 5.7 (not affected: before 5.7; from 5.10.214 up to 5.10.*; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- debian debian_linux: 10.0
- linux linux_kernel: from 5.7 before 5.10.214; from 5.11 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/f2e80ac9344aebbff576453d5c0290b332e187ed> (patch)
- <https://git.kernel.org/stable/c/746606d37d662c70ae1379fc658ee9c65f06880f> (patch)
- <https://git.kernel.org/stable/c/f6d51a91b41704704e395de6839c667b0f810bbf> (patch)
- <https://git.kernel.org/stable/c/8e25c0ee5665e8a768b8e21445db1f86e9156eb7> (patch)
- <https://git.kernel.org/stable/c/4ab14eccf5578af1dd5668a5f2d771df27683cab> (patch)
- <https://git.kernel.org/stable/c/ec6bb037e4a35fcbb5cd7bc78242d034ed893fcd> (patch)
- <https://git.kernel.org/stable/c/04ae3eb470e52a3c41babe85ff8cee195e4dcbea> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list, third-party-advisory)

## Sources

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

---

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