{"id":"CVE-2026-90021","aliases":["CVE-2026-90021"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_midi: initialize work in f_midi_alloc()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi: initialize work in f_midi_alloc()\n\nf_midi_alloc initializes free_ref to 1 and it can only be incremented\nwhen a sound card is registered via f_midi_register_card().\nf_midi_register_card() is only called in f_midi_bind() which actually\nperforms INIT_WORK. If f_midi_bind() is never run, work is not\ninitialized and the if condition in f_midi_free becomes true,\nthis results in a warning later in __flush_work as work->func = 0.\nFix this by moving INIT_WORK from f_midi_bind() to f_midi_alloc().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi: initialize work in f_midi_alloc()\n\nf_midi_alloc initializes free_ref to 1 and it can only be incremented\nwhen a sound card is registered via f_midi_register_card().\nf_midi_register_card() is only called in f_midi_bind() which actually\nperforms INIT_WORK. If f_midi_bind() is never run, work is not\ninitialized and the if condition in f_midi_free becomes true,\nthis results in a warning later in __flush_work as work->func = 0.\nFix this by moving INIT_WORK from f_midi_bind() to f_midi_alloc().","source":"cvelist"}],"published":"2026-09-16T10:33:25.560Z","modified":"2026-10-30T13:20:39.007Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"c76e82b026a28c348e5d841922aa73db36eca1d3","status":"affected"},{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"13e9f5a91360952b9b5bbc2367fc29d4a4ff2824","status":"affected"},{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"3d8b11255e632170f32f1925bfcaf96331f36317","status":"affected"},{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"02ac76f27db23ef652358458c272d9d2d6f51167","status":"affected"},{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"858576de6b2f5166b08dae803f0fd0766dcb3002","status":"affected"},{"type":"git","introduced":"8653d71ce3763aedcf3d2331f59beda3fecd79e4","fixed":"7e07d3e4c389217d7d7171d80edf2e23ac70f1ea","status":"affected"},{"type":"git","version":"89019ab7a64fcdf98a2ba7799e5c6aff58d4a05d","status":"affected"},{"type":"git","version":"3635523e9b96213969693c320302d536774d8e9b","status":"affected"},{"type":"semver","introduced":"5.4.291","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.10.235","fixed":"5.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/c76e82b026a28c348e5d841922aa73db36eca1d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13e9f5a91360952b9b5bbc2367fc29d4a4ff2824","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d8b11255e632170f32f1925bfcaf96331f36317","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02ac76f27db23ef652358458c272d9d2d6f51167","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/858576de6b2f5166b08dae803f0fd0766dcb3002","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e07d3e4c389217d7d7171d80edf2e23ac70f1ea","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90021","url":"https://www.cve.org/CVERecord?id=CVE-2026-90021","licence":"CVE Terms of Use","modified":"2026-10-30T12:33:50.484Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90021","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90021","licence":"Public domain","modified":"2026-10-30T13:20:39.007Z"}],"updatedAt":"2026-11-25T22:59:39.017Z","epss":{"score":0.00221,"percentile":0.13518,"date":"2026-12-01T12:00:22.000Z"}}