{"api_version":"1","generated_at":"2026-11-30T17:41:53+00:00","cve":"CVE-2026-139008","urls":{"html":"https://cve.report/CVE-2026-139008","api":"https://cve.report/api/cve/CVE-2026-139008.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139008","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139008"},"summary":{"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().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:03","updated_at":"2026-11-30 14:18:03"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/800e6b3394f547085e79a7ae7f95d46425f10f40","name":"https://git.kernel.org/stable/c/800e6b3394f547085e79a7ae7f95d46425f10f40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3c7f3dda4a436a4c921a91f02ee599654d96edf3","name":"https://git.kernel.org/stable/c/3c7f3dda4a436a4c921a91f02ee599654d96edf3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f888c7db1681c136bb761c43964a2271c7a89c12","name":"https://git.kernel.org/stable/c/f888c7db1681c136bb761c43964a2271c7a89c12","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","name":"https://git.kernel.org/stable/c/1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a38fdcb9c944525ca71e6aaf35e708586d0ae87d","name":"https://git.kernel.org/stable/c/a38fdcb9c944525ca71e6aaf35e708586d0ae87d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/722785790810f3fc1b8997ddff0fb17127265a47","name":"https://git.kernel.org/stable/c/722785790810f3fc1b8997ddff0fb17127265a47","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","name":"https://git.kernel.org/stable/c/5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/25d5042c1eb0436256ae52bf0631fa1b6034517e","name":"https://git.kernel.org/stable/c/25d5042c1eb0436256ae52bf0631fa1b6034517e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139008","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139008","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce3224678acb8c0b3473daa7d7dbffc998c6951a 25d5042c1eb0436256ae52bf0631fa1b6034517e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b9b28f3881dd514e74f98ae04e79a635022a4804 722785790810f3fc1b8997ddff0fb17127265a47 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c0f3002c02a3a83250e25582ffbe8df7eb78a8bd 3c7f3dda4a436a4c921a91f02ee599654d96edf3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5281e6e2302362f6b75b70cbfe4098d2a25dafd9 1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 12a0adfe498cd5d87e6365d7ca5f6b3eed79e523 f888c7db1681c136bb761c43964a2271c7a89c12 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 863d11b3927703ad95077c81a8a6489c5c7872f7 800e6b3394f547085e79a7ae7f95d46425f10f40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8a9a647532f5c2a04180352693215e24e9dba03 5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8a9a647532f5c2a04180352693215e24e9dba03 a38fdcb9c944525ca71e6aaf35e708586d0ae87d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b5f5df801d161ba244f391519cbff2f4e5c6edc2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.258 5.10.275 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.209 5.15.226 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.175 6.1.193 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.140 6.6.163 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.86 6.12.117 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.27 6.18.63 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0.4 7.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/crypto/atmel-tdes.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"25d5042c1eb0436256ae52bf0631fa1b6034517e","status":"affected","version":"ce3224678acb8c0b3473daa7d7dbffc998c6951a","versionType":"git"},{"lessThan":"722785790810f3fc1b8997ddff0fb17127265a47","status":"affected","version":"b9b28f3881dd514e74f98ae04e79a635022a4804","versionType":"git"},{"lessThan":"3c7f3dda4a436a4c921a91f02ee599654d96edf3","status":"affected","version":"c0f3002c02a3a83250e25582ffbe8df7eb78a8bd","versionType":"git"},{"lessThan":"1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92","status":"affected","version":"5281e6e2302362f6b75b70cbfe4098d2a25dafd9","versionType":"git"},{"lessThan":"f888c7db1681c136bb761c43964a2271c7a89c12","status":"affected","version":"12a0adfe498cd5d87e6365d7ca5f6b3eed79e523","versionType":"git"},{"lessThan":"800e6b3394f547085e79a7ae7f95d46425f10f40","status":"affected","version":"863d11b3927703ad95077c81a8a6489c5c7872f7","versionType":"git"},{"lessThan":"5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4","status":"affected","version":"c8a9a647532f5c2a04180352693215e24e9dba03","versionType":"git"},{"lessThan":"a38fdcb9c944525ca71e6aaf35e708586d0ae87d","status":"affected","version":"c8a9a647532f5c2a04180352693215e24e9dba03","versionType":"git"},{"status":"affected","version":"b5f5df801d161ba244f391519cbff2f4e5c6edc2","versionType":"git"},{"lessThan":"5.10.275","status":"affected","version":"5.10.258","versionType":"semver"},{"lessThan":"5.15.226","status":"affected","version":"5.15.209","versionType":"semver"},{"lessThan":"6.1.193","status":"affected","version":"6.1.175","versionType":"semver"},{"lessThan":"6.6.163","status":"affected","version":"6.6.140","versionType":"semver"},{"lessThan":"6.12.117","status":"affected","version":"6.12.86","versionType":"semver"},{"lessThan":"6.18.63","status":"affected","version":"6.18.27","versionType":"semver"},{"lessThan":"7.1","status":"affected","version":"7.0.4","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/crypto/atmel-tdes.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.1"},{"lessThan":"7.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.10.258","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.15.209","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"6.1.175","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6.140","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.12.86","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.18.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"7.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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()."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:27:01.189Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"crypto: atmel-tdes - sync output bounce buffer before DMA","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139008","datePublished":"2026-11-30T13:27:01.189Z","dateReserved":"2026-11-30T13:22:15.908Z","dateUpdated":"2026-11-30T13:27:01.189Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:03","lastModifiedDate":"2026-11-30 14:18:03","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139008","Ordinal":"1","Title":"crypto: atmel-tdes - sync output bounce buffer before DMA","CVE":"CVE-2026-139008","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139008","Ordinal":"1","NoteData":"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().","Type":"Description","Title":"crypto: atmel-tdes - sync output bounce buffer before DMA"}]}}}