CVE-2025-40344 (GCVE-0-2025-40344)
Vulnerability from cvelistv5
Published
2025-12-09 04:10
Modified
2026-08-05 12:09
Summary
In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: avs: Disable periods-elapsed work when closing PCM avs_dai_fe_shutdown() handles the shutdown procedure for HOST HDAudio stream while period-elapsed work services its IRQs. As the former frees the DAI's private context, these two operations shall be synchronized to avoid slab-use-after-free or worse errors.
Impacted products
Vendor Product Version
Linux Linux Version: 0dbb186c3510cad4e9f443e801bf2e6ab5770c00
Version: 0dbb186c3510cad4e9f443e801bf2e6ab5770c00
Version: 0dbb186c3510cad4e9f443e801bf2e6ab5770c00
Version: 31087af37d6b1586b76d4acf3e0c1634a4617ba6
Version: 6.11.9   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "sound/soc/intel/avs/pcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ca6d2b7aca778afbf8c0c4b330d10cb228c14052",
              "status": "affected",
              "version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
              "versionType": "git"
            },
            {
              "lessThan": "b41fca4aa60be896ba8a81b57aac5dcc6eee66c0",
              "status": "affected",
              "version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
              "versionType": "git"
            },
            {
              "lessThan": "845f716dc5f354c719f6fda35048b6c2eca99331",
              "status": "affected",
              "version": "0dbb186c3510cad4e9f443e801bf2e6ab5770c00",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "31087af37d6b1586b76d4acf3e0c1634a4617ba6",
              "versionType": "git"
            },
            {
              "lessThan": "6.12",
              "status": "affected",
              "version": "6.11.9",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "sound/soc/intel/avs/pcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.58",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.58",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.8",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.11.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: Intel: avs: Disable periods-elapsed work when closing PCM\n\navs_dai_fe_shutdown() handles the shutdown procedure for HOST HDAudio\nstream while period-elapsed work services its IRQs. As the former\nfrees the DAI\u0027s private context, these two operations shall be\nsynchronized to avoid slab-use-after-free or worse errors."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerability is reached only through ALSA PCM device nodes (`/dev/snd/pcmC*D*`) via open/ioctl/close syscalls on a machine with an Intel cAVS DSP audio controller. There is no remote or adjacent-network path to the FE DAI shutdown code.\nAC:L - The attacker controls both sides of the race \u2014 the period size (and thus the IRQ rate) via `hw_params`, the exact moment of `close()`, and the `system_wq` backlog that delays the pending `period_elapsed_work` \u2014 and the open/start/close sequence can be retried in an unbounded loop until the window is hit.\nPR:L - Only an unprivileged local account with access to the sound device is needed, which is the default for any desktop/seat user, `audio`-group member, or Android media process; no capability or root check exists along `snd_pcm_open` \u2192 `avs_dai_fe_startup` \u2192 `avs_dai_fe_shutdown`.\nUI:N - The attacking process performs the entire open/hw_params/prepare/start/close sequence itself; no action by another user or victim is required.\nS:U - The use-after-free corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The freed `avs_dma_data` can be reclaimed by an attacker-sprayed object, after which `avs_period_elapsed_work()` reads `data-\u003esubstream` and `snd_pcm_period_elapsed()` follows it into `runtime` \u2014 giving attacker-directed kernel reads and disclosure of arbitrary kernel memory.\nI:H - The `work_struct` itself lives in the freed allocation, so the workqueue writes list/`work-\u003edata` fields into reclaimed memory and dispatches through a freed `work-\u003efunc`, and the handler writes through the attacker-controlled `substream`/`runtime` pointers \u2014 a control-flow-hijack-capable write primitive.\nA:H - Even unweaponized, the slab use-after-free dereferences freed memory from workqueue context, reliably producing a KASAN splat, oops, or kernel panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:09:47.053Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ca6d2b7aca778afbf8c0c4b330d10cb228c14052"
        },
        {
          "url": "https://git.kernel.org/stable/c/b41fca4aa60be896ba8a81b57aac5dcc6eee66c0"
        },
        {
          "url": "https://git.kernel.org/stable/c/845f716dc5f354c719f6fda35048b6c2eca99331"
        }
      ],
      "title": "ASoC: Intel: avs: Disable periods-elapsed work when closing PCM",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40344",
    "datePublished": "2025-12-09T04:10:03.253Z",
    "dateReserved": "2025-04-16T07:20:57.187Z",
    "dateUpdated": "2026-08-05T12:09:47.053Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…