Overlayfs in the Linux kernel and shiftfs, a non-upstream patch to the Linux kernel included in the Ubuntu 5.0 and 5.3 kernel series, both replace vma->vm_file in their mmap handlers. On error the original value is not restored, and the reference is put for the file to which vm_file points. On upstream kernels this is not an issue, as no callers dereference vm_file following after call_mmap() returns an error. However, the aufs patchs change mmap_region() to replace the fput() using a local variable with vma_fput(), which will fput() vm_file, leading to a refcount underflow.
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 30, 2024 | Apr 24, 2020 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Apr 24, 2020 |
| Ubuntu | — | Upgrade linux-image-5.3.0-1008-kvmUpgrade linux-image-virtualUpgrade linux-image-5.0.0-1023-raspi2Upgrade linux-image-5.3.0-1007-oracleUpgrade linux-image-lowlatencyUpgrade linux-image-awsUpgrade linux-image-genericUpgrade linux-image-5.3.0-24-snapdragonUpgrade linux-image-5.0.0-1022-awsUpgrade linux-image-gcp-edgeUpgrade linux-image-raspi2Upgrade linux-image-5.3.0-1009-gcpUpgrade linux-image-5.3.0-1008-awsUpgrade linux-image-lowlatency-hwe-18.04Upgrade linux-image-5.3.0-24-genericUpgrade linux-image-snapdragon-hwe-18.04Upgrade linux-image-5.0.0-1026-gkeUpgrade linux-image-oracleUpgrade linux-image-5.0.0-1008-oracleUpgrade linux-image-generic-lpaeUpgrade linux-image-aws-edgeUpgrade linux-image-gkeUpgrade linux-image-virtual-hwe-18.04Upgrade linux-image-5.0.0-1026-gcpUpgrade linux-image-5.0.0-37-genericUpgrade linux-image-5.0.0-1030-oem-osp1Upgrade linux-image-oem-osp1Upgrade linux-image-generic-lpae-hwe-18.04Upgrade linux-image-gke-5.0Upgrade linux-image-5.3.0-24-lowlatencyUpgrade linux-image-5.0.0-37-lowlatencyUpgrade linux-image-oracle-edgeUpgrade linux-image-snapdragonUpgrade linux-image-5.3.0-24-generic-lpaeUpgrade linux-image-kvmUpgrade linux-image-5.0.0-37-generic-lpaeUpgrade linux-image-generic-hwe-18.04Upgrade linux-image-5.0.0-1023-kvmUpgrade linux-image-gcp | Dec 3, 2019 | Dec 2, 2019 |
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