Skip to content
Heist/ feed
Back to feed
UnratedFix available

media: v4l2-tpg: fix some memleaks in tpg_alloc

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.311, 5.10.214, 5.15.153, 5.4.273, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2024-27078
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:22 UTC · Revision 1

Source evidence

media: v4l2-tpg: fix some memleaks in tpg_alloc

core-osv · Original source

Published 1 May 2024, 13:04 UTC

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.

osv:CVE-2024-27078

Kernel

Fixed versions: 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2

Complete source record
{
  "id": "123eff7cf6895755653272df1c19a7790e8ba4cb60128857ef42c3133993ff40",
  "url": "https://osv.dev/vulnerability/CVE-2024-27078",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: v4l2-tpg: fix some memleaks in tpg_alloc",
    "summary": "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.",
    "evidence": "osv:CVE-2024-27078",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.311",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.273",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.214",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.153",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.83",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-27078",
      "aliases": [
        "CVE-2024-27078"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "63881df94d3ecbb0deafa0b77da62ff2f32961c4"
                },
                {
                  "fixed": "0de691ff547d86dd54c24b40a81f9c925df8dd77"
                },
                {
                  "fixed": "8269ab16415f2065cd792c49b0475543936cbd79"
                },
                {
                  "fixed": "94303a06e1852a366e9671fff46d19459f88cb28"
                },
                {
                  "fixed": "770a57922ce36a8476c43f7400b6501c554ea511"
                },
                {
                  "fixed": "6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d"
                },
                {
                  "fixed": "4c86c772fef06f5d7a66151bac42366825db0941"
                },
                {
                  "fixed": "31096da07933598da8522c54bd007376fb152a09"
                },
                {
                  "fixed": "622b1cf38521569869c8f7b9fbe9e4f1a289add7"
                },
                {
                  "fixed": "8cf9c5051076e0eb958f4361d50d8b0c3ee6691c"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27078.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.18.0"
                },
                {
                  "fixed": "4.19.311"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.273"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.214"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.153"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.83"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27078.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.472924995Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77",
        "https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09",
        "https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941",
        "https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7",
        "https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d",
        "https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511",
        "https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79",
        "https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c",
        "https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27078.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27078",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27078.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27078",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490846,
  "published_at": "2024-05-01T13:04:54.979+00:00"
}