CVE-2024-35919 (GCVE-0-2024-35919)
Vulnerability from cvelistv5
Published
2024-05-19 10:10
Modified
2026-08-05 11:30
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
media: mediatek: vcodec: adding lock to protect encoder context list
Add a lock for the ctx_list, to avoid accessing a NULL pointer
within the 'vpu_enc_ipi_handler' function when the ctx_list has
been deleted due to an unexpected behavior on the SCP IP block.
References
Impacted products
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "linux_kernel",
"vendor": "linux",
"versions": [
{
"lessThan": "41671f0c0182",
"status": "affected",
"version": "1972e32431ed",
"versionType": "custom"
},
{
"lessThan": "51c84a8aac6e",
"status": "affected",
"version": "1972e32431ed",
"versionType": "custom"
},
{
"lessThan": "afaaf3a0f647",
"status": "affected",
"version": "1972e32431ed",
"versionType": "custom"
},
{
"status": "affected",
"version": "6.6"
},
{
"lessThan": "6.6*",
"status": "affected",
"version": "0",
"versionType": "custom"
},
{
"lessThanOrEqual": "6.6*",
"status": "affected",
"version": "6.6.27",
"versionType": "custom"
},
{
"lessThanOrEqual": "6.8*",
"status": "affected",
"version": "6.8.6",
"versionType": "custom"
},
{
"lessThanOrEqual": "*",
"status": "affected",
"version": "6.9",
"versionType": "custom"
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2024-35919",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-10-31T14:03:42.763507Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "CWE-noinfo Not enough information",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-10-31T14:08:27.502Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-02T03:21:49.013Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/41671f0c0182b2bae74ca7e3b0f155559e3e2fc5"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c",
"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c",
"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h",
"drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "41671f0c0182b2bae74ca7e3b0f155559e3e2fc5",
"status": "affected",
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"versionType": "git"
},
{
"lessThan": "51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d",
"status": "affected",
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"versionType": "git"
},
{
"lessThan": "afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad",
"status": "affected",
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c",
"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c",
"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h",
"drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.6"
},
{
"lessThan": "6.6",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.27",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.8.*",
"status": "unaffected",
"version": "6.8.6",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.9",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.27",
"versionStartIncluding": "6.6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.8.6",
"versionStartIncluding": "6.6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.9",
"versionStartIncluding": "6.6",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mediatek: vcodec: adding lock to protect encoder context list\n\nAdd a lock for the ctx_list, to avoid accessing a NULL pointer\nwithin the \u0027vpu_enc_ipi_handler\u0027 function when the ctx_list has\nbeen deleted due to an unexpected behavior on the SCP IP block."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The vulnerable code is reached by opening the MediaTek V4L2 encoder device node (/dev/videoN) and issuing encode ioctls that trigger SCP/VPU IPI replies into vpu_enc_ipi_handler(); no network or physical access is involved.\nAC:L - The attacker controls both sides of the race \u2014 one thread issues encode operations generating asynchronous SCP IPI callbacks while another thread repeatedly opens/closes encoder contexts to free the ctx mid-traversal; the handler runs in IRQ/workqueue context and can preempt the releasing task, and the window covers the whole unlocked list walk.\nPR:L - Requires only an unprivileged local process with access to the encoder video device node, which on Android and ChromeOS MediaTek devices is granted to ordinary media/codec HAL and sandboxed video processes; no CAP_SYS_ADMIN or root is needed.\nUI:N - The attacker\u0027s own processes perform every step \u2014 open, encode, and close \u2014 with no action required from any other user.\nS:U - The corruption and its consequences are confined to the kernel\u0027s own security authority; there is no crossing of a VM, IOMMU, or sandbox boundary.\nC:H - The unlocked traversal dereferences a freed mtk_vcodec_enc_ctx, and reclaiming that slab object lets the attacker control list.next, turning the walk into a controlled kernel-memory read oracle (comparing ctx-\u003evpu_inst at attacker-chosen addresses) capable of disclosing arbitrary kernel data.\nI:H - vpu_enc_check_ap_inst() is the validation gate for the firmware-supplied venc_inst pointer; a spurious true from the use-after-free lets handle_enc_init_msg() and the error path write vpu-\u003einst_addr/vpu-\u003evsi/vpu-\u003efailure/vpu-\u003esignaled through an unvalidated pointer, and heap-spray reclamation of the freed ctx provides a write primitive usable for control-flow hijacking.\nA:H - The use-after-free reliably produces a NULL/wild pointer dereference and kernel oops \u2014 an actual panic backtrace in vpu_dec_ipi_handler on a shipping MT8183 Chromebook is documented for the identical decoder-side bug \u2014 and following a corrupted list.next can also hang the CPU in IRQ context."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-05T11:30:58.513Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/41671f0c0182b2bae74ca7e3b0f155559e3e2fc5"
},
{
"url": "https://git.kernel.org/stable/c/51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d"
},
{
"url": "https://git.kernel.org/stable/c/afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad"
}
],
"title": "media: mediatek: vcodec: adding lock to protect encoder context list",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2024-35919",
"datePublished": "2024-05-19T10:10:31.707Z",
"dateReserved": "2024-05-17T13:50:33.123Z",
"dateUpdated": "2026-08-05T11:30:58.513Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/41671f0c0182b2bae74ca7e3b0f155559e3e2fc5\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:21:49.013Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"HIGH\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35919\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-31T14:03:42.763507Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*\"], \"vendor\": \"linux\", \"product\": \"linux_kernel\", \"versions\": [{\"status\": \"affected\", \"version\": \"1972e32431ed\", \"lessThan\": \"41671f0c0182\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"1972e32431ed\", \"lessThan\": \"51c84a8aac6e\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"1972e32431ed\", \"lessThan\": \"afaaf3a0f647\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"6.6\"}, {\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"6.6*\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"6.6.27\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.6*\"}, {\"status\": \"affected\", \"version\": \"6.8.6\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.8*\"}, {\"status\": \"affected\", \"version\": \"6.9\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"*\"}], \"defaultStatus\": \"unknown\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-06-18T16:52:26.945Z\"}}], \"cna\": {\"title\": \"media: mediatek: vcodec: adding lock to protect encoder context list\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The vulnerable code is reached by opening the MediaTek V4L2 encoder device node (/dev/videoN) and issuing encode ioctls that trigger SCP/VPU IPI replies into vpu_enc_ipi_handler(); no network or physical access is involved.\\nAC:L - The attacker controls both sides of the race \\u2014 one thread issues encode operations generating asynchronous SCP IPI callbacks while another thread repeatedly opens/closes encoder contexts to free the ctx mid-traversal; the handler runs in IRQ/workqueue context and can preempt the releasing task, and the window covers the whole unlocked list walk.\\nPR:L - Requires only an unprivileged local process with access to the encoder video device node, which on Android and ChromeOS MediaTek devices is granted to ordinary media/codec HAL and sandboxed video processes; no CAP_SYS_ADMIN or root is needed.\\nUI:N - The attacker\u0027s own processes perform every step \\u2014 open, encode, and close \\u2014 with no action required from any other user.\\nS:U - The corruption and its consequences are confined to the kernel\u0027s own security authority; there is no crossing of a VM, IOMMU, or sandbox boundary.\\nC:H - The unlocked traversal dereferences a freed mtk_vcodec_enc_ctx, and reclaiming that slab object lets the attacker control list.next, turning the walk into a controlled kernel-memory read oracle (comparing ctx-\u003evpu_inst at attacker-chosen addresses) capable of disclosing arbitrary kernel data.\\nI:H - vpu_enc_check_ap_inst() is the validation gate for the firmware-supplied venc_inst pointer; a spurious true from the use-after-free lets handle_enc_init_msg() and the error path write vpu-\u003einst_addr/vpu-\u003evsi/vpu-\u003efailure/vpu-\u003esignaled through an unvalidated pointer, and heap-spray reclamation of the freed ctx provides a write primitive usable for control-flow hijacking.\\nA:H - The use-after-free reliably produces a NULL/wild pointer dereference and kernel oops \\u2014 an actual panic backtrace in vpu_dec_ipi_handler on a shipping MT8183 Chromebook is documented for the identical decoder-side bug \\u2014 and following a corrupted list.next can also hang the CPU in IRQ context.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"1972e32431ed14682909ad568c6fd660572ae6ab\", \"lessThan\": \"41671f0c0182b2bae74ca7e3b0f155559e3e2fc5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1972e32431ed14682909ad568c6fd660572ae6ab\", \"lessThan\": \"51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1972e32431ed14682909ad568c6fd660572ae6ab\", \"lessThan\": \"afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c\", \"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c\", \"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h\", \"drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.6\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.6\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.27\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.8.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c\", \"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c\", \"drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h\", \"drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/41671f0c0182b2bae74ca7e3b0f155559e3e2fc5\"}, {\"url\": \"https://git.kernel.org/stable/c/51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d\"}, {\"url\": \"https://git.kernel.org/stable/c/afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmedia: mediatek: vcodec: adding lock to protect encoder context list\\n\\nAdd a lock for the ctx_list, to avoid accessing a NULL pointer\\nwithin the \u0027vpu_enc_ipi_handler\u0027 function when the ctx_list has\\nbeen deleted due to an unexpected behavior on the SCP IP block.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.27\", \"versionStartIncluding\": \"6.6\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8.6\", \"versionStartIncluding\": \"6.6\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9\", \"versionStartIncluding\": \"6.6\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:30:58.513Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2024-35919\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:30:58.513Z\", \"dateReserved\": \"2024-05-17T13:50:33.123Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-19T10:10:31.707Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…