CVE-2024-27077

media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 01:04 PM UTC
Updated: October 15, 2026 at 01:17 AM UTC
3 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 4.19.3114.20 ≤ v < 5.4.2735.11 ≤ v < 5.15.1535.16 ≤ v < 6.1.835.5 ≤ v < 5.10.2146.2 ≤ v < 6.6.236.7 ≤ v < 6.7.116.8 ≤ v < 6.8.24.19be2fff656322e82f215730839063c2c2ca73d14b
Vendor states this is fixed in 0175f2d34c85744f9ad6554f696cf0afb5bd04e4 (fixed)
Vendor states this is fixed in 0c9550b032de48d6a7fa6a4ddc09699d64d9300d (fixed)
Vendor states this is fixed in 3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333 (fixed)
Vendor states this is fixed in 5dc319cc3c4f7b74f7dfba349aa26f87efb52458 (fixed)
Vendor states this is fixed in 8f94b49a5b5d386c038e355bef6347298aabd211 (fixed)
Vendor states this is fixed in 90029b9c979b60de5cb2b70ade4bbf61d561bc5d (fixed)
Vendor states this is fixed in 9c23ef30e840fedc66948299509f6c2777c9cf4f (fixed)
Vendor states this is fixed in afd2a82fe300032f63f8be5d6cd6981e75f8bbf2 (fixed)
Vendor states this is fixed in dc866b69cc51af9b8509b4731b8ce2a4950cd0ef (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 4.19.311 (unaffected)
Vendor states this is fixed in 5.10.214 (unaffected)
Vendor states this is fixed in 5.15.153 (unaffected)
Vendor states this is fixed in 5.4.273 (unaffected)
Vendor states this is fixed in 6.1.83 (unaffected)
Vendor states this is fixed in 6.6.23 (unaffected)
Vendor states this is fixed in 6.7.11 (unaffected)
Vendor states this is fixed in 6.8.2 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card