CVE-2024-27078
JSON

5.5medium

media: v4l2-tpg: fix some memleaks in tpg_alloc

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 0de691ff547d86dd54c24b40a81f9c925df8dd77, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 8269ab16415f2065cd792c49b0475543936cbd79, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 94303a06e1852a366e9671fff46d19459f88cb28, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 770a57922ce36a8476c43f7400b6501c554ea511, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 4c86c772fef06f5d7a66151bac42366825db0941, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 31096da07933598da8522c54bd007376fb152a09, from 63881df94d3ecbb0deafa0b77da62ff2f32961c4 before 622b1cf38521569869c8f7b9fbe9e4f1a289add7 and 2 more
Not affected: before 3.18, 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.*
CVE List
linux linux_kernelfrom 3.18 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.2NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: medio: v4l2-tpg: corrige algunas fugas de memoria en tpg_alloc En tpg_alloc, los recursos deben desasignarse en todas y cada una de las rutas de manejo de errores, ya que se asignan en declaraciones for. De lo contrario, habría memleaks porque se llama a tpg_free solo cuando tpg_alloc devuelve 0.

References

https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77patch
https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79patch
https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28patch
https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511patch
https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145dpatch
https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941patch
https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09patch
https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7patch
https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691cpatch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlmailing-list
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list
https://cert-portal.siemens.com/productcert/html/ssa-265688.html

Sources

SourceRecordLicence
CVE ListCVE-2024-27078 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-27078 changed 2026-10-15Public domain