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 Details
- CVSS 3.1 Base Score: 5.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 30, 2024 | Feb 10, 2021 |
| Huawei Euleros 2_0_sp9 | — | Upgrade python3-perfUpgrade kernel-toolsUpgrade kernelUpgrade kernel-tools-libs | Jun 2, 2021 | Feb 10, 2021 |
| Oracle_linux | — | Upgrade kernel-uek | Mar 9, 2021 | Oct 13, 2020 |
| Suse | — | Upgrade gfs2-kmp-defaultUpgrade kernel-obs-buildUpgrade ocfs2-kmp-defaultUpgrade kernel-defaultUpgrade cluster-md-kmp-defaultUpgrade kernel-docsUpgrade kernel-default-extraUpgrade dlm-kmp-default | Nov 12, 2020 | Oct 14, 2020 |
| Ubuntu | — | Upgrade linux-image-4.15.0-120-lowlatencyUpgrade linux-image-raspi-hwe-18.04Upgrade linux-image-virtualUpgrade linux-image-generic-lpae-hwe-18.04Upgrade linux-image-gke-5.3Upgrade linux-image-oracle-lts-18.04Upgrade linux-image-oemUpgrade linux-image-4.15.0-1089-snapdragonUpgrade linux-image-generic-hwe-16.04Upgrade linux-image-lowlatency-hwe-16.04Upgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-oem-osp1Upgrade linux-image-virtual-hwe-20.04Upgrade linux-image-oracleUpgrade linux-image-snapdragon-hwe-18.04Upgrade linux-image-gkeop-5.3Upgrade linux-image-5.3.0-1038-gkeUpgrade linux-image-4.15.0-1085-awsUpgrade linux-image-genericUpgrade linux-image-5.4.0-1021-raspiUpgrade linux-image-gkeUpgrade linux-image-5.0.0-1049-gkeUpgrade linux-image-4.15.0-1073-raspi2Upgrade linux-image-5.3.0-68-genericUpgrade linux-image-5.4.0-1031-azureUpgrade linux-image-4.15.0-1098-azureUpgrade linux-image-lowlatency-hwe-18.04Upgrade linux-image-gcp-lts-18.04Upgrade linux-image-azure-lts-18.04Upgrade linux-image-snapdragonUpgrade linux-image-4.15.0-1072-gkeUpgrade linux-image-generic-hwe-20.04Upgrade linux-image-4.15.0-1057-oracleUpgrade linux-image-aws-lts-18.04Upgrade linux-image-4.15.0-1099-azureUpgrade linux-image-4.15.0-1056-oracleUpgrade linux-image-virtual-hwe-18.04Upgrade linux-image-generic-lpaeUpgrade linux-image-5.4.0-1028-gcpUpgrade linux-image-gke-5.0Upgrade linux-image-virtual-hwe-16.04Upgrade linux-image-5.3.0-1035-raspi2Upgrade linux-image-4.15.0-1086-gcpUpgrade linux-image-5.4.0-1028-awsUpgrade linux-image-4.15.0-121-generic-lpaeUpgrade linux-image-gke-4.15Upgrade linux-image-4.15.0-1077-kvmUpgrade linux-image-5.4.0-51-genericUpgrade linux-image-5.4.0-51-generic-lpaeUpgrade linux-image-5.4.0-1026-kvmUpgrade linux-image-generic-lpae-hwe-16.04Upgrade linux-image-4.15.0-121-genericUpgrade linux-image-4.15.0-121-lowlatencyUpgrade linux-image-5.4.0-1028-oracleUpgrade linux-image-gcpUpgrade linux-image-5.0.0-1069-oem-osp1Upgrade linux-image-5.4.0-51-lowlatencyUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-4.15.0-120-generic-lpaeUpgrade linux-image-awsUpgrade linux-image-azureUpgrade linux-image-raspiUpgrade linux-image-raspi2-hwe-18.04Upgrade linux-image-4.15.0-1086-awsUpgrade linux-image-4.15.0-1099-oemUpgrade linux-image-raspi2Upgrade linux-image-aws-hweUpgrade linux-image-lowlatencyUpgrade linux-image-generic-hwe-18.04Upgrade linux-image-4.15.0-120-genericUpgrade linux-image-kvmUpgrade linux-image-5.3.0-68-lowlatency | Oct 14, 2020 | Oct 14, 2020 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Feb 10, 2021 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub