Files
vuln-cve/data/2024/35xxx/CVE-2024-35919.json
T

312 lines
15 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2024-35919",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-05-17T13:50:33.123Z",
"datePublished": "2024-05-19T10:10:31.707Z",
"dateUpdated": "2026-08-05T11:30:58.513Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T11:30:58.513Z"
},
"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 'vpu_enc_ipi_handler' function when the ctx_list has\nbeen deleted due to an unexpected behavior on the SCP IP block."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH"
},
"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 — 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's own processes perform every step — open, encode, and close — with no action required from any other user.\nS:U - The corruption and its consequences are confined to the kernel's 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->vpu_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->inst_addr/vpu->vsi/vpu->failure/vpu->signaled 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 — an actual panic backtrace in vpu_dec_ipi_handler on a shipping MT8183 Chromebook is documented for the identical decoder-side bug — and following a corrupted list.next can also hang the CPU in IRQ context."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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"
],
"versions": [
{
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"lessThan": "41671f0c0182b2bae74ca7e3b0f155559e3e2fc5",
"status": "affected",
"versionType": "git"
},
{
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"lessThan": "51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d",
"status": "affected",
"versionType": "git"
},
{
"version": "1972e32431ed14682909ad568c6fd660572ae6ab",
"lessThan": "afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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"
],
"versions": [
{
"version": "6.6",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.6",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.27",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.8.6",
"lessThanOrEqual": "6.8.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.9",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.6",
"versionEndExcluding": "6.6.27"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.6",
"versionEndExcluding": "6.8.6"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.6",
"versionEndExcluding": "6.9"
}
]
}
]
}
],
"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"
}
},
"adp": [
{
"problemTypes": [
{
"descriptions": [
{
"type": "CWE",
"lang": "en",
"description": "CWE-noinfo Not enough information"
}
]
}
],
"affected": [
{
"vendor": "linux",
"product": "linux_kernel",
"cpes": [
"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"versions": [
{
"version": "1972e32431ed",
"status": "affected",
"lessThan": "41671f0c0182",
"versionType": "custom"
},
{
"version": "1972e32431ed",
"status": "affected",
"lessThan": "51c84a8aac6e",
"versionType": "custom"
},
{
"version": "1972e32431ed",
"status": "affected",
"lessThan": "afaaf3a0f647",
"versionType": "custom"
},
{
"version": "6.6",
"status": "affected"
},
{
"version": "0",
"status": "affected",
"lessThan": "6.6*",
"versionType": "custom"
},
{
"version": "6.6.27",
"status": "affected",
"lessThanOrEqual": "6.6*",
"versionType": "custom"
},
{
"version": "6.8.6",
"status": "affected",
"lessThanOrEqual": "6.8*",
"versionType": "custom"
},
{
"version": "6.9",
"status": "affected",
"lessThanOrEqual": "*",
"versionType": "custom"
}
]
}
],
"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": {
"timestamp": "2024-10-31T14:03:42.763507Z",
"id": "CVE-2024-35919",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-10-31T14:08:27.502Z"
}
},
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T03:21:49.013Z"
},
"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"
]
}
]
}
]
}
}