{"id":"CVE-2019-15791","published":"2020-04-23T23:55:23Z","modified":"2024-09-17T00:11:12Z","title":"Reference count underflow in shiftfs","vendor":"Ubuntu","product":"Shiftfs in the Linux kernel","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01317,"percentile":0.71493,"provenance":"source"},"cwes":[{"id":"CWE-672","name":"Operation on a Resource after Expiration or Release"}],"references":[{"url":"https://usn.ubuntu.com/usn/usn-4183-1","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/usn/usn-4184-1","tags":["x_refsource_MISC"]},{"url":"https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=601a64857b3d7040ca15c39c929e6b9db3373ec1","tags":["x_refsource_MISC"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":14.3},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-11-20"},"first":{"date":"2019-11-20","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/47693"},"provenance":"source"},"vendorSlug":"ubuntu","affectedVersions":[{"vendor":"Ubuntu","product":"Shiftfs in the Linux kernel","versions":[">= 5.3.0-11.12, < 5.3 kernel*",">= 5.0 kernel, < 5.0.0-35.38"]}],"fixedVersions":[{"vendor":"Ubuntu","product":"Shiftfs in the Linux kernel","versions":["5.3.0-22.24"]}],"euvd":{"id":"EUVD-2019-6714","exploited":false,"provenance":"source"},"exploits":[{"id":47693,"url":"https://www.exploit-db.com/exploits/47693","title":"Ubuntu 19.10 - Refcount Underflow and Type Confusion in shiftfs","date":"2019-11-20","verified":true,"provenance":"source"}]}