GHSA-G426-VXX7-6V22
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: Add refcount for races between drain and unlink
We added a workaround for the case where a linked substream gets unlinked during the drain operation by another substream of the same linked group in the commit 9b1dbd69ba6f ("ALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()"). There, we just cached the parameters of the draining substream for avoiding UAF.
Then, we check the draining substream (to_check) again in the loop and remove it from the queue only when it's still present. It means, however, that the wait queue entry won't be removed if the substream went out of the link beforehand, hence a stale wq entry remains. Later on, this can be woken up, and this may hit a UAF, too. The problem surfaced more due to the recent change to call snd_pcm_unlink() earlier.
For properly handling both cases above, in this patch, we introduce a refcount to the snd_pcm_runtime that indicates the substream is being accessed / used, then at snd_pcm_release_substream(), it's synced before the actual resource release via snd_refcount_sync(). This guarantees that the accessors are finished, and safe to release memories. Along with the introduction of a refcount, the comments and the code changes by the former fix were partially reverted as they don't fit with the updated code flow any longer.
Last but not least, the setup of wait queue entry and prepare_to_wait() call are moved before the group unref. With this change, we can avoid the race between the enqueue and the wakeup, too.
{
"affected": [],
"aliases": [
"CVE-2026-139361"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:19:02Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Add refcount for races between drain and unlink\n\nWe added a workaround for the case where a linked substream gets\nunlinked during the drain operation by another substream of the same\nlinked group in the commit 9b1dbd69ba6f (\"ALSA: pcm: fix\nuse-after-free on linked stream runtime in snd_pcm_drain()\").\nThere, we just cached the parameters of the draining substream for\navoiding UAF.\n\nThen, we check the draining substream (to_check) again in the loop and\nremove it from the queue only when it\u0027s still present. It means,\nhowever, that the wait queue entry won\u0027t be removed if the substream\nwent out of the link beforehand, hence a stale wq entry remains.\nLater on, this can be woken up, and this may hit a UAF, too.\nThe problem surfaced more due to the recent change to call\nsnd_pcm_unlink() earlier.\n\nFor properly handling both cases above, in this patch, we introduce a\nrefcount to the snd_pcm_runtime that indicates the substream is being\naccessed / used, then at snd_pcm_release_substream(), it\u0027s synced\nbefore the actual resource release via snd_refcount_sync(). This\nguarantees that the accessors are finished, and safe to release\nmemories. Along with the introduction of a refcount, the comments and\nthe code changes by the former fix were partially reverted as they\ndon\u0027t fit with the updated code flow any longer.\n\nLast but not least, the setup of wait queue entry and\nprepare_to_wait() call are moved before the group unref. With this\nchange, we can avoid the race between the enqueue and the wakeup, too.",
"id": "GHSA-g426-vxx7-6v22",
"modified": "2026-12-01T06:31:23Z",
"published": "2026-11-30T15:32:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139361"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/220edbb1806a43a45e9f51a6cc68c54d58c583ee"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/68273cb3c8e115b1886ddb4bdf30dd91af1a9e62"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7131b6e1cab439eae7bf4ed37857183e84268b5b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7d8afac865e73648bae36075b829d5bc4dd32f4e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/91d0048a97e0fdc0a071caa0ba59e659bc6f84df"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/bac6a5a3c96237c025086b885d31a3485a3204d9"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/bf052a1fb6507ccb6aea53b12db98f0976f8872d"
}
],
"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.