CVE-2024-27078

media: v4l2-tpg: fix some memleaks in tpg_alloc

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 01:04 PM UTC
Updated: October 15, 2026 at 01:17 AM UTC
2 products affected across 2 vendorsLinux KernelSIMATIC 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-tpg: fix some memleaks in tpg_alloc In tpg_alloc, resources should be deallocated in each and every error-handling paths, since they are allocated in for statements. Otherwise there would be memleaks because tpg_free is called only when tpg_alloc return 0.

Affected

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

3.18 ≤ 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.23.1863881df94d3ecbb0deafa0b77da62ff2f32961c4
Vendor states this is fixed in 0de691ff547d86dd54c24b40a81f9c925df8dd77 (fixed)
Vendor states this is fixed in 31096da07933598da8522c54bd007376fb152a09 (fixed)
Vendor states this is fixed in 4c86c772fef06f5d7a66151bac42366825db0941 (fixed)
Vendor states this is fixed in 622b1cf38521569869c8f7b9fbe9e4f1a289add7 (fixed)
Vendor states this is fixed in 6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d (fixed)
Vendor states this is fixed in 770a57922ce36a8476c43f7400b6501c554ea511 (fixed)
Vendor states this is fixed in 8269ab16415f2065cd792c49b0475543936cbd79 (fixed)
Vendor states this is fixed in 8cf9c5051076e0eb958f4361d50d8b0c3ee6691c (fixed)
Vendor states this is fixed in 94303a06e1852a366e9671fff46d19459f88cb28 (fixed)
Vendor states this is fixed in 3.18 (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/0de691ff547d86dd54c24b40a81f9c925df8dd77
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c

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