Skip to content
Heist/ feed
High

dmaengine: tegra-adma: Fix use-after-free

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: dmaengine: tegra-adma: Fix use-after-free A use-after-free bug exists in the Tegra ADMA driver when audio streams are terminated, particularly during XRUN conditions. The issue occurs when the DMA buffer is freed by tegra_adma_terminate_all() before the vchan completion tasklet finishes accessing it. The race condition follows this sequence: 1. DMA transfer completes, triggering an interrupt that schedules the completion tasklet (tasklet has not executed yet) 2. Audio playback stops, calling tegra_adma_terminate_all() which frees the DMA buffer memory via kfree() 3. The scheduled tasklet finally executes, calling vchan_complete() which attempts to access the already-freed memory Since tasklets can execute at any time after being scheduled, there is no guarantee that the buffer will remain valid when vchan_complete() runs. Fix this by properly synchronizing the virtual channel completion: - Calling vchan_terminate_vdesc() in tegra_adma_stop() to mark the descriptors as terminated instead of freeing the descriptor. - Add the callback tegra_adma_synchronize() that calls vchan_synchronize() which kills any pending tasklets and frees any terminated descriptors. Crash logs: [ 337.427523] BUG: KASAN: use-after-free in vchan_complete+0x124/0x3b0 [ 337.427544] Read of size 8 at addr ffff000132055428 by task swapper/0/0 [ 337.427562] Call trace: [ 337.427564] dump_backtrace+0x0/0x320 [ 337.427571] show_stack+0x20/0x30

Announced Group revision 1
Original source ↗

CVE-2025-71162

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-71162

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "5f8d1d66a952d0396671e1f21ff8127a4d14fb4e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "76992310f80776b4d1f7f8915f59b92883a3e44c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "ae3eed72de682ddbba507ed2d6b848c21a6b721e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "59cb421b0902fbef2b9512ae8ba198a20f26b41f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "cb2c9c4bb1322cc3c9984ad17db8cdd2663879ca",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "be655c3736b3546f39bc8116ffbf2a3b6cac96c4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f46b195799b5cb05338e7c44cb3617eacb56d755",
        "lessThan": "2efd07a7c36949e6fa36a69183df24d368bf9e96",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/dma/tegra210-adma.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.249",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.199",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.162",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.122",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.67",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.7",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/dma/tegra210-adma.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-71162

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#27143 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement