Use-after-free in Linux kernel - CVE-2020-12464
Published: July 15, 2020
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the usb_sg_cancel() function in drivers/usb/core/message.c in the Linux kernel. A local user can trigger a use-after-free error during file transfer to USB driver and execute arbitrary code on the system with elevated privileges.
Affected software
Slackware Linux
Ubuntu
linux (Ubuntu package)
linux-raspi2 (Ubuntu package)
linux-lts-xenial (Ubuntu package)
linux-kvm (Ubuntu package)
linux-aws (Ubuntu package)
linux-snapdragon (Ubuntu package)
linux-hwe (Ubuntu package)
linux-gcp (Ubuntu package)
linux-azure (Ubuntu package)
linux-oem (Ubuntu package)
linux-oracle (Ubuntu package)
linux-gke-4.15 (Ubuntu package)
linux-aws-hwe (Ubuntu package)
linux-azure-4.15 (Ubuntu package)
linux-oem-osp1 (Ubuntu package)
linux-gke-5.0 (Ubuntu package)
linux-gcp-5.3 (Ubuntu package)
linux-oracle-5.3 (Ubuntu package)
linux-azure-5.3 (Ubuntu package)
linux-aws-5.3 (Ubuntu package)
linux-gke-5.3 (Ubuntu package)
linux-raspi2-5.3 (Ubuntu package)
linux-riscv (Ubuntu package)
linux-raspi (Ubuntu package)
linux-4.4.227/kernel-generic
linux-4.4.227/kernel-huge
linux-4.4.227/kernel-modules
linux-4.4.227/kernel-headers
IBM RackSwitch G7028
IBM RackSwitch G8332
IBM Flex System Fabric SI4093 GbFSIM 10Gb Scalable Switch
IBM Flex System CN4093 10Gb Converged Scalable Switch
IBM Flex System EN2092 1Gb Ethernet Scalable Switch
IBM RackSwitch G8264CS
G8264CS_SI_Fabric_Image
IBM RackSwitch G8316
IBM RackSwitch G8264T
IBM RackSwitch G8124E
IBM RackSwitch G8124
IBM RackSwitch G8264
IBM RackSwitch G8052
Flex System Fabric EN4093/EN4093R 10Gb Scalable Switch
How to mitigate CVE-2020-12464
linux (Ubuntu package) - addressed in versions 4.4.0-184.214, 4.15.0-106.107, 5.3.0-59.53, 5.4.0-37.41
linux-raspi2 (Ubuntu package) - addressed in versions 4.4.0-1134.143, 4.15.0-1063.67
linux-lts-xenial (Ubuntu package) - update to 4.4.0-184.214~14.04.1
linux-kvm (Ubuntu package) - addressed in versions 4.4.0-1075.82, 4.15.0-1067.68, 5.3.0-1023.25, 5.4.0-1015.15
linux-aws (Ubuntu package) - addressed in versions 4.4.0-1073.77, 4.4.0-1109.120, 4.15.0-1073.77, 5.3.0-1023.25, 5.4.0-1015.15
linux-snapdragon (Ubuntu package) - addressed in versions 4.4.0-1138.146, 4.15.0-1080.87
linux-hwe (Ubuntu package) - addressed in versions 4.15.0-106.107~16.04.1, 5.3.0-59.53~18.04.1
linux-gcp (Ubuntu package) - addressed in versions 4.15.0-1077.87~16.04.1, 5.3.0-1026.28, 5.4.0-1015.15
linux-azure (Ubuntu package) - addressed in versions 4.15.0-1089.99~14.04.1, 4.15.0-1089.99~16.04.1, 5.3.0-1028.29, 5.4.0-1016.16
linux-oem (Ubuntu package) - update to 4.15.0-1087.97
linux-oracle (Ubuntu package) - addressed in versions 4.15.0-1045.49~16.04.1, 4.15.0-1045.49, 5.3.0-1024.26, 5.4.0-1015.15
linux-gke-4.15 (Ubuntu package) - update to 4.15.0-1063.66
linux-aws-hwe (Ubuntu package) - update to 4.15.0-1073.77~16.04.1
linux-azure-4.15 (Ubuntu package) - update to 4.15.0-1089.99
linux-oem-osp1 (Ubuntu package) - update to 5.0.0-1059.64
linux-gke-5.0 (Ubuntu package) - update to 5.0.0-1042.43
linux-gcp-5.3 (Ubuntu package) - update to 5.3.0-1026.28~18.04.1
linux-oracle-5.3 (Ubuntu package) - update to 5.3.0-1024.26~18.04.1
linux-azure-5.3 (Ubuntu package) - update to 5.3.0-1028.29~18.04.1
linux-aws-5.3 (Ubuntu package) - update to 5.3.0-1023.25~18.04.1
linux-gke-5.3 (Ubuntu package) - update to 5.3.0-1026.28~18.04.1
linux-raspi2-5.3 (Ubuntu package) - update to 5.3.0-1027.29~18.04.1
linux-riscv (Ubuntu package) - update to 5.4.0-27.31
linux-raspi (Ubuntu package) - update to 5.4.0-1012.12
IBM RackSwitch G7028 - update to 7.6.6.0
IBM RackSwitch G8332 - update to 7.7.34.0
IBM Flex System Fabric SI4093 GbFSIM 10Gb Scalable Switch - update to 7.8.26.0
Flex System Fabric EN4093/EN4093R 10Gb Scalable Switch - update to 7.8.26.0
IBM Flex System CN4093 10Gb Converged Scalable Switch - update to 7.8.26.0
IBM Flex System EN2092 1Gb Ethernet Scalable Switch - update to 7.8.26.0
IBM RackSwitch G8264CS - update to 7.8.26.0
G8264CS_SI_Fabric_Image - update to 7.8.26.0
IBM RackSwitch G8316 - update to 7.9.28.0
IBM RackSwitch G8264T - update to 7.9.28.0
IBM RackSwitch G8124E - update to 7.11.18.0
IBM RackSwitch G8124 - update to 7.11.18.0
IBM RackSwitch G8264 - update to 7.11.18.0
IBM RackSwitch G8052 - update to 7.11.18.0
linux-4.4.227/kernel-generic - update to 4.4.227
linux-4.4.227/kernel-huge - update to 4.4.227
linux-4.4.227/kernel-modules - update to 4.4.227
linux-4.4.227/kernel-headers - update to 4.4.227_smp
External References
- http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00022.html
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.6.8
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=056ad39ee9253873522f6469c3364964a322912b
- https://github.com/torvalds/linux/commit/056ad39ee9253873522f6469c3364964a322912b
- https://lists.debian.org/debian-lts-announce/2020/06/msg00011.html
- https://lists.debian.org/debian-lts-announce/2020/06/msg00012.html
- https://lists.debian.org/debian-lts-announce/2020/06/msg00013.html
- https://lkml.org/lkml/2020/3/23/52
- https://patchwork.kernel.org/patch/11463781/
- https://security.netapp.com/advisory/ntap-20200608-0001/
- https://usn.ubuntu.com/4387-1/
- https://usn.ubuntu.com/4388-1/
- https://usn.ubuntu.com/4389-1/
- https://usn.ubuntu.com/4390-1/
- https://usn.ubuntu.com/4391-1/
- https://www.debian.org/security/2020/dsa-4698
- https://www.debian.org/security/2020/dsa-4699
Related Security Bulletins
- Privilege escalation in Linux kernel USB driver
- IBM Flex System switch firmware products update for Linux Kernel
- IBM RackSwitch firmware products update for Linux Kernel
- Slackware Linux update for kernel
- Ubuntu update for linux, linux-aws, linux-azure and more
- Ubuntu update for linux-gke-5.0, linux-oem-osp1
- Ubuntu update for linux, linux-aws, linux-aws-5.3 and more
- Ubuntu update for linux, linux-aws, linux-kvm and more
- Ubuntu update for linux, linux-aws, linux-aws-hwe and more