Description
In the Linux kernel before 4.16.4, a double free vulnerability in the f_midi_set_alt function of drivers/usb/gadget/function/f_midi.c in the f_midi driver may allow attackers to cause a denial of service or possibly have unspecified other impact.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 4.16.5-1 | — |
| Debian 13 | linux | 4.16.5-1 | — |
| Debian 12 | linux | 4.16.5-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +2 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +3 | No fix yet | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-24.26 | — |
| Ubuntu 18.04 LTS | linux-gcp | 4.15.0-1010.10 | — |
| Ubuntu 18.04 LTS | linux-oem | 4.15.0-1009.12 | — |
| Ubuntu 18.04 LTS | linux-raspi2 | 4.15.0-1013.14 | — |
| Ubuntu 18.04 LTS | linux-snapdragon | 4.15.0-1053.57 | — |
| Ubuntu 16.04 LTS | linux | 4.4.0-165.193 | USN-4145-1 |
| Ubuntu 16.04 LTS | linux-aws | 4.4.0-1095.106 | USN-4145-1 |
| Ubuntu 16.04 LTS | linux-gcp | 4.15.0-1014.14~16.04.1 | — |
| Ubuntu 16.04 LTS | linux-hwe | 4.15.0-24.26~16.04.1 | — |
| Ubuntu 16.04 LTS | linux-kvm | 4.4.0-1059.66 | USN-4145-1 |
| Ubuntu 16.04 LTS | linux-raspi2 | 4.4.0-1123.132 | USN-4145-1 |
| Ubuntu 16.04 LTS | linux-snapdragon | 4.4.0-1127.135 | USN-4145-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | 4.4.0-1022.27 | — |
| Ubuntu Pro 14.04 LTS | linux-aws | 4.4.0-1055.59 | — |
| Ubuntu Pro 14.04 LTS | linux-lts-xenial | 4.4.0-165.193~14.04.1 | — |
Advisories 1
- USN-4145-1 linux, linux-aws, linux-kvm, linux-raspi2, linux-snapdragon vulnerabilities Ubuntu Security Notices (USN) · Sep 7, 2026
References
- https://github.com/torvalds/linux/commit/7fafcfdf6377b18b2a726ea554d6e593ba44349f
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7fafcfdf6377b18b2a726ea554d6e593ba44349f
- https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.16.4
- 20190826 [slackware-security] Slackware 14.2 kernel (SSA:2019-238-01) mailing-list
- http://packetstormsecurity.com/files/154228/Slackware-Security-Advisory-Slackware-14.2-kernel-Updates.html
- https://support.f5.com/csp/article/K58502654
- https://security.netapp.com/advisory/ntap-20190905-0002/
- USN-4145-1 vendor-advisory
- https://support.f5.com/csp/article/K58502654?utm_source=f5support&%3Butm_medium=RSS
- http://packetstormsecurity.com/files/154951/Kernel-Live-Patch-Security-Notice-LSN-0058-1.html