GHSA-M227-6RQ5-XH48
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: Unlink substreams before releasing them
A closing PCM substream can remain in its linked group after the driver close callback has freed its private data. With two configured dummy capture substreams on the same PCM device, linked with LINK, PREPARE on the surviving substream can still visit the closing member:
Final close of A PREPARE on linked B ---------------- ------------------- snd_pcm_drop(): group -> SETUP do_hw_free(A) dummy_pcm_close(A): free dpcm Take snd_pcm_link_rwsem for reading Walk the group, including A dummy_pcm_prepare(A) Read freed timer_ops pcm_release_private(A) snd_pcm_unlink(A)
Unlink at the start of final substream release, before dropping the stream or releasing driver resources. The link write lock waits for an existing group PREPARE, and unlink removes the closing member from later group actions. Keep the existing stop synchronization in do_hw_free() before the driver resources are freed.
Make unlink independent of the pcm_release callback so OSS substreams are covered too. Remove the native-only unlink callback and its registration, while retaining the callback hook for OSS cleanup.
The existing KASAN report below records the freed timer_ops read in dummy_pcm_prepare().
KASAN report as below:
BUG: KASAN: slab-use-after-free in dummy_pcm_prepare+0xb7/0xc0
Read of size 8 at addr ffff888106b35f00 by task alsa_pcm_fixtur/491
Call Trace:
<TASK>
dump_stack_lvl+0x93/0xd0
print_report+0xce/0x630
? dummy_pcm_prepare+0xb7/0xc0
? srso_alias_return_thunk+0x5/0xfbef5
? __virt_addr_valid+0x20d/0x410
? dummy_pcm_prepare+0xb7/0xc0
kasan_report+0xe0/0x110
? dummy_pcm_prepare+0xb7/0xc0
dummy_pcm_prepare+0xb7/0xc0
snd_pcm_do_prepare+0x71/0xb0
snd_pcm_action_group+0x505/0xb30
snd_pcm_action_nonatomic+0xab/0x150
snd_pcm_common_ioctl+0x1bf5/0x3a50
? 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
? __fput+0x5ba/0xa60
? srso_alias_return_thunk+0x5/0xfbef5
snd_pcm_ioctl+0x76/0xb0
? __pfx_snd_pcm_ioctl+0x10/0x10
__x64_sys_ioctl+0x163/0x1d0
do_syscall_64+0x115/0x6a0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x41ee8d
Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
RSP: 002b:00007ffcfa72fb60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000041ee8d
RDX: 0000000000000000 RSI: 0000000000004140 RDI: 0000000000000004
RBP: 00007ffcfa72fbb0 R08: 00007ffcfa72fb98 R09: 0000000000000110
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfa72fcd8
R13: 00007ffcfa72fcf0 R14: 00000000004a8f28 R15: 0000000000000001
</TASK>
Allocated by task 488:
kasan_save_stack+0x33/0x60
kasan_save_track+0x14/0x30
__kasan_kmalloc+0xaa/0xb0
__kmalloc_cache_noprof+0x251/0x610
dummy_hrtimer_create+0x4a/0x170
dummy_pcm_open+0xe7/0x730
snd_pcm_open_substream+0x926/0x1580
snd_pcm_open+0x28d/0x6d0
snd_pcm_capture_open+0x82/0xe0
snd_open+0x1ec/0x3e0
chrdev_open+0x21f/0x660
do_dentry_open+0x5c8/0x1300
vfs_open+0x87/0x390
path_openat+0x2460/0x3cd0
do_file_open+0x21e/0x470
do_sys_openat2+0xf4/0x1b0
__x64_sys_openat+0x136/0x1e0
do_syscall_64+0x115/0x6a0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 490:
kasan_save_stack+0x33/0
---truncated---
{
"affected": [],
"aliases": [
"CVE-2026-139384"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:19:05Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Unlink substreams before releasing them\n\nA closing PCM substream can remain in its linked group after the\ndriver close callback has freed its private data. With two configured\ndummy capture substreams on the same PCM device, linked with LINK,\nPREPARE on the surviving substream can still visit the closing member:\n\n Final close of A PREPARE on linked B\n ---------------- -------------------\n snd_pcm_drop(): group -\u003e SETUP\n do_hw_free(A)\n dummy_pcm_close(A): free dpcm\n Take snd_pcm_link_rwsem for reading\n Walk the group, including A\n dummy_pcm_prepare(A)\n Read freed timer_ops\n pcm_release_private(A)\n snd_pcm_unlink(A)\n\nUnlink at the start of final substream release, before dropping the\nstream or releasing driver resources. The link write lock waits for\nan existing group PREPARE, and unlink removes the closing member from\nlater group actions. Keep the existing stop synchronization in\ndo_hw_free() before the driver resources are freed.\n\nMake unlink independent of the pcm_release callback so OSS substreams\nare covered too. Remove the native-only unlink callback and its\nregistration, while retaining the callback hook for OSS cleanup.\n\nThe existing KASAN report below records the freed timer_ops read in\ndummy_pcm_prepare().\n\nKASAN report as below:\n\n BUG: KASAN: slab-use-after-free in dummy_pcm_prepare+0xb7/0xc0\n Read of size 8 at addr ffff888106b35f00 by task alsa_pcm_fixtur/491\n\n Call Trace:\n \u003cTASK\u003e\n dump_stack_lvl+0x93/0xd0\n print_report+0xce/0x630\n ? dummy_pcm_prepare+0xb7/0xc0\n ? srso_alias_return_thunk+0x5/0xfbef5\n ? __virt_addr_valid+0x20d/0x410\n ? dummy_pcm_prepare+0xb7/0xc0\n kasan_report+0xe0/0x110\n ? dummy_pcm_prepare+0xb7/0xc0\n dummy_pcm_prepare+0xb7/0xc0\n snd_pcm_do_prepare+0x71/0xb0\n snd_pcm_action_group+0x505/0xb30\n snd_pcm_action_nonatomic+0xab/0x150\n snd_pcm_common_ioctl+0x1bf5/0x3a50\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\n ? __fput+0x5ba/0xa60\n ? srso_alias_return_thunk+0x5/0xfbef5\n snd_pcm_ioctl+0x76/0xb0\n ? __pfx_snd_pcm_ioctl+0x10/0x10\n __x64_sys_ioctl+0x163/0x1d0\n do_syscall_64+0x115/0x6a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n RIP: 0033:0x41ee8d\n Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 \u003c89\u003e c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00\n RSP: 002b:00007ffcfa72fb60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000041ee8d\n RDX: 0000000000000000 RSI: 0000000000004140 RDI: 0000000000000004\n RBP: 00007ffcfa72fbb0 R08: 00007ffcfa72fb98 R09: 0000000000000110\n R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfa72fcd8\n R13: 00007ffcfa72fcf0 R14: 00000000004a8f28 R15: 0000000000000001\n \u003c/TASK\u003e\n\n Allocated by task 488:\n kasan_save_stack+0x33/0x60\n kasan_save_track+0x14/0x30\n __kasan_kmalloc+0xaa/0xb0\n __kmalloc_cache_noprof+0x251/0x610\n dummy_hrtimer_create+0x4a/0x170\n dummy_pcm_open+0xe7/0x730\n snd_pcm_open_substream+0x926/0x1580\n snd_pcm_open+0x28d/0x6d0\n snd_pcm_capture_open+0x82/0xe0\n snd_open+0x1ec/0x3e0\n chrdev_open+0x21f/0x660\n do_dentry_open+0x5c8/0x1300\n vfs_open+0x87/0x390\n path_openat+0x2460/0x3cd0\n do_file_open+0x21e/0x470\n do_sys_openat2+0xf4/0x1b0\n __x64_sys_openat+0x136/0x1e0\n do_syscall_64+0x115/0x6a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n Freed by task 490:\n kasan_save_stack+0x33/0\n---truncated---",
"id": "GHSA-m227-6rq5-xh48",
"modified": "2026-12-01T06:31:24Z",
"published": "2026-11-30T15:32:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139384"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/00f5db92d9e949cf28db557bc769e3d6245f1b27"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/130569846c6b01d805543639efc3317b983d6df0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/43c1f6f436068f4513c2a82939470954e466aeca"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ac38ef8274d07329afe427aa5a9cdaa65a136293"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b801d565cf60ce9d439db12b2ccd0b098c8cfd4d"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/bf3ef3f1610b59e13c3df322879f7cc16f545376"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f6b2626d142bb17df3469c7406ebd8e1c04ec309"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
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.
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
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.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.