CVE-2020-16120: Unprivileged overlay + shiftfs read access
Vulnerability summary
CVE-2020-16120 is a medium (CVSS 5.1) Incorrect Privilege Assignment vulnerability in canonical ubuntu_linux. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 35.4% of scored vulnerabilities.
Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 18 · Related 17Timeline
- 10-02-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
- NVDNIST4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu50 products
- linuxAll versions (No fix recorded) | < 4.15.0-121.123 | < 5.4.0-51.56
- linux-awsAll versions (No fix recorded) | < 4.15.0-1086.91 | < 5.4.0-1028.29
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.3All versions (No fix recorded)
- linux-aws-5.4< 5.4.0-1028.29~18.04.1
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 18.04 | 20.04
Debian1 product
- linux< 5.8.7-1
Linux1 product
- linux_kernel< 5.11
Linux kernel1 product
- linux kernel≥ 5.11-stable, < 5.11.0
5 vendors · 54 products
References
19 links- git.kernel.org/linus/56230d956739b9cb1cbde439d76227d77979a04dX Refsource CONFIRMPatchThird Party Advisory
- git.kernel.org/linus/48bd024b8a40d73ad6b086de2615738da0c7004fX Refsource CONFIRMPatchThird Party Advisory
- git.kernel.org/linus/05acefb4872dae89e772729efb194af754c877e8X Refsource CONFIRMPatchThird Party Advisory
- git.kernel.org/linus/d1d04ef8572bc8c22265057bd3d5a79f223f8f52X Refsource CONFIRMPatchThird Party Advisory
Show all 19 references
- git.kernel.org/linus/b6650dab404c701d7fe08a108b746542a934da84X Refsource CONFIRMPatchThird Party Advisory