cve.bz

CVE-2020-16120 Incorrect Privilege Assignment

4.4 mediumEPSS 0.4%Fix available

Medium (4.4). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
Overlayfs did not properly perform permission checking when copying up files in an overlayfs and could be exploited from within a user namespace, if, for example, unprivileged user namespaces were allowed. It was possible to have a file not readable by an unprivileged user to be copied to a mountpoint controlled by the user, like a removable device. This was introduced in kernel version 4.19 by commit d1d04ef ("ovl: stack file ops"). This was fixed in kernel version 5.8 by commits 56230d9 ("ovl: verify permissions in ovl_path_open()"), 48bd024 ("ovl: switch to mounter creds in readdir") and 05acefb ("ovl: check permission to open real file"). Additionally, commits 130fdbc ("ovl: pass correct flags for opening real directory") and 292f902 ("ovl: call secutiry hook in ovl_real_ioctl()") in kernel 5.8 might also be desired or necessary. These additional commits introduced a regression in overlay mounts within user namespaces which prevented access to files with ownership outside of the user namespace. This regression was mitigated by subsequent commit b6650da ("ovl: do not fail because of O_NOATIMEi") in kernel 5.11.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-266 Incorrect Privilege Assignment
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-16120 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-16120?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-16120?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-16120 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux kernelfrom 5.11-stable before 5.11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.8.7-1DEBIAN-CVE-2020-16120
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1085.90~16.04.1UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu16.04:LTSlinux-azure4.15.0-1098.109~16.04.1UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu16.04:LTSlinux-gcp4.15.0-1086.98~16.04.1UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu16.04:LTSlinux-hwe4.15.0-120.122~16.04.1UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2020-16120
Ubuntu16.04:LTSlinux-oracle4.15.0-1056.61~16.04.1UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu18.04:LTSlinux4.15.0-121.123UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu18.04:LTSlinux-aws4.15.0-1086.91UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu18.04:LTSlinux-aws-5.4, linux-gcp-5.4, linux-oracle-5.45.4.0-1028.29~18.04.1UBUNTU-CVE-2020-16120 USN-4576-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1099.110UBUNTU-CVE-2020-16120 USN-4578-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1031.32~18.04.1UBUNTU-CVE-2020-16120 USN-4576-1
Ubuntu18.04:LTSlinux-gcp, linux-azure, linux-aws-5.0 and 8 moreno fix listedUBUNTU-CVE-2020-16120
45 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.65.1SUSE-SU-2020:3544-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.51.2SUSE-SU-2020:3326-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150.63.1SUSE-SU-2020:3532-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1, Linux Enterprise Module for Legacy 15 SP1 and 1 morekernel-default4.12.14-197.67.1SUSE-SU-2020:3272-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Module for Legacy 15 SP2 and 1 morekernel-default5.3.18-24.34.1SUSE-SU-2020:3122-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150.63.1SUSE-SU-2020:3532-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_171-6.5.1SUSE-SU-2020:3544-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_121-8.5.2SUSE-SU-2020:3326-1
SUSELinux Enterprise Live Patching 15kernel-livepatch-SLE15_Update_211-1.5.1SUSE-SU-2020:3532-1
SUSELinux Enterprise Live Patching 15 SP1kernel-livepatch-SLE15-SP1_Update_181-3.3.1SUSE-SU-2020:3272-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_61-5.3.2SUSE-SU-2020:3122-1
SUSELinux Enterprise Module for Basesystem 15 SP1kernel-source, kernel-default, kernel-zfcpdump4.12.14-197.67.1SUSE-SU-2020:3272-1
14 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2kernel-default-base5.3.18-lp152.50.1.lp152.8.10.1openSUSE-SU-2020:2112-1
openSUSELeap 15.2kernel-docs, kernel-syms, kernel-debug and 6 more5.3.18-lp152.50.1openSUSE-SU-2020:1906-1
openSUSELeap 15.2kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.3.18-lp152.3.5.1openSUSE-SU-2021:0242-1
Azure Linux2kernel5.10.78.1-1AZL-6522

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Red Hat feels this flaw needs a number of conditions in place for the attacker to exploit, and the mitigation for this issue is to avoid a target file t existing on an overlay filesystem, accessible in the namespace, which is writable by the exploiting target.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernelWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-16120.

References

Check your stackJSON