{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-15791","id":"CVE-2019-15791","title":"Reference count underflow in shiftfs","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.","descriptionLong":"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.","published":"2020-04-23T23:55:23.619Z","updated":"2026-06-17T02:21:04.903Z","reserved":"2019-08-29T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"canonical","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"canonical"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"canonical"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"ubuntu.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["Ubuntu Shiftfs in the Linux kernel"],"affectedProducts":[{"vendor":"Ubuntu","product":"Shiftfs in the Linux kernel","defaultStatus":null,"versions":[{"changes":[{"at":"5.3.0-22.24","status":"unaffected"}],"lessThan":"5.3 kernel*","status":"affected","version":"5.3.0-11.12","versionType":"custom"},{"lessThan":"5.0.0-35.38","status":"affected","version":"5.0 kernel","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-672","CWE-191"],"aliases":[],"references":[{"url":"https://usn.ubuntu.com/usn/usn-4183-1","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/usn/usn-4184-1","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=601a64857b3d7040ca15c39c929e6b9db3373ec1","tags":["x_refsource_MISC","x_transferred","Mailing List","Patch","Third Party Advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01317,"epssPercentile":0.71405,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-15791","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15791","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-15791","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-15791","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["linux-kernel"],"critical":[],"attention":null}