{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139361 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139361 is a high-severity vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139361 and fix it if it is affected.\n\nWhat it is: CVE-2026-139361 is a high-severity vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139361 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139361/ (Markdown: https://insights.sbomify.com/CVE-2026-139361/index.md)","id":"CVE-2026-139361","markdown":"https://insights.sbomify.com/CVE-2026-139361/index.md","name":"CVE-2026-139361","record":{"aliases":["AZL-117466","BELL-CVE-2026-139361","DEBIAN-CVE-2026-139361","GHSA-g426-vxx7-6v22","UBUNTU-CVE-2026-139361"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"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's still present.  It means,\nhowever, that the wait queue entry won't 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's 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't 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ALSA: pcm: Add refcount for races between drain and unlink","id":"CVE-2026-139361","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":7,"n_vendor_status":0,"next":{"headline":"irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity()","id":"CVE-2026-139362"},"nickname":null,"packages":[],"prev":{"headline":"spi: omap2-mcspi: handle DMA setup failures","id":"CVE-2026-139360"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-12-01","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139361/"}