{"id":"CVE-2026-74501","aliases":["CVE-2026-74501"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: usb-audio: fix use-after-free in ump_to_endpoint()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: fix use-after-free in ump_to_endpoint()\n\ncreate_midi2_ump() registers a card-owned snd_ump_endpoint and stores a\nback-pointer to its per-interface snd_usb_midi2_ump object in\nump->private_data, but it never installs an ump->private_free hook and\nnever clears that pointer.\n\nIf a later step of snd_usb_midi_v2_create() fails, its error path calls\nfree_all_midi2_umps(), which kfree()s the snd_usb_midi2_ump object while\nthe already-registered endpoint keeps pointing at it.  The created\n/dev/snd/umpC*D* node stays exposed, so the first operation of any UMP\nopen, ump_to_endpoint(), dereferences the dangling ump->private_data and\nreads rmidi->eps[dir] out of freed memory.\n\nA malicious USB MIDI 2.0 device that makes creation fail after the\nendpoint is registered can thus trigger a slab use-after-free read on a\nsubsequent open of the UMP node.\n\nClear the endpoint's back-pointer before freeing the object, and let\nump_to_endpoint() tolerate a NULL private_data so the open/close/trigger\ncallbacks fail cleanly (their callers already handle a NULL endpoint)\ninstead of dereferencing a stale pointer.\n\nDiscovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: fix use-after-free in ump_to_endpoint()\n\ncreate_midi2_ump() registers a card-owned snd_ump_endpoint and stores a\nback-pointer to its per-interface snd_usb_midi2_ump object in\nump->private_data, but it never installs an ump->private_free hook and\nnever clears that pointer.\n\nIf a later step of snd_usb_midi_v2_create() fails, its error path calls\nfree_all_midi2_umps(), which kfree()s the snd_usb_midi2_ump object while\nthe already-registered endpoint keeps pointing at it.  The created\n/dev/snd/umpC*D* node stays exposed, so the first operation of any UMP\nopen, ump_to_endpoint(), dereferences the dangling ump->private_data and\nreads rmidi->eps[dir] out of freed memory.\n\nA malicious USB MIDI 2.0 device that makes creation fail after the\nendpoint is registered can thus trigger a slab use-after-free read on a\nsubsequent open of the UMP node.\n\nClear the endpoint's back-pointer before freeing the object, and let\nump_to_endpoint() tolerate a NULL private_data so the open/close/trigger\ncallbacks fail cleanly (their callers already handle a NULL endpoint)\ninstead of dereferencing a stale pointer.\n\nDiscovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>","source":"cvelist"}],"published":"2026-08-15T12:27:26.957Z","modified":"2026-08-17T06:19:46.547Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"49eccef6d6e1c00dac6fb2e7eb6f9206c33e1c37","status":"affected"},{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"8a7a33b846d6ba695891b8d0040027cdbad8cd52","status":"affected"},{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"cc014ebf803174f0e5d15956dfc5a38413c945ae","status":"affected"},{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"ae388c0e1bf727972096f770f82d12e4f748d1b6","status":"affected"},{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"4a05b2d1b4642df74f30b6f54843e825c4a2bfd3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/49eccef6d6e1c00dac6fb2e7eb6f9206c33e1c37","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a7a33b846d6ba695891b8d0040027cdbad8cd52","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc014ebf803174f0e5d15956dfc5a38413c945ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae388c0e1bf727972096f770f82d12e4f748d1b6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a05b2d1b4642df74f30b6f54843e825c4a2bfd3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74501","url":"https://www.cve.org/CVERecord?id=CVE-2026-74501","licence":"CVE Terms of Use","modified":"2026-08-17T05:20:39.729Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74501","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74501","licence":"Public domain","modified":"2026-08-17T06:19:46.547Z"}],"updatedAt":"2026-11-25T22:59:33.237Z","epss":{"score":0.00168,"percentile":0.06362,"date":"2026-12-01T12:00:22.000Z"}}