{"id":"CVE-2026-139008","state":"PUBLISHED","title":"crypto: atmel-tdes - sync output bounce buffer before DMA","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: atmel-tdes - sync output bounce buffer before DMA\n\nThe slow path maps its output bounce buffer once at probe time with\ndma_map_single() and DMA_FROM_DEVICE, then reuses the mapping for every\nrequest.  After the CPU copies a result from the buffer,\ndma_sync_single_for_device() must hand the buffer back to the device before\nthe next DMA transfer.  The driver omits this call, so cache lines from the\nprevious result can remain valid while the device writes the next one.\n\nThis bug was masked by the completion paths calling\ndma_sync_single_for_device() immediately before the CPU copied the output,\nwhere dma_sync_single_for_cpu() was required.  For DMA_FROM_DEVICE on\nARM926, dma_sync_single_for_device() invokes arm926_dma_map_area(), which\ninvalidates the cache lines.  The misplaced call therefore discarded the\nstale lines before every copy-out.\n\nCommit c8a9a647532f (\"crypto: atmel-tdes - fix DMA sync direction\")\ncorrectly changed the completion paths to call dma_sync_single_for_cpu().\nOn ARM926, that function invokes arm926_dma_unmap_area(), which is a no-op.\nThe missing pre-DMA dma_sync_single_for_device() was therefore exposed on\nARM926-based SAM9X60 and SAM9X7 SoCs.\n\nWith CONFIG_CRYPTO_SELFTESTS=y all four DES/TDES algorithms fail on\nSAM9X75:\n\n  alg: skcipher: atmel-ecb-tdes encryption test failed (wrong result) on\n  test vector 2, cfg=\"unaligned buffer, offset=1\"\n\nCall dma_sync_single_for_device() for the output buffer before starting DMA\nin both atmel_tdes_crypt_pdc() and atmel_tdes_crypt_dma().","publishedAt":"2026-11-30T13:27:01.189Z","updatedAt":"2026-11-30T13:27:01.189Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ce3224678acb8c0b3473daa7d7dbffc998c6951a","status":"affected","lessThan":"25d5042c1eb0436256ae52bf0631fa1b6034517e","versionType":"git"},{"version":"b9b28f3881dd514e74f98ae04e79a635022a4804","status":"affected","lessThan":"722785790810f3fc1b8997ddff0fb17127265a47","versionType":"git"},{"version":"c0f3002c02a3a83250e25582ffbe8df7eb78a8bd","status":"affected","lessThan":"3c7f3dda4a436a4c921a91f02ee599654d96edf3","versionType":"git"},{"version":"5281e6e2302362f6b75b70cbfe4098d2a25dafd9","status":"affected","lessThan":"1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","versionType":"git"},{"version":"12a0adfe498cd5d87e6365d7ca5f6b3eed79e523","status":"affected","lessThan":"f888c7db1681c136bb761c43964a2271c7a89c12","versionType":"git"},{"version":"863d11b3927703ad95077c81a8a6489c5c7872f7","status":"affected","lessThan":"800e6b3394f547085e79a7ae7f95d46425f10f40","versionType":"git"},{"version":"c8a9a647532f5c2a04180352693215e24e9dba03","status":"affected","lessThan":"5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","versionType":"git"},{"version":"c8a9a647532f5c2a04180352693215e24e9dba03","status":"affected","lessThan":"a38fdcb9c944525ca71e6aaf35e708586d0ae87d","versionType":"git"},{"version":"b5f5df801d161ba244f391519cbff2f4e5c6edc2","status":"affected","versionType":"git"},{"version":"5.10.258","status":"affected","lessThan":"5.10.275","versionType":"semver"},{"version":"5.15.209","status":"affected","lessThan":"5.15.226","versionType":"semver"},{"version":"6.1.175","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"6.6.140","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"6.12.86","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"6.18.27","status":"affected","lessThan":"6.18.63","versionType":"semver"},{"version":"7.0.4","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/atmel-tdes.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","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":["drivers/crypto/atmel-tdes.c"]}],"references":["https://git.kernel.org/stable/c/25d5042c1eb0436256ae52bf0631fa1b6034517e","https://git.kernel.org/stable/c/722785790810f3fc1b8997ddff0fb17127265a47","https://git.kernel.org/stable/c/3c7f3dda4a436a4c921a91f02ee599654d96edf3","https://git.kernel.org/stable/c/1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","https://git.kernel.org/stable/c/f888c7db1681c136bb761c43964a2271c7a89c12","https://git.kernel.org/stable/c/800e6b3394f547085e79a7ae7f95d46425f10f40","https://git.kernel.org/stable/c/5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","https://git.kernel.org/stable/c/a38fdcb9c944525ca71e6aaf35e708586d0ae87d"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139008.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139008","state":"PUBLISHED","datePublished":"2026-11-30T13:27:01.189Z","dateUpdated":"2026-11-30T13:27:01.189Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.908Z"},"containers":{"cna":{"title":"crypto: atmel-tdes - sync output bounce buffer before DMA","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: atmel-tdes - sync output bounce buffer before DMA\n\nThe slow path maps its output bounce buffer once at probe time with\ndma_map_single() and DMA_FROM_DEVICE, then reuses the mapping for every\nrequest.  After the CPU copies a result from the buffer,\ndma_sync_single_for_device() must hand the buffer back to the device before\nthe next DMA transfer.  The driver omits this call, so cache lines from the\nprevious result can remain valid while the device writes the next one.\n\nThis bug was masked by the completion paths calling\ndma_sync_single_for_device() immediately before the CPU copied the output,\nwhere dma_sync_single_for_cpu() was required.  For DMA_FROM_DEVICE on\nARM926, dma_sync_single_for_device() invokes arm926_dma_map_area(), which\ninvalidates the cache lines.  The misplaced call therefore discarded the\nstale lines before every copy-out.\n\nCommit c8a9a647532f (\"crypto: atmel-tdes - fix DMA sync direction\")\ncorrectly changed the completion paths to call dma_sync_single_for_cpu().\nOn ARM926, that function invokes arm926_dma_unmap_area(), which is a no-op.\nThe missing pre-DMA dma_sync_single_for_device() was therefore exposed on\nARM926-based SAM9X60 and SAM9X7 SoCs.\n\nWith CONFIG_CRYPTO_SELFTESTS=y all four DES/TDES algorithms fail on\nSAM9X75:\n\n  alg: skcipher: atmel-ecb-tdes encryption test failed (wrong result) on\n  test vector 2, cfg=\"unaligned buffer, offset=1\"\n\nCall dma_sync_single_for_device() for the output buffer before starting DMA\nin both atmel_tdes_crypt_pdc() and atmel_tdes_crypt_dma()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ce3224678acb8c0b3473daa7d7dbffc998c6951a","status":"affected","lessThan":"25d5042c1eb0436256ae52bf0631fa1b6034517e","versionType":"git"},{"version":"b9b28f3881dd514e74f98ae04e79a635022a4804","status":"affected","lessThan":"722785790810f3fc1b8997ddff0fb17127265a47","versionType":"git"},{"version":"c0f3002c02a3a83250e25582ffbe8df7eb78a8bd","status":"affected","lessThan":"3c7f3dda4a436a4c921a91f02ee599654d96edf3","versionType":"git"},{"version":"5281e6e2302362f6b75b70cbfe4098d2a25dafd9","status":"affected","lessThan":"1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","versionType":"git"},{"version":"12a0adfe498cd5d87e6365d7ca5f6b3eed79e523","status":"affected","lessThan":"f888c7db1681c136bb761c43964a2271c7a89c12","versionType":"git"},{"version":"863d11b3927703ad95077c81a8a6489c5c7872f7","status":"affected","lessThan":"800e6b3394f547085e79a7ae7f95d46425f10f40","versionType":"git"},{"version":"c8a9a647532f5c2a04180352693215e24e9dba03","status":"affected","lessThan":"5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","versionType":"git"},{"version":"c8a9a647532f5c2a04180352693215e24e9dba03","status":"affected","lessThan":"a38fdcb9c944525ca71e6aaf35e708586d0ae87d","versionType":"git"},{"version":"b5f5df801d161ba244f391519cbff2f4e5c6edc2","status":"affected","versionType":"git"},{"version":"5.10.258","status":"affected","lessThan":"5.10.275","versionType":"semver"},{"version":"5.15.209","status":"affected","lessThan":"5.15.226","versionType":"semver"},{"version":"6.1.175","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"6.6.140","status":"affected","lessThan":"6.6.163","versionType":"semver"},{"version":"6.12.86","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"6.18.27","status":"affected","lessThan":"6.18.63","versionType":"semver"},{"version":"7.0.4","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/atmel-tdes.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","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":["drivers/crypto/atmel-tdes.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/25d5042c1eb0436256ae52bf0631fa1b6034517e"},{"url":"https://git.kernel.org/stable/c/722785790810f3fc1b8997ddff0fb17127265a47"},{"url":"https://git.kernel.org/stable/c/3c7f3dda4a436a4c921a91f02ee599654d96edf3"},{"url":"https://git.kernel.org/stable/c/1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92"},{"url":"https://git.kernel.org/stable/c/f888c7db1681c136bb761c43964a2271c7a89c12"},{"url":"https://git.kernel.org/stable/c/800e6b3394f547085e79a7ae7f95d46425f10f40"},{"url":"https://git.kernel.org/stable/c/5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4"},{"url":"https://git.kernel.org/stable/c/a38fdcb9c944525ca71e6aaf35e708586d0ae87d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:01.189Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.258","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.209","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.175","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.140","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.86","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.27","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}