cvelo
P4 · InfoEPSS 0.2%

crypto: atmel-tdes - sync output bounce buffer before DMA

  • CVE-2026-139008
  • GHSA-37j3-pj38-4rw9
  • EUVD-2026-138760

Description

Show the whole description

In the Linux kernel, the following vulnerability has been resolved: crypto: atmel-tdes - sync output bounce buffer before DMA The slow path maps its output bounce buffer once at probe time with dma_map_single() and DMA_FROM_DEVICE, then reuses the mapping for every request. After the CPU copies a result from the buffer, dma_sync_single_for_device() must hand the buffer back to the device before the next DMA transfer. The driver omits this call, so cache lines from the previous result can remain valid while the device writes the next one. This bug was masked by the completion paths calling dma_sync_single_for_device() immediately before the CPU copied the output, where dma_sync_single_for_cpu() was required. For DMA_FROM_DEVICE on ARM926, dma_sync_single_for_device() invokes arm926_dma_map_area(), which invalidates the cache lines. The misplaced call therefore discarded the stale lines before every copy-out. Commit c8a9a647532f ("crypto: atmel-tdes - fix DMA sync direction") correctly changed the completion paths to call dma_sync_single_for_cpu(). On ARM926, that function invokes arm926_dma_unmap_area(), which is a no-op. The missing pre-DMA dma_sync_single_for_device() was therefore exposed on ARM926-based SAM9X60 and SAM9X7 SoCs. With CONFIG_CRYPTO_SELFTESTS=y all four DES/TDES algorithms fail on SAM9X75: alg: skcipher: atmel-ecb-tdes encryption test failed (wrong result) on test vector 2, cfg="unaligned buffer, offset=1" Call dma_sync_single_for_device() for the output buffer before starting DMA in both atmel_tdes_crypt_pdc() and atmel_tdes_crypt_dma().

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.18.xupdate to 6.18.63 or laterPatch update: breaking changes are unlikely
    • If you run 6.12.xupdate to 6.12.117 or laterPatch update: breaking changes are unlikely
    • If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.18.27 to before 6.18.636.18.63
    from 6.12.86 to before 6.12.1176.12.117
    from 6.6.140 to before 6.6.1636.6.163
    from 6.1.175 to before 6.1.1936.1.193
    from 5.15.209 to before 5.15.2265.15.226
    from 5.10.258 to before 5.10.2755.10.275
    from 7.0.4 to before 7.1none stated
    7.1none stated

    and 9 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.