{"id":"CVE-2019-15791","aliases":["CVE-2019-15791"],"related":[],"kind":"vulnerability","state":"published","title":"Reference count underflow in shiftfs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En shiftfs, un parche no upstream para el Kernel de Linux incluido en las series kernel de Ubuntu versiones 5.0 y 5.3, shiftfs_btrfs_ioctl_fd_replace() instala un fd que hace referencia a un archivo del sistema de archivos inferior sin tomar una referencia adicional a ese archivo. Después de que el btrfs ioctl completa este fd se cierra, lo que entonces pone una referencia a ese archivo, lo que lleva a un subflujo de recuento.","source":"nvd"}],"published":"2020-04-23T23:55:23.619Z","modified":"2026-06-17T02:21:04.903Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-191","CWE-672"],"affected":[{"ranges":[{"type":"custom","introduced":"5.3.0-11.12","fixed":"5.3 kernel*","status":"affected"},{"type":"custom","introduced":"5.0 kernel","fixed":"5.0.0-35.38","status":"affected"}],"vendor":"Ubuntu","product":"Shiftfs in the Linux kernel","source":"cvelist"},{"ranges":[{"status":"affected","version":"5.0"},{"status":"affected","version":"5.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:5.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.04"},{"status":"affected","version":"19.04"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","source":"nvd"}],"references":[{"url":"https://usn.ubuntu.com/usn/usn-4183-1","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/usn/usn-4184-1","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=601a64857b3d7040ca15c39c929e6b9db3373ec1","tags":["mailing-list","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Jann Horn of Google Project Zero"],"assigner":"canonical","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-15791","url":"https://www.cve.org/CVERecord?id=CVE-2019-15791","licence":"CVE Terms of Use","modified":"2024-09-17T00:11:12.912Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-15791","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15791","licence":"Public domain","modified":"2026-06-17T02:21:04.903Z"}],"updatedAt":"2026-11-25T22:57:49.832Z","epss":{"score":0.01317,"percentile":0.71621,"date":"2026-12-01T12:00:22.000Z"}}