---
id: CVE-2024-27077
title: |-
  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
summary: |-
  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 e…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.19, < 4.19.311'
  - 'linux_kernel >= 4.20, < 5.4.273'
  - 'linux_kernel >= 5.5, < 5.10.214'
  - 'linux_kernel >= 5.11, < 5.15.153'
  - 'linux_kernel >= 5.16, < 6.1.83'
  - 'linux_kernel >= 6.2, < 6.6.23'
  - 'linux_kernel >= 6.7, < 6.7.11'
  - 'linux_kernel >= 6.8, < 6.8.2'
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.2
published: '2024-05-01'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:39.550'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-27077'
references:
  - url: 'https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/dc866b69cc51af9b8509b4731b8ce2a4950cd0ef'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/dc866b69cc51af9b8509b4731b8ce2a4950cd0ef'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00289
epssPercentile: 0.21335
ingestedAt: '2026-10-15T03:30:12.676Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-10T15:43:52.226383Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 4.19, < 4.19.311`
- `linux_kernel >= 4.20, < 5.4.273`
- `linux_kernel >= 5.5, < 5.10.214`
- `linux_kernel >= 5.11, < 5.15.153`
- `linux_kernel >= 5.16, < 6.1.83`
- `linux_kernel >= 6.2, < 6.6.23`
- `linux_kernel >= 6.7, < 6.7.11`
- `linux_kernel >= 6.8, < 6.8.2`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.2`
