CVE-2026-142913 (GCVE-0-2026-142913)

Vulnerability from cvelistv5 – Published: 2026-12-03 03:25 – Updated: 2026-12-04 03:25
VLAI
Title
ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE
Summary
In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE A PCM DMA buffer must remain allocated until explicit DMA synchronization finishes. snd_pcm_delay() calls snd_pcm_dma_buffer_sync() after dropping the stream lock, without participating in the buffer-access exclusion used by HW_FREE. With a managed NONCONTIG buffer requiring explicit sync, HW_PARAMS can allocate a separate runtime descriptor when the requested ring exceeds the preallocation. In PREPARED state with mmap_count zero, concurrent HWSYNC and HW_FREE calls on the same open PCM file can interleave: 1. HWSYNC checks the state in snd_pcm_delay() under the stream lock and releases that lock. 2. The sync helper fetches runtime->dma_buffer_p and enters snd_dma_noncontig_sync() with that descriptor. 3. HW_FREE takes the negative buffer-access count, checks PREPARED under the stream lock, releases the lock, and frees the DMA allocation and dynamic descriptor through snd_pcm_lib_free_pages(). 4. The sync callback resumes and reads the freed descriptor. The stream lock does not cover the allocation's release, and the sync operation has no positive buffer-access count to prevent it. The stale read causes a use-after-free in snd_dma_noncontig_sync(). DELAY uses the same snd_pcm_delay() path. Take a positive buffer-access count before checking the state and keep it until the DMA sync finishes, as the transfer and mmap paths already do. HW_FREE then returns -EBUSY while this access is active. If a buffer writer has already entered, snd_pcm_delay() returns -EBUSY before using the buffer. Keep the sync outside the stream lock and balance the count on the state-error path as well. KASAN report as below: BUG: KASAN: slab-use-after-free in snd_dma_noncontig_sync+0x295/0x310 [snd_pcm] Read of size 4 at addr ffff888108f58584 by task pcm-uaf-fixture/487 CPU: 1 UID: 0 PID: 487 Comm: pcm-uaf-fixture Not tainted 7.2.0-rc6-pmb-alsa-functional-v2+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm] ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20d/0x410 ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm] kasan_report+0xe0/0x110 ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm] ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm] snd_dma_noncontig_sync+0x295/0x310 [snd_pcm] ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm] snd_dma_buffer_sync+0xc9/0x110 [snd_pcm] snd_pcm_delay+0x3bd/0x550 [snd_pcm] snd_pcm_common_ioctl+0x1e7/0x3aa0 [snd_pcm] ? srso_alias_return_thunk+0x5/0xfbef5 ? do_vfs_ioctl+0x1f5/0x1280 ? __pfx_do_vfs_ioctl+0x10/0x10 ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500 ? __pfx_snd_pcm_common_ioctl+0x10/0x10 [snd_pcm] ? srso_alias_return_thunk+0x5/0xfbef5 snd_pcm_ioctl+0x76/0xb0 [snd_pcm] ? __pfx_snd_pcm_ioctl+0x10/0x10 [snd_pcm] __x64_sys_ioctl+0x163/0x1d0 do_syscall_64+0x115/0x6a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1cae7ab91b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007ffe12d544f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1cae7ab91b RDX: 0000000000000000 RSI: 0000000000004122 RDI: 0000000000000003 RBP: 00000000000001ee R08: 0000000000000073 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000001 R14: 00005584f32b1398 R15: 00005584f32b2ce8 </TASK> Allocated by task 487: kasan_sa ---truncated---
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8648 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a25684a956468ee8bbbee44649e41e5d447e5adc , < eb86ea542ca2cac9831dbed4dc8952adb1683302 (git)
Affected: a25684a956468ee8bbbee44649e41e5d447e5adc , < d34c692c6449f8db73c5b41edba70ecbab75c91f (git)
Affected: a25684a956468ee8bbbee44649e41e5d447e5adc , < f27800a99e825cb642f32d9690c3772830e47a4d (git)
Affected: a25684a956468ee8bbbee44649e41e5d447e5adc , < 50f413b83b31ea8d8ee4276165ab95ed5ab0e10f (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.16
Unaffected: 0 , < 5.16 (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "sound/core/pcm_native.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "eb86ea542ca2cac9831dbed4dc8952adb1683302",
              "status": "affected",
              "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
              "versionType": "git"
            },
            {
              "lessThan": "d34c692c6449f8db73c5b41edba70ecbab75c91f",
              "status": "affected",
              "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
              "versionType": "git"
            },
            {
              "lessThan": "f27800a99e825cb642f32d9690c3772830e47a4d",
              "status": "affected",
              "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
              "versionType": "git"
            },
            {
              "lessThan": "50f413b83b31ea8d8ee4276165ab95ed5ab0e10f",
              "status": "affected",
              "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "sound/core/pcm_native.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "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": "6.12.119",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Protect delay DMA sync against concurrent HW_FREE\n\nA PCM DMA buffer must remain allocated until explicit DMA synchronization\nfinishes. snd_pcm_delay() calls snd_pcm_dma_buffer_sync() after dropping\nthe stream lock, without participating in the buffer-access exclusion\nused by HW_FREE.\n\nWith a managed NONCONTIG buffer requiring explicit sync, HW_PARAMS can\nallocate a separate runtime descriptor when the requested ring exceeds\nthe preallocation. In PREPARED state with mmap_count zero, concurrent\nHWSYNC and HW_FREE calls on the same open PCM file can interleave:\n\n1. HWSYNC checks the state in snd_pcm_delay() under the stream lock and\n   releases that lock.\n2. The sync helper fetches runtime-\u003edma_buffer_p and enters\n   snd_dma_noncontig_sync() with that descriptor.\n3. HW_FREE takes the negative buffer-access count, checks PREPARED under\n   the stream lock, releases the lock, and frees the DMA allocation and\n   dynamic descriptor through snd_pcm_lib_free_pages().\n4. The sync callback resumes and reads the freed descriptor.\n\nThe stream lock does not cover the allocation\u0027s release, and the sync\noperation has no positive buffer-access count to prevent it. The stale\nread causes a use-after-free in snd_dma_noncontig_sync(). DELAY uses the\nsame snd_pcm_delay() path.\n\nTake a positive buffer-access count before checking the state and keep it\nuntil the DMA sync finishes, as the transfer and mmap paths already do.\nHW_FREE then returns -EBUSY while this access is active. If a buffer\nwriter has already entered, snd_pcm_delay() returns -EBUSY before using\nthe buffer. Keep the sync outside the stream lock and balance the count\non the state-error path as well.\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n    Read of size 4 at addr ffff888108f58584 by task pcm-uaf-fixture/487\n\n    CPU: 1 UID: 0 PID: 487 Comm: pcm-uaf-fixture Not tainted 7.2.0-rc6-pmb-alsa-functional-v2+ #1 PREEMPT(lazy)\n    Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    Call Trace:\n     \u003cTASK\u003e\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     kasan_report+0xe0/0x110\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm]\n     snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm]\n     snd_dma_buffer_sync+0xc9/0x110 [snd_pcm]\n     snd_pcm_delay+0x3bd/0x550 [snd_pcm]\n     snd_pcm_common_ioctl+0x1e7/0x3aa0 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? do_vfs_ioctl+0x1f5/0x1280\n     ? __pfx_do_vfs_ioctl+0x10/0x10\n     ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500\n     ? __pfx_snd_pcm_common_ioctl+0x10/0x10 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     snd_pcm_ioctl+0x76/0xb0 [snd_pcm]\n     ? __pfx_snd_pcm_ioctl+0x10/0x10 [snd_pcm]\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x7f1cae7ab91b\n    Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 \u003c89\u003e c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00\n    RSP: 002b:00007ffe12d544f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1cae7ab91b\n    RDX: 0000000000000000 RSI: 0000000000004122 RDI: 0000000000000003\n    RBP: 00000000000001ee R08: 0000000000000073 R09: 00000000ffffffff\n    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003\n    R13: 0000000000000001 R14: 00005584f32b1398 R15: 00005584f32b2ce8\n     \u003c/TASK\u003e\n\n    Allocated by task 487:\n     kasan_sa\n---truncated---"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - snd_pcm_playback_open and snd_pcm_capture_open reach snd_pcm_ioctl; SNDRV_PCM_IOCTL_DELAY and SNDRV_PCM_IOCTL_HWSYNC (via snd_pcm_hwsync) call snd_pcm_delay. The object freed by the concurrent SNDRV_PCM_IOCTL_HW_FREE is the local runtime snd_dma_buffer from snd_pcm_lib_malloc_pages on that same fd.\nAC:H - snd_pcm_delay calls snd_pcm_dma_buffer_sync only when SNDRV_PCM_INFO_EXPLICIT_SYNC is set, which snd_pcm_open_substream sets only after snd_dma_noncontig_alloc or snd_dma_noncoherent_alloc sets need_sync. snd_pcm_lib_free_pages kfrees a descriptor only when it is not \u0026substream-\u003edma_buffer; lpass_platform_pcm_new keeps a fixed embedded buffer, and no in-tree driver selects SNDRV_DMA_TYPE_NONCONTIG, so the attacker cannot produce that object.\nPR:L - snd_pcm_common_ioctl dispatches SNDRV_PCM_IOCTL_HW_PARAMS, SNDRV_PCM_IOCTL_DELAY, SNDRV_PCM_IOCTL_HWSYNC, and SNDRV_PCM_IOCTL_HW_FREE with no capable() check. A local user who can open the pcmC*D* device node reaches snd_pcm_delay.\nUI:N - The attacker opens the PCM fd and issues SNDRV_PCM_IOCTL_HW_PARAMS, which leaves SNDRV_PCM_STATE_SETUP, then races SNDRV_PCM_IOCTL_DELAY or SNDRV_PCM_IOCTL_HWSYNC against SNDRV_PCM_IOCTL_HW_FREE. snd_pcm_delay still calls snd_pcm_dma_buffer_sync when do_pcm_hwsync returns -EBADFD in SETUP.\nS:U - The use-after-free stays inside the host kernel: snd_pcm_hw_free frees a runtime snd_dma_buffer and snd_dma_noncontig_sync consumes it in that same kernel address space.\nC:H - After snd_pcm_lib_free_pages kfrees the kzalloc\u0027d snd_dma_buffer, snd_dma_noncontig_sync reads dev.dir plus area, bytes, and private_data. Reclaiming that kmalloc-64 slab lets the attacker choose the sg_table that dma_sync_sgtable_for_cpu walks.\nI:H - On SNDRV_DMA_SYNC_CPU, snd_dma_noncontig_sync passes the reclaimed descriptor to invalidate_kernel_vmap_range(dmab-\u003earea, dmab-\u003ebytes) and dma_sync_sgtable_for_cpu(dmab-\u003edev.dev, dmab-\u003eprivate_data, dmab-\u003edev.dir). A sprayed dev.dir of DMA_FROM_DEVICE or DMA_BIDIRECTIONAL passes the DMA_TO_DEVICE early return and selects which kernel addresses those syncs modify.\nA:H - snd_pcm_hw_free can drop the descriptor while snd_pcm_delay is still inside snd_dma_noncontig_sync. A freed dev.dir then hits BUG_ON(!valid_dma_direction(dir)) in __dma_sync_sg_for_cpu and panics the kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-04T03:25:57.468Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/eb86ea542ca2cac9831dbed4dc8952adb1683302"
        },
        {
          "url": "https://git.kernel.org/stable/c/d34c692c6449f8db73c5b41edba70ecbab75c91f"
        },
        {
          "url": "https://git.kernel.org/stable/c/f27800a99e825cb642f32d9690c3772830e47a4d"
        },
        {
          "url": "https://git.kernel.org/stable/c/50f413b83b31ea8d8ee4276165ab95ed5ab0e10f"
        }
      ],
      "title": "ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-142913",
    "datePublished": "2026-12-03T03:25:55.600Z",
    "dateReserved": "2026-12-03T03:10:28.337Z",
    "dateUpdated": "2026-12-04T03:25:57.468Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-142913",
      "date": "2026-12-04",
      "epss": "0.00272",
      "percentile": "0.20842"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-04T01:05:18.000Z",
      "cve": "CVE-2026-142913",
      "id": "msrc_CVE-2026-142913",
      "initial_release_date": "2026-12-03T18:58:40.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "ALSA: pcm: Protect delay DMA sync against concurrent HW_FREE",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-142913.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "sound/core/pcm_native.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "eb86ea542ca2cac9831dbed4dc8952adb1683302",
                    "status": "affected",
                    "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d34c692c6449f8db73c5b41edba70ecbab75c91f",
                    "status": "affected",
                    "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f27800a99e825cb642f32d9690c3772830e47a4d",
                    "status": "affected",
                    "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "50f413b83b31ea8d8ee4276165ab95ed5ab0e10f",
                    "status": "affected",
                    "version": "a25684a956468ee8bbbee44649e41e5d447e5adc",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "sound/core/pcm_native.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.16"
                  },
                  {
                    "lessThan": "5.16",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Protect delay DMA sync against concurrent HW_FREE\n\nA PCM DMA buffer must remain allocated until explicit DMA synchronization\nfinishes. snd_pcm_delay() calls snd_pcm_dma_buffer_sync() after dropping\nthe stream lock, without participating in the buffer-access exclusion\nused by HW_FREE.\n\nWith a managed NONCONTIG buffer requiring explicit sync, HW_PARAMS can\nallocate a separate runtime descriptor when the requested ring exceeds\nthe preallocation. In PREPARED state with mmap_count zero, concurrent\nHWSYNC and HW_FREE calls on the same open PCM file can interleave:\n\n1. HWSYNC checks the state in snd_pcm_delay() under the stream lock and\n   releases that lock.\n2. The sync helper fetches runtime-\u003edma_buffer_p and enters\n   snd_dma_noncontig_sync() with that descriptor.\n3. HW_FREE takes the negative buffer-access count, checks PREPARED under\n   the stream lock, releases the lock, and frees the DMA allocation and\n   dynamic descriptor through snd_pcm_lib_free_pages().\n4. The sync callback resumes and reads the freed descriptor.\n\nThe stream lock does not cover the allocation\u0027s release, and the sync\noperation has no positive buffer-access count to prevent it. The stale\nread causes a use-after-free in snd_dma_noncontig_sync(). DELAY uses the\nsame snd_pcm_delay() path.\n\nTake a positive buffer-access count before checking the state and keep it\nuntil the DMA sync finishes, as the transfer and mmap paths already do.\nHW_FREE then returns -EBUSY while this access is active. If a buffer\nwriter has already entered, snd_pcm_delay() returns -EBUSY before using\nthe buffer. Keep the sync outside the stream lock and balance the count\non the state-error path as well.\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n    Read of size 4 at addr ffff888108f58584 by task pcm-uaf-fixture/487\n\n    CPU: 1 UID: 0 PID: 487 Comm: pcm-uaf-fixture Not tainted 7.2.0-rc6-pmb-alsa-functional-v2+ #1 PREEMPT(lazy)\n    Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    Call Trace:\n     \u003cTASK\u003e\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     kasan_report+0xe0/0x110\n     ? snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm]\n     snd_dma_noncontig_sync+0x295/0x310 [snd_pcm]\n     ? __pfx_snd_dma_noncontig_sync+0x10/0x10 [snd_pcm]\n     snd_dma_buffer_sync+0xc9/0x110 [snd_pcm]\n     snd_pcm_delay+0x3bd/0x550 [snd_pcm]\n     snd_pcm_common_ioctl+0x1e7/0x3aa0 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? do_vfs_ioctl+0x1f5/0x1280\n     ? __pfx_do_vfs_ioctl+0x10/0x10\n     ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500\n     ? __pfx_snd_pcm_common_ioctl+0x10/0x10 [snd_pcm]\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     snd_pcm_ioctl+0x76/0xb0 [snd_pcm]\n     ? __pfx_snd_pcm_ioctl+0x10/0x10 [snd_pcm]\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x7f1cae7ab91b\n    Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 \u003c89\u003e c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00\n    RSP: 002b:00007ffe12d544f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1cae7ab91b\n    RDX: 0000000000000000 RSI: 0000000000004122 RDI: 0000000000000003\n    RBP: 00000000000001ee R08: 0000000000000073 R09: 00000000ffffffff\n    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003\n    R13: 0000000000000001 R14: 00005584f32b1398 R15: 00005584f32b2ce8\n     \u003c/TASK\u003e\n\n    Allocated by task 487:\n     kasan_sa\n---truncated---"
          }
        ],
        "id": "CVE-2026-142913",
        "lastModified": "2026-12-04T04:17:30.440",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.0,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.0,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-12-03T04:18:31.233",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/50f413b83b31ea8d8ee4276165ab95ed5ab0e10f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d34c692c6449f8db73c5b41edba70ecbab75c91f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/eb86ea542ca2cac9831dbed4dc8952adb1683302"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f27800a99e825cb642f32d9690c3772830e47a4d"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-04T16:55:39+00:00",
      "cve": "CVE-2026-142913",
      "id": "CVE-2026-142913",
      "initial_release_date": "2026-12-03T03:25:55.600000+00:00",
      "product_status:known_affected": "238",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via use-after-free in ALSA PCM subsystem",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-142913.json",
      "version": "3"
    }
  }
}



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.