{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139416 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139416 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139416 and fix it if it is affected.\n\nWhat it is: CVE-2026-139416 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139416 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-139416/ (Markdown: https://insights.sbomify.com/CVE-2026-139416/index.md)","id":"CVE-2026-139416","markdown":"https://insights.sbomify.com/CVE-2026-139416/index.md","name":"CVE-2026-139416","record":{"aliases":["AZL-117115","BELL-CVE-2026-139416","DEBIAN-CVE-2026-139416","GHSA-pqp8-c3qm-2h3j","UBUNTU-CVE-2026-139416"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: rawmidi: Drain input work before freeing the runtime\n\nThe input runtime embeds event_work, so the work must be drained before\nclose_substream() frees the runtime. The cancellation in\nsnd_rawmidi_input_trigger() runs before close clears substream-\u003eopened,\nleaving a window for snd_rawmidi_receive() to enqueue more work.\n\nWith a sequencer subscription to a USB MIDI input port, an in-flight\ncompletion can overlap the last subscription's midisynth_unsubscribe():\n\n1. snd_usbmidi_input_data() observes input_triggered and is delayed\n   before calling snd_rawmidi_receive().\n2. Unsubscribe enters close_substream(), clears input_triggered through\n   the provider trigger callback and returns from cancel_work_sync().\n   The substream is still opened.\n3. The completion resumes. snd_rawmidi_receive() takes substream-\u003elock,\n   sees opened set and queues runtime-\u003eevent_work before dropping the\n   lock.\n4. Close clears opened under that lock, closes the provider and frees\n   the runtime. Stopping USB URBs does not drain the raw-MIDI work.\n5. The queued work runs and snd_rawmidi_input_event_work() reads event\n   or substream from the freed runtime, causing a use-after-free.\n\nCancel input event_work again after clearing opened, before closing the\nprovider or releasing the runtime's private data. Receive holds\nsubstream-\u003elock through its opened check and work enqueue, so once close\nhas cleared opened under that lock, no further receive can queue work.\nThe final cancellation therefore drains any late work before the\nruntime is freed. Keep it outside the spinlock so a running callback can\nfinish.","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: rawmidi: Drain input work before freeing the runtime","id":"CVE-2026-139416","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":"platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse","id":"CVE-2026-139417"},"nickname":null,"packages":[],"prev":{"headline":"RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses","id":"CVE-2026-139415"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139416/"}