# CVE-2024-27077: media: v4l2-mem2mem: fix a memleak in v4l2\_m2m\_register\_entity

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-01 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-27077, DEBIAN-CVE-2024-27077
- Record: https://cvemate.com/vulnerability/CVE-2024-27077 · JSON: https://cvemate.com/vulnerability/CVE-2024-27077/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.289%, percentile 23.027%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 118)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): \< 5.4.0-189.209 \| \< 5.15.0-112.122 \| \< 6.8.0-35.35
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1128.138 \| \< 5.15.0-1063.69 \| \< 6.8.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1063.69~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1128.138+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1063.69+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1066.75 \| \< 6.8.0-1008.8
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1065.74~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 37)

- <https://git.kernel.org/stable/c/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333>
- <https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4>
- <https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2>
- <https://git.kernel.org/stable/c/dc866b69cc51af9b8509b4731b8ce2a4950cd0ef>
- <https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d>
- <https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d>
- <https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458>
- <https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f>
- <https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://ubuntu.com/security/CVE-2024-27077>
- <https://www.cve.org/CVERecord?id=CVE-2024-27077>
- <https://git.kernel.org/linus/8f94b49a5b5d386c038e355bef6347298aabd211>
- <https://ubuntu.com/security/notices/USN-6816-1>
- <https://ubuntu.com/security/notices/USN-6817-1>
- <https://ubuntu.com/security/notices/USN-6820-1>
- <https://ubuntu.com/security/notices/USN-6821-1>
- <https://ubuntu.com/security/notices/USN-6821-2>

---

Data as of 2026-12-05T04:59:29.551Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
