# CVE-2024-27077: media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity

- 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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-05-01T13:04:51.518Z
- Modified: 2026-10-15T01:17:39.550Z
- 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:

media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity

The entity->name (i.e. name) is allocated in v4l2_m2m_register_entity
but isn't freed in its following error-handling paths. This patch
adds such deallocation to prevent memleak of entity->name.

(As written by CVE List.)

## Affected

- Linux Linux: from be2fff656322e82f215730839063c2c2ca73d14b before 3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333; from be2fff656322e82f215730839063c2c2ca73d14b before 0175f2d34c85744f9ad6554f696cf0afb5bd04e4; from be2fff656322e82f215730839063c2c2ca73d14b before afd2a82fe300032f63f8be5d6cd6981e75f8bbf2; from be2fff656322e82f215730839063c2c2ca73d14b before dc866b69cc51af9b8509b4731b8ce2a4950cd0ef; from be2fff656322e82f215730839063c2c2ca73d14b before 0c9550b032de48d6a7fa6a4ddc09699d64d9300d; from be2fff656322e82f215730839063c2c2ca73d14b before 90029b9c979b60de5cb2b70ade4bbf61d561bc5d; from be2fff656322e82f215730839063c2c2ca73d14b before 5dc319cc3c4f7b74f7dfba349aa26f87efb52458; from be2fff656322e82f215730839063c2c2ca73d14b before 9c23ef30e840fedc66948299509f6c2777c9cf4f; from be2fff656322e82f215730839063c2c2ca73d14b before 8f94b49a5b5d386c038e355bef6347298aabd211; 4.19 (not affected: before 4.19; from 4.19.311 up to 4.19.*; from 5.4.273 up to 5.4.*; 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 *)
- linux linux_kernel: from 4.19 before 4.19.311; from 4.20 before 5.4.273; from 5.5 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
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333> (patch)
- <https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4> (patch)
- <https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2> (patch)
- <https://git.kernel.org/stable/c/dc866b69cc51af9b8509b4731b8ce2a4950cd0ef> (patch)
- <https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d> (patch)
- <https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d> (patch)
- <https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458> (patch)
- <https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f> (patch)
- <https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

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

---

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