Skip to content
OpenAdvisories

Description

A flaw was found in the Linux kernel’s implementation of MIDI, where an attacker with a local account and the permissions to issue ioctl commands to midi devices could trigger a use-after-free issue. A write to this specific memory while freed and before use causes the flow of execution to change and possibly allow for memory corruption or privilege escalation. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Affected products

VendorProductAffectedFixed
— kernel kernel 5.7-rc6 —

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.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.6.14-1 —
Debian 13 linux 5.6.14-1 —
Debian 12 linux 5.6.14-1 —
ReleasePackageFixed inAdvisory
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 5.4.0-40.44 —
Ubuntu 20.04 LTS linux-aws +1 5.4.0-1018.18 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1020.20 —
Ubuntu 20.04 LTS linux-gcp +1 5.4.0-1019.19 —
Ubuntu 20.04 LTS linux-gke +2 No fix yet —
Ubuntu 20.04 LTS linux-oem-5.6 5.6.0-1011.11 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1013.13 —
Ubuntu 20.04 LTS linux-riscv 5.4.0-28.32 —
Ubuntu 18.04 LTS linux 4.15.0-109.110 —
Ubuntu 18.04 LTS linux-aws 4.15.0-1077.81 —
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1091.101 —
Ubuntu 18.04 LTS linux-gcp +12 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1078.88 —
Ubuntu 18.04 LTS linux-gke-4.15 4.15.0-1064.67 —
Ubuntu 18.04 LTS linux-gke-5.0 5.0.0-1043.44 —
Ubuntu 18.04 LTS linux-gke-5.3 5.3.0-1030.32~18.04.1 —
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-40.44~18.04.1 —
Ubuntu 18.04 LTS linux-kvm 4.15.0-1069.70 —
Ubuntu 18.04 LTS linux-oem-osp1 5.0.0-1063.68 —
Ubuntu 18.04 LTS linux-oracle 4.15.0-1048.52 —
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1065.69 —
Ubuntu 18.04 LTS linux-raspi2-5.3 5.3.0-1028.30~18.04.2 —
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1081.88 —
Ubuntu 16.04 LTS linux 4.4.0-185.215 —
Ubuntu 16.04 LTS linux-aws 4.4.0-1110.121 —
Ubuntu 16.04 LTS linux-aws-hwe 4.15.0-1074.78~16.04.1 —
Ubuntu 16.04 LTS linux-azure 4.15.0-1091.101~16.04.1 —
Ubuntu 16.04 LTS linux-gcp 4.15.0-1078.88~16.04.1 —
Ubuntu 16.04 LTS linux-hwe 4.15.0-107.108~16.04.1 —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu 16.04 LTS linux-kvm 4.4.0-1076.83 —
Ubuntu 16.04 LTS linux-oracle 4.15.0-1046.50~16.04.1 —
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1135.144 —
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1139.147 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 18.04 LTS linux-aws-fips +2 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2022.22 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2006.7 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1035.40 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1042.47 —
Ubuntu Pro 20.04 LTS linux-azure-fde-5.15 5.15.0-1114.123~20.04.1 —
Ubuntu Pro 14.04 LTS linux No fix yet —
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1074.78 —
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1091.101~14.04.1 —
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-185.215~14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-305.rt7.72.el8 RHSA-2021:1739
RHEL 8 perf +26 4.18.0-305.el8 RHSA-2021:1578

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 kernel-tools-libs-devel 4.18.0-305.el8 ALSA-2021:1578
ReleasePackageFixed inAdvisory
SLES 15 SP2 kernel-azure +2 5.3.18-18.32.1 SUSE-SU-2021:0096-1
SLES 15 SP2 kernel-default-base 5.3.18-24.46.1.9.19.1 SUSE-SU-2021:0117-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.46.1 SUSE-SU-2021:0117-1
SLES 15 SP1 kernel-azure +2 4.12.14-8.58.1 SUSE-SU-2021:0097-1
SLES 15 SP1 kernel-docs +5 4.12.14-197.78.1 SUSE-SU-2021:0118-1
SLES 15 kernel-docs +6 4.12.14-150.66.1 SUSE-SU-2021:0438-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.41.1 SUSE-SU-2021:0098-1
SLES 12 SP5 kernel-docs +4 4.12.14-122.57.1 SUSE-SU-2021:0133-1
SLES 12 SP4 kernel-syms +2 4.12.14-95.68.1 SUSE-SU-2021:0434-1
Show 24 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_31 8-2.2 SUSE-SU-2021:0870-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_32 +2 7-2.2 SUSE-SU-2021:0870-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_35 6-2.2 SUSE-SU-2021:0870-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_36 4-2.2 SUSE-SU-2021:0870-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0835-1, SUSE-SU-2021:0452-1
SLES 12 SP2 kernel-syms +2 4.4.121-92.149.1 SUSE-SU-2021:0437-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_34 9-2.2 SUSE-SU-2021:0870-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_35 +1 7-2.2 SUSE-SU-2021:0870-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_37 6-2.2 SUSE-SU-2021:0870-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_38 4-2.2 SUSE-SU-2021:0870-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_39 1-3.3.1 SUSE-SU-2021:0835-1, SUSE-SU-2021:0437-1
SLES 11 SP4 kernel-ec2 +8 3.0.101-108.120.1 SUSE-SU-2021:14630-1
SLES for SAP 15 kernel-docs +5 4.12.14-150.66.1 SUSE-SU-2021:0438-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.41.1 SUSE-SU-2021:0098-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.57.1 SUSE-SU-2021:0133-1
SLES for SAP 12 SP4 kernel-syms +2 4.12.14-95.68.1 SUSE-SU-2021:0434-1
SLES for SAP 12 SP3 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_31 8-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_32 +2 7-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_35 6-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_36 4-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0835-1, SUSE-SU-2021:0452-1
SLES for SAP 12 SP2 kernel-syms +2 4.4.121-92.149.1 SUSE-SU-2021:0437-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_34 9-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_35 +1 7-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_37 6-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_38 4-2.2 SUSE-SU-2021:0870-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_39 1-3.3.1 SUSE-SU-2021:0835-1, SUSE-SU-2021:0437-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.25.1 SUSE-SU-2020:3766-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.46.1 SUSE-SU-2021:0117-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_9 1-5.3.1 SUSE-SU-2021:0117-1
SLE Live Patching 15 SP1 kernel-default 4.12.14-197.78.1 SUSE-SU-2021:0118-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_11 9-2.2 SUSE-SU-2021:0853-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_12 +2 7-2.2 SUSE-SU-2021:0859-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_15 6-2.2 SUSE-SU-2021:0859-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_16 5-2.2 SUSE-SU-2021:0859-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_17 +1 4-2.2 SUSE-SU-2021:0853-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_19 +1 3-2.2 SUSE-SU-2021:0853-1, SUSE-SU-2021:0818-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_21 1-3.3.1 SUSE-SU-2021:0809-1, SUSE-SU-2021:0118-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_9 +1 10-2.2 SUSE-SU-2021:0853-1
SLE Live Patching 15 kernel-default 4.12.14-150.66.1 SUSE-SU-2021:0438-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_18 +1 7-2.2 SUSE-SU-2021:0868-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_20 6-2.2 SUSE-SU-2021:0868-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_21 4-2.2 SUSE-SU-2021:0868-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_22 1-1.3.1 SUSE-SU-2021:0438-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.57.1 SUSE-SU-2021:0133-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_10 7-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_11 +1 5-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_13 3-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_14 1-8.3.1 SUSE-SU-2021:0809-1, SUSE-SU-2021:0133-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_15 2-2.2 SUSE-SU-2021:0808-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_3 11-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_4 10-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_5 +3 9-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_9 8-2.2 SUSE-SU-2021:0818-1
SLE Live Patching 12 SP4 kernel-default 4.12.14-95.68.1 SUSE-SU-2021:0434-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_12 10-2.2 SUSE-SU-2021:0826-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_13 9-2.2 SUSE-SU-2021:0826-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_14 +1 7-2.2 SUSE-SU-2021:0823-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_16 6-2.2 SUSE-SU-2021:0823-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_17 3-2.2 SUSE-SU-2021:0868-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_18 1-6.3.1 SUSE-SU-2021:0434-1
SLE HPC 15 kernel-docs +5 4.12.14-150.66.1 SUSE-SU-2021:0438-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-19.1 SUSE-SU-2020:3764-1
SUSE Real Time Module 15 SP1 kernel-rt +3 4.12.14-14.44.2 SUSE-SU-2020:3798-1
SUSE OpenStack Cloud Crowbar 9 kernel-syms +2 4.12.14-95.68.1 SUSE-SU-2021:0434-1
SUSE OpenStack Cloud Crowbar 8 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SUSE OpenStack Cloud Crowbar 8 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0452-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.68.1 SUSE-SU-2021:0434-1
SUSE OpenStack Cloud 8 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SUSE OpenStack Cloud 8 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0452-1
SUSE OpenStack Cloud 7 kernel-syms +2 4.4.121-92.149.1 SUSE-SU-2021:0437-1
SUSE OpenStack Cloud 7 kgraft-patch-SLE12-SP2_Update_36 7-2.2 SUSE-SU-2021:0870-1
SUSE OpenStack Cloud 7 kgraft-patch-SLE12-SP2_Update_39 1-3.3.1 SUSE-SU-2021:0437-1
SUSE HPE Helion OpenStack 8 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SUSE HPE Helion OpenStack 8 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0452-1
SUSE Enterprise Storage 5 kernel-syms +2 4.4.180-94.138.1 SUSE-SU-2021:0452-1
SUSE Enterprise Storage 5 kgraft-patch-SLE12-SP3_Update_37 1-4.3.1 SUSE-SU-2021:0452-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 kernel-docs +8 5.3.18-lp152.60.1 openSUSE-SU-2021:0060-1
openSUSE Leap 15.2 kernel-rt +3 5.3.18-lp152.3.5.1 openSUSE-SU-2021:0242-1
openSUSE Leap 15.1 kernel-docs +8 4.12.14-lp151.28.91.1 openSUSE-SU-2021:0075-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-305.el8 ELSA-2021-1578
Oracle Linux 7 kernel-uek +5 4.1.12-124.47.3.el7uek ELSA-2021-9030

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 4 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 32

References