{"id":"CVE-2026-139461","state":"PUBLISHED","title":"dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case\n\nCommit 849facea92fa (\"dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING\nhandling\") moved the DMA_ATTR_NO_KERNEL_MAPPING shortcut in\ndma_direct_alloc() in front of the arch_dma_alloc() call. Architectures\nproviding their own DMA coherent allocator (CONFIG_ARCH_HAS_DMA_ALLOC)\ntherefore no longer see such requests. ARM 32bit is one of such. Lack of\nthe call to arch_dma_alloc() results in the lack of proper cache\nmanagement on HighMem pages.\n\nTake the dma-direct shortcut only for coherent devices or when the\narchitecture doesn't provide arch_dma_alloc(). While touching this,\nmove that check into separate function to avoid duplication in alloc\nand free paths.","publishedAt":"2026-11-30T13:34:58.141Z","updatedAt":"2026-11-30T13:34:58.141Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"ac033c450bf8e6efc9acf2c54b6cbfb0266cd34b","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"34644966b0b48e476aa1fc629361e73eff6aeceb","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"8cd4e521b74cad199c668e1fae0ef459b316c7c4","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"5e3bc6b44c8853bcc7782eac122c5baf2d02f399","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/direct.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/direct.c"]}],"references":["https://git.kernel.org/stable/c/ac033c450bf8e6efc9acf2c54b6cbfb0266cd34b","https://git.kernel.org/stable/c/34644966b0b48e476aa1fc629361e73eff6aeceb","https://git.kernel.org/stable/c/8cd4e521b74cad199c668e1fae0ef459b316c7c4","https://git.kernel.org/stable/c/5e3bc6b44c8853bcc7782eac122c5baf2d02f399"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139461.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139461","state":"PUBLISHED","datePublished":"2026-11-30T13:34:58.141Z","dateUpdated":"2026-11-30T13:34:58.141Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.935Z"},"containers":{"cna":{"title":"dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case\n\nCommit 849facea92fa (\"dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING\nhandling\") moved the DMA_ATTR_NO_KERNEL_MAPPING shortcut in\ndma_direct_alloc() in front of the arch_dma_alloc() call. Architectures\nproviding their own DMA coherent allocator (CONFIG_ARCH_HAS_DMA_ALLOC)\ntherefore no longer see such requests. ARM 32bit is one of such. Lack of\nthe call to arch_dma_alloc() results in the lack of proper cache\nmanagement on HighMem pages.\n\nTake the dma-direct shortcut only for coherent devices or when the\narchitecture doesn't provide arch_dma_alloc(). While touching this,\nmove that check into separate function to avoid duplication in alloc\nand free paths."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"ac033c450bf8e6efc9acf2c54b6cbfb0266cd34b","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"34644966b0b48e476aa1fc629361e73eff6aeceb","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"8cd4e521b74cad199c668e1fae0ef459b316c7c4","versionType":"git"},{"version":"849facea92fa68d9292f9b06d7c4ee9e7a06b8dc","status":"affected","lessThan":"5e3bc6b44c8853bcc7782eac122c5baf2d02f399","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/direct.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/direct.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ac033c450bf8e6efc9acf2c54b6cbfb0266cd34b"},{"url":"https://git.kernel.org/stable/c/34644966b0b48e476aa1fc629361e73eff6aeceb"},{"url":"https://git.kernel.org/stable/c/8cd4e521b74cad199c668e1fae0ef459b316c7c4"},{"url":"https://git.kernel.org/stable/c/5e3bc6b44c8853bcc7782eac122c5baf2d02f399"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:58.141Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}