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

- Severity: High 7.1 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.32%, higher than 71% of CVEs (2026-12-01)
- Published: 2020-04-23T23:55:23.619Z
- Modified: 2026-06-17T02:21:04.903Z
- Weaknesses: CWE-191, CWE-672
- Assigned by: canonical

## Description

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.

(As written by CVE List.)

## Affected

- Ubuntu Shiftfs in the Linux kernel: from 5.3.0-11.12 before 5.3 kernel*; from 5.0 kernel before 5.0.0-35.38
- linux linux_kernel: 5.0; 5.3
- canonical ubuntu_linux: 18.04; 19.04

## Every score

- canonical: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://usn.ubuntu.com/usn/usn-4183-1> (third-party-advisory)
- <https://usn.ubuntu.com/usn/usn-4184-1> (third-party-advisory)
- <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=601a64857b3d7040ca15c39c929e6b9db3373ec1> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2019-15791](https://www.cve.org/CVERecord?id=CVE-2019-15791), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2019-15791](https://nvd.nist.gov/vuln/detail/CVE-2019-15791), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-15791 · Whole record: https://cve.day/CVE-2019-15791.json · Rebuilt by cve.day 2026-11-25T22:57:49.832Z
