{"id":"CVE-2026-74502","summary":"ALSA: ump: fix double free of out_cvts on rawmidi error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: ump: fix double free of out_cvts on rawmidi error\n\nsnd_ump_attach_legacy_rawmidi() allocates the legacy conversion array\nump-\u003eout_cvts and, on the snd_rawmidi_new() error path, frees it with\nkfree() but leaves ump-\u003eout_cvts pointing at the freed memory.  When the\nendpoint is later torn down, snd_ump_endpoint_free() frees ump-\u003eout_cvts\na second time, resulting in a double free.\n\nThe host snd-usb-audio driver attaches the legacy rawmidi for any USB\nMIDI 2.0 (UMP) device, so a device that makes snd_rawmidi_new() fail\nreaches this path on enumeration.\n\nClear ump-\u003eout_cvts after freeing it on the error path so it is not\nfreed again during teardown.\n\nDiscovered by XBOW, triaged by Baul Lee \u003cbaul.lee@xbow.com\u003e","modified":"2026-08-17T03:54:57.739330474Z","published":"2026-08-15T12:27:27.586Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74502.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/032746c2dd9a4ea0774b04ac8a29e2ea628f106e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3302aaeac4f7ee6b775850db21d5f61064ce70ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70c977815af0d997feb2d0c5d284d55689bf7051"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c57001f55f97ef856fb6527e376c5c4a056a53a4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e84d2e53a05c78a04d1343eeb0f31a79456e79fc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74502.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74502"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"33cd7630782df2230529c3e8f1a6d0ae9cd6ab49"},{"fixed":"e84d2e53a05c78a04d1343eeb0f31a79456e79fc"},{"fixed":"3302aaeac4f7ee6b775850db21d5f61064ce70ad"},{"fixed":"032746c2dd9a4ea0774b04ac8a29e2ea628f106e"},{"fixed":"c57001f55f97ef856fb6527e376c5c4a056a53a4"},{"fixed":"70c977815af0d997feb2d0c5d284d55689bf7051"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74502.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.5.0"},{"fixed":"6.6.151"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.103"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74502.json"}}],"schema_version":"1.9.0"}