In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-tpg: fix some memleaks in tpg_alloc
In tpgalloc, resources should be deallocated in each and every error-handling paths, since they are allocated in for statements. Otherwise there would be memleaks because tpgfree is called only when tpg_alloc return 0.
[
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@770a57922ce36a8476c43f7400b6501c554ea511",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-005389e5",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c86c772fef06f5d7a66151bac42366825db0941",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-043efd63",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94303a06e1852a366e9671fff46d19459f88cb28",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-088e156e",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@622b1cf38521569869c8f7b9fbe9e4f1a289add7",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-098a7b11",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8cf9c5051076e0eb958f4361d50d8b0c3ee6691c",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-114b2aed",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@770a57922ce36a8476c43f7400b6501c554ea511",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-25078547",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31096da07933598da8522c54bd007376fb152a09",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-3f5ce021",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c86c772fef06f5d7a66151bac42366825db0941",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-6b58b521",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8cf9c5051076e0eb958f4361d50d8b0c3ee6691c",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-90a71138",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@622b1cf38521569869c8f7b9fbe9e4f1a289add7",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-b6fe3591",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-bc0a5082",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8269ab16415f2065cd792c49b0475543936cbd79",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-c714a597",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-d2abad8d",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0de691ff547d86dd54c24b40a81f9c925df8dd77",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-d4635111",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31096da07933598da8522c54bd007376fb152a09",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-d604ee23",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0de691ff547d86dd54c24b40a81f9c925df8dd77",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-e5b1f06b",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8269ab16415f2065cd792c49b0475543936cbd79",
"target": {
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-fafefbd0",
"signature_version": "v1",
"digest": {
"line_hashes": [
"329130159181600976400863604882666308822",
"119872399936884379428387290987912628289",
"93897777620456120512198165055614860357",
"198945559338000375432477846440705569541",
"37000347612171237728303613585583261199",
"136608872027861151467828519729740145681",
"21541909827491189924050261186703085501",
"305877096777521557113775123363174568882",
"130671566314564967203261999323198739779",
"313466289204932485417727455463474615124",
"255431454670579967277943068541115827535",
"261415203470241782499952410279416191957",
"68568018342737037153907296297068672207",
"231102244800331557199277991341510335648",
"28832041551568779534016932610496084321",
"285665625140797776237208487886918023172",
"61417944738681009699564954220459349818",
"88748646049037928376594973628324253404",
"294195420723592278470114553063609473177",
"226306245617526591518347310240943875265",
"169209033151016832162012067993832426021",
"179395493017150411430091412032531617637",
"279963319044663040385198064218423980106",
"238373137472052860788530255648869923216",
"134859049327166067282038739922108026550",
"255701821739829187267310955920136391798",
"232959607289041849804948888312349044650",
"243722729506857897167897248945029166952",
"334310009136108433352351002203680877217",
"114090758958593142499023809582520783989"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94303a06e1852a366e9671fff46d19459f88cb28",
"target": {
"function": "tpg_alloc",
"file": "drivers/media/common/v4l2-tpg/v4l2-tpg-core.c"
},
"id": "CVE-2024-27078-feafe242",
"signature_version": "v1",
"digest": {
"length": 1083.0,
"function_hash": "68728317268037760144000263251735126106"
}
}
]