CVE-2020-14356: Use After Free
A flaw null pointer dereference in the Linux kernel cgroupv2 subsystem in versions before 5.7.10 was found in the way when reboot the system. A local user could use this flaw to crash the system or escalate their privileges on the system.
Other sources
A use-after-free flaw was found in the Linux kernel’s cgroupv2 subsystem when rebooting the system. This flaw allows a local user to crash the system or escalate their privileges. The highest threat from this vulnerability is to system availability.
It was found that the Linux kernel's use after free issue could happen during the usage of cgroupv2 (usually when reboot and more likely if virtual machine or docker being used). After recent commit 090e28b ("netpriocgroup: Fix unlimited memory leak of v2 cgroups") was merged, the problem could be reproduced much simpler starting with 5.7.x kernels. The problem introduced with 4.5 kernel, but there is no known way to trigger it, so it was not known until 5.7 kernel. It could be possible to reproduce the bug by the user without privileges and without reboot if user has an ability to create/close cgroupv2 or this user create a process which is attached to already existing cgroupv2 BPF (but still the user will have to wait till root manually closes cgroupv2 or system is being rebooted).
This commit fixes the problem: https://github.com/torvalds/linux/commit/94886c86e833dbc8995202b6c6aaff592b7abd24
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.rt7.72.el8 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.el8 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.7.10 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.7-1Fixed in 7.1.8-1 - Upgrade
Upgrade
Linux kernel cgroupv2 subsystemto a version that resolves this vulnerability.Fixed in 5.7.10 - Upgrade
Upgrade
Linux kernel cgroupv2 subsystemto a version that resolves this vulnerability.Patch 090e28b
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2020-14356?
CVE-2020-14356 has been classified as a medium severity vulnerability due to potential system crashes or privilege escalation.
How do I fix CVE-2020-14356?
To fix CVE-2020-14356, upgrade to kernel version 5.7.10 or later, or apply the patched versions specified for your distribution.
What happens if I am affected by CVE-2020-14356?
If affected by CVE-2020-14356, a local user could crash the system or escalate their privileges, leading to potential unauthorized access.
Which Linux kernel versions are affected by CVE-2020-14356?
CVE-2020-14356 affects Linux kernel versions prior to 5.7.10, including multiple versions from 4.5 onward.
Is CVE-2020-14356 specific to any particular Linux distribution?
CVE-2020-14356 impacts various distributions, including Red Hat Enterprise Linux, Ubuntu, and Debian among others.