GHSA-37J3-PJ38-4RW9

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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().

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139008"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:03Z",
    "severity": null
  },
  "details": "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().",
  "id": "GHSA-37j3-pj38-4rw9",
  "modified": "2026-11-30T15:32:13Z",
  "published": "2026-11-30T15:32:13Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139008"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1fc9128cc12bafd5ff1e9afa46f8afeafcf18c92"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/25d5042c1eb0436256ae52bf0631fa1b6034517e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3c7f3dda4a436a4c921a91f02ee599654d96edf3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5047bb843a03ea4cf4eb85fc7278fcfb7426a7c4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/722785790810f3fc1b8997ddff0fb17127265a47"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/800e6b3394f547085e79a7ae7f95d46425f10f40"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a38fdcb9c944525ca71e6aaf35e708586d0ae87d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f888c7db1681c136bb761c43964a2271c7a89c12"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.