# CVE-2024-27078: media: v4l2-tpg: fix some memleaks in tpg\_alloc

- 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-27078, DEBIAN-CVE-2024-27078
- Record: https://cvemate.com/vulnerability/CVE-2024-27078 · JSON: https://cvemate.com/vulnerability/CVE-2024-27078/json

## Description

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

## 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.028%, 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 121)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): \< 4.4.0-273.307 \| \< 4.15.0-246.258 \| \< 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): \< 4.4.0-1148.154 \| \< 4.4.0-1186.201 \| \< 4.15.0-1188.201 \| \< 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): \< 4.15.0-2126.132 \| All versions (No fix recorded) \| \< 5.4.0-1128.138+fips1 \| \< 5.15.0-1063.69+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1188.201~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1196.211~14.04.1 \| \< 4.15.0-1196.211~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1066.75 \| \< 6.8.0-1008.8
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1196.211
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 46)

- <https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77>
- <https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79>
- <https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28>
- <https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511>
- <https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d>
- <https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941>
- <https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09>
- <https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7>
- <https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c>
- <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-27078>
- <https://www.cve.org/CVERecord?id=CVE-2024-27078>
- <https://git.kernel.org/linus/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c>
- <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-05T09:54:58.690Z. 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
