Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Ubuntu | Linux kernel | 5.3 kernel – < 5.3.0-24.26, 5.0 kernel – < 5.0.0-37.40 | 5.3.0-24.26 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.16.7-1 | — |
| Debian 13 | linux | 5.16.7-1 | — |
| Debian 12 | linux | 5.16.7-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 25.10 | linux +8 | No fix yet | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux +53 | No fix yet | — |
| Ubuntu 22.04 LTS | linux +29 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +5 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-aws-5.0 | 5.0.0-1022.25~18.04.1 | USN-4209-1 |
| Ubuntu 18.04 LTS | linux-azure | 5.0.0-1027.29~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-5.3 | 5.3.0-1008.9~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp | 5.0.0-1026.27~18.04.1 | USN-4209-1 |
| Ubuntu 18.04 LTS | linux-gcp-5.3 | 5.3.0-1009.10~18.04.1 | USN-4208-1 |
| Ubuntu 18.04 LTS | linux-gcp-edge +2 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gke-5.0 | 5.0.0-1026.27~18.04.2 | USN-4209-1 |
| Ubuntu 18.04 LTS | linux-hwe | 5.0.0-37.40~18.04.1 | USN-4209-1 |
| Ubuntu 18.04 LTS | linux-oem-osp1 | 5.0.0-1030.34 | USN-4209-1 |
| Ubuntu 18.04 LTS | linux-oracle-5.0 | 5.0.0-1008.13~18.04.1 | USN-4209-1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux-aws-5.15 +10 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | perf +26 | 4.18.0-348.el8 | RHSA-2021:4356 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Ubuntu 19.10 - ubuntu-aufs-modified mmap_region() Breaks Refcounting in overlayfs/shiftfs Error Path EDB-47692 · dos · Nov 20, 2019 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- RHSA-2021:4356 Red Hat Security Advisory: kernel security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- USN-4209-1 linux, linux-aws, linux-aws-5.0, linux-gcp, linux-gke-5.0, linux-hwe, linux-kvm, linux-oem-osp1, linux-oracle, linux-oracle-5.0, linux-raspi2 vulnerabilities Ubuntu Security Notices (USN) · Sep 9, 2026
- USN-4208-1 linux, linux-aws, linux-gcp, linux-gcp-5.3, linux-kvm, linux-oracle vulnerabilities Ubuntu Security Notices (USN) · Sep 9, 2026
References
- https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=270d16ae48a4dbf1c7e25e94cc3e38b4bea37635
- https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=ef81780548d20a786cc77ed4203fca146fd81ce3
- https://usn.ubuntu.com/usn/usn-4208-1
- https://usn.ubuntu.com/usn/usn-4209-1