{"id":"CVE-2022-48771","aliases":["CVE-2022-48771"],"related":[],"kind":"vulnerability","state":"published","title":"drm/vmwgfx: Fix stale file descriptors on failed usercopy","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix stale file descriptors on failed usercopy\n\nA failing usercopy of the fence_rep object will lead to a stale entry in\nthe file descriptor table as put_unused_fd() won't release it. This\nenables userland to refer to a dangling 'file' object through that still\nvalid file descriptor, leading to all kinds of use-after-free\nexploitation scenarios.\n\nFix this by deferring the call to fd_install() until after the usercopy\nhas succeeded.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix stale file descriptors on failed usercopy\n\nA failing usercopy of the fence_rep object will lead to a stale entry in\nthe file descriptor table as put_unused_fd() won't release it. This\nenables userland to refer to a dangling 'file' object through that still\nvalid file descriptor, leading to all kinds of use-after-free\nexploitation scenarios.\n\nFix this by deferring the call to fd_install() until after the usercopy\nhas succeeded.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/vmwgfx: corrige descriptores de archivos obsoletos en una copia de usuario fallida. Una copia de usuario fallida del objeto valla_rep generará una entrada obsoleta en la tabla de descriptores de archivos, ya que put_unused_fd() no lo liberará. Esto permite al usuario hacer referencia a un objeto 'archivo' pendiente a través de ese descriptor de archivo aún válido, lo que lleva a todo tipo de escenarios de explotación de use-after-free. Solucione este problema posponiendo la llamada a fd_install() hasta que la copia del usuario se haya realizado correctamente.","source":"nvd"}],"published":"2024-06-20T11:13:45.896Z","modified":"2026-08-05T08:52:12.077Z","severity":{"scorer":"Linux","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"},"severities":[{"scorer":"Linux","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: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"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"e8d092a62449dcfc73517ca43963d2b8f44d0516","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"84b1259fe36ae0915f3d6ddcea6377779de48b82","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"ae2b20f27732fe92055d9e7b350abc5cdf3e2414","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"6066977961fc6f437bc064f628cf9b0e4571c56c","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"1d833b27fb708d6fdf5de9f6b3a8be4bd4321565","status":"affected"},{"type":"git","introduced":"c906965dee22d5e95d0651759ba107b420212a9f","fixed":"a0f90c8815706981c483a652a6aefca51a5e191c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"4.14.264","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.227","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.175","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.95","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.18","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.4","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14","fixed":"4.14.264"},{"status":"affected","introduced":"4.15","fixed":"4.19.227"},{"status":"affected","introduced":"4.20","fixed":"5.4.175"},{"status":"affected","introduced":"5.5","fixed":"5.10.95"},{"status":"affected","introduced":"5.11","fixed":"5.15.18"},{"status":"affected","introduced":"5.16","fixed":"5.16.4"},{"status":"affected","version":"5.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e8d092a62449dcfc73517ca43963d2b8f44d0516","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84b1259fe36ae0915f3d6ddcea6377779de48b82","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae2b20f27732fe92055d9e7b350abc5cdf3e2414","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6066977961fc6f437bc064f628cf9b0e4571c56c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d833b27fb708d6fdf5de9f6b3a8be4bd4321565","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0f90c8815706981c483a652a6aefca51a5e191c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:09:57.107Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48771","url":"https://www.cve.org/CVERecord?id=CVE-2022-48771","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:12.077Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48771","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48771","licence":"Public domain","modified":"2026-08-04T10:17:20.147Z"}],"updatedAt":"2026-11-25T22:58:19.861Z","epss":{"score":0.00213,"percentile":0.12301,"date":"2026-12-01T12:00:22.000Z"}}