{"id":"CVE-2026-53171","state":"PUBLISHED","title":"accel/ethosu: fix arithmetic issues in dma_length()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/ethosu: fix arithmetic issues in dma_length()\n\ndma_length() derives DMA region usage from command stream values and\nupdates region_size[]:\n\n    len = ((len + stride[0]) * size0 + stride[1]) * size1\n    region_size[region] = max(..., len + dma->offset)\n\nSeveral arithmetic issues can corrupt the derived region size:\n\n- signed stride values may underflow when added to len\n- intermediate multiplications may overflow\n- len + dma->offset may overflow during region_size updates\n- dma_length() error returns were not validated by the caller\n\nregion_size[] is later used by ethosu_job.c to validate command stream\naccesses against GEM buffer sizes. Arithmetic wraparound can therefore\nunder-report region usage and bypass the bounds validation.\n\nFix by validating signed additions, using overflow helpers for\nmultiplications and offset updates, and propagating dma_length()\nfailures to the caller.","publishedAt":"2026-06-25T08:38:49.392Z","updatedAt":"2026-08-05T12:33:40.393Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b","status":"affected","lessThan":"6bb73845d1855ceaf50e397175e5979a7bdf69bc","versionType":"git"},{"version":"5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b","status":"affected","lessThan":"ee6d9b6e51626f259c6f0e38d94f91be4fd14754","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ethosu/ethosu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ethosu/ethosu_gem.c"]}],"references":["https://git.kernel.org/stable/c/6bb73845d1855ceaf50e397175e5979a7bdf69bc","https://git.kernel.org/stable/c/ee6d9b6e51626f259c6f0e38d94f91be4fd14754"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53171.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53171","state":"PUBLISHED","datePublished":"2026-06-25T08:38:49.392Z","dateUpdated":"2026-08-05T12:33:40.393Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.389Z"},"containers":{"cna":{"title":"accel/ethosu: fix arithmetic issues in dma_length()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/ethosu: fix arithmetic issues in dma_length()\n\ndma_length() derives DMA region usage from command stream values and\nupdates region_size[]:\n\n    len = ((len + stride[0]) * size0 + stride[1]) * size1\n    region_size[region] = max(..., len + dma->offset)\n\nSeveral arithmetic issues can corrupt the derived region size:\n\n- signed stride values may underflow when added to len\n- intermediate multiplications may overflow\n- len + dma->offset may overflow during region_size updates\n- dma_length() error returns were not validated by the caller\n\nregion_size[] is later used by ethosu_job.c to validate command stream\naccesses against GEM buffer sizes. Arithmetic wraparound can therefore\nunder-report region usage and bypass the bounds validation.\n\nFix by validating signed additions, using overflow helpers for\nmultiplications and offset updates, and propagating dma_length()\nfailures to the caller."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b","status":"affected","lessThan":"6bb73845d1855ceaf50e397175e5979a7bdf69bc","versionType":"git"},{"version":"5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b","status":"affected","lessThan":"ee6d9b6e51626f259c6f0e38d94f91be4fd14754","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ethosu/ethosu_gem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ethosu/ethosu_gem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6bb73845d1855ceaf50e397175e5979a7bdf69bc"},{"url":"https://git.kernel.org/stable/c/ee6d9b6e51626f259c6f0e38d94f91be4fd14754"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable path is reached through local DRM accel ioctls on the Ethos-U device, via user-supplied command stream creation and job submission.\nAC:L - The attacker controls the command stream fields that trigger the arithmetic wraparound, and no race or external state is required beyond access to an affected Ethos-U device.\nPR:L - No kernel capability check is present on the relevant driver ioctls, but exploitation requires a local unprivileged process able to open the accel device node.\nUI:N - After local device access, the attacker can create buffers and submit the malicious command stream directly without victim interaction.\nS:C - The validation bypass can let NPU DMA access memory outside the intended GEM buffer, crossing the intended DMA/object isolation boundary and potentially affecting kernel or other-process memory.\nC:H - An out-of-bounds DMA source can copy memory outside the attacker’s buffer into an attacker-readable destination buffer, giving a plausible high-impact memory disclosure primitive.\nI:H - An out-of-bounds DMA destination can write outside the validated GEM buffer, giving a plausible high-impact memory corruption primitive.\nA:H - Out-of-bounds DMA can corrupt system memory or trigger bus/device faults and scheduler resets, with a plausible kernel crash or system-level denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:33:40.393Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}