# CVE-2019-15791: Reference count underflow in shiftfs

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 20-11-2019)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2020-04-23 · Modified: 2024-09-17
- Aliases: UBUNTU-CVE-2019-15791
- Record: https://cvemate.com/vulnerability/CVE-2019-15791 · JSON: https://cvemate.com/vulnerability/CVE-2019-15791/json

## Description

```text
In shiftfs, a non-upstream patch to the Linux kernel included in the Ubuntu 5.0 and 5.3 kernel series, shiftfs_btrfs_ioctl_fd_replace() installs an fd referencing a file from the lower filesystem without taking an additional reference to that file. After the btrfs ioctl completes this fd is closed, which then puts a reference to that file, leading to a refcount underflow.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.317%, percentile 71.767%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- canonical ubuntu\_linux: 18.04 \| 19.04
- ubuntu linux-azure-edge (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-fde (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gcp-edge (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gke (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gkeop (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gkeop-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-hwe-edge (Ubuntu): All versions (No fix recorded)
- ubuntu linux-intel-iot-realtime (Ubuntu): All versions (No fix recorded)
- ubuntu linux-raspi-realtime (Ubuntu): All versions (No fix recorded)
- ubuntu linux-raspi2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-realtime (Ubuntu): All versions (No fix recorded)
- ubuntu linux-riscv (Ubuntu): All versions (No fix recorded)
- linux linux\_kernel: 5.0 \| 5.3
- ubuntu shiftfs in the linux kernel: ≥ 5.3.0-11.12, \< 5.3 kernel\* \| ≥ 5.0 kernel, \< 5.0.0-35.38

## References

- <https://usn.ubuntu.com/usn/usn-4183-1>
- <https://usn.ubuntu.com/usn/usn-4184-1>
- <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=601a64857b3d7040ca15c39c929e6b9db3373ec1>
- <https://ubuntu.com/security/CVE-2019-15791>
- <https://ubuntu.com/security/notices/USN-4183-1>
- <https://ubuntu.com/security/notices/USN-4184-1>
- <https://www.cve.org/CVERecord?id=CVE-2019-15791>

---

Data as of 2026-12-05T03:09:10.710Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
