{"id":"CVE-2023-52916","state":"PUBLISHED","title":"media: aspeed: Fix memory overwrite if timing is 1600x900","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: aspeed: Fix memory overwrite if timing is 1600x900\n\nWhen capturing 1600x900, system could crash when system memory usage is\ntight.\n\nThe way to reproduce this issue:\n1. Use 1600x900 to display on host\n2. Mount ISO through 'Virtual media' on OpenBMC's web\n3. Run script as below on host to do sha continuously\n  #!/bin/bash\n  while [ [1] ];\n  do\n\tfind /media -type f -printf '\"%h/%f\"\\n' | xargs sha256sum\n  done\n4. Open KVM on OpenBMC's web\n\nThe size of macro block captured is 8x8. Therefore, we should make sure\nthe height of src-buf is 8 aligned to fix this issue.","publishedAt":"2024-09-06T09:07:50.462Z","updatedAt":"2026-08-05T09:11:59.259Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d2b4387f3bdf016e266d23cf657465f557721488","status":"affected","lessThan":"4c823e4027dd1d6e88c31028dec13dd19bc7b02d","versionType":"git"},{"version":"d2b4387f3bdf016e266d23cf657465f557721488","status":"affected","lessThan":"c281355068bc258fd619c5aefd978595bede7bfe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/aspeed/aspeed-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/aspeed/aspeed-video.c"]}],"references":["https://git.kernel.org/stable/c/4c823e4027dd1d6e88c31028dec13dd19bc7b02d","https://git.kernel.org/stable/c/c281355068bc258fd619c5aefd978595bede7bfe","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52916.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52916","state":"PUBLISHED","datePublished":"2024-09-06T09:07:50.462Z","dateUpdated":"2026-08-05T09:11:59.259Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-21T06:07:11.017Z"},"containers":{"cna":{"title":"media: aspeed: Fix memory overwrite if timing is 1600x900","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: aspeed: Fix memory overwrite if timing is 1600x900\n\nWhen capturing 1600x900, system could crash when system memory usage is\ntight.\n\nThe way to reproduce this issue:\n1. Use 1600x900 to display on host\n2. Mount ISO through 'Virtual media' on OpenBMC's web\n3. Run script as below on host to do sha continuously\n  #!/bin/bash\n  while [ [1] ];\n  do\n\tfind /media -type f -printf '\"%h/%f\"\\n' | xargs sha256sum\n  done\n4. Open KVM on OpenBMC's web\n\nThe size of macro block captured is 8x8. Therefore, we should make sure\nthe height of src-buf is 8 aligned to fix this issue."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d2b4387f3bdf016e266d23cf657465f557721488","status":"affected","lessThan":"4c823e4027dd1d6e88c31028dec13dd19bc7b02d","versionType":"git"},{"version":"d2b4387f3bdf016e266d23cf657465f557721488","status":"affected","lessThan":"c281355068bc258fd619c5aefd978595bede7bfe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/aspeed/aspeed-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/aspeed/aspeed-video.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4c823e4027dd1d6e88c31028dec13dd19bc7b02d"},{"url":"https://git.kernel.org/stable/c/c281355068bc258fd619c5aefd978595bede7bfe"}],"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 path is reached through the local V4L2 device node (/dev/video*) via open, VIDIOC_S_DV_TIMINGS, and streaming ioctls on the BMC; the kernel does not process network packets in this driver.\nAC:L - Any non-8-aligned capture height (e.g. 1600x900) reliably allocates an undersized DMA buffer and the hardware always writes past it; an attacker who can open the device can set such timings and start streaming without depending on conditions outside their control.\nPR:L - The driver performs no capability checks; access requires only open permission on the V4L2 device (typically video-group membership), not real root or init-namespace admin privileges.\nUI:N - A local attacker with device access can open the capture device, set undersized timings, and start streaming themselves without any separate victim action.\nS:U - Impact is memory corruption within the same BMC kernel security authority that hosts the vulnerable driver; this is standard local privilege escalation, not a cross-boundary escape.\nC:H - The out-of-bounds DMA write is substantial kernel memory corruption (~25KB at 1600x900, more at other non-aligned modes) that can be leveraged for information disclosure primitives.\nI:H - Hardware DMA performs a large out-of-bounds write of capturable framebuffer data into adjacent coherent DMA/kernel memory, which is exploitable for integrity compromise and control-flow hijacking.\nA:H - The memory overwrite is documented to crash the system (kernel oops/panic) under realistic OpenBMC KVM capture workloads."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:11:59.259Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-09T20:43:04.212290Z","id":"CVE-2023-52916","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-29T13:22:28.595Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:36:16.639Z"}}]}}}