{"id":"CVE-2022-48771","summary":"drm/vmwgfx: Fix stale file descriptors on failed usercopy","details":"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.","modified":"2026-04-02T08:26:59.723460Z","published":"2024-06-20T11:13:45.896Z","related":["SUSE-SU-2024:2360-1","SUSE-SU-2024:2362-1","SUSE-SU-2024:2365-1","SUSE-SU-2024:2372-1","SUSE-SU-2024:2381-1","SUSE-SU-2024:2384-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2561-1","SUSE-SU-2024:2902-1","SUSE-SU-2024:2929-1","SUSE-SU-2024:2939-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48771.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1d833b27fb708d6fdf5de9f6b3a8be4bd4321565"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6066977961fc6f437bc064f628cf9b0e4571c56c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84b1259fe36ae0915f3d6ddcea6377779de48b82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0f90c8815706981c483a652a6aefca51a5e191c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae2b20f27732fe92055d9e7b350abc5cdf3e2414"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8d092a62449dcfc73517ca43963d2b8f44d0516"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48771.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48771"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c906965dee22d5e95d0651759ba107b420212a9f"},{"fixed":"e8d092a62449dcfc73517ca43963d2b8f44d0516"},{"fixed":"0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d"},{"fixed":"84b1259fe36ae0915f3d6ddcea6377779de48b82"},{"fixed":"ae2b20f27732fe92055d9e7b350abc5cdf3e2414"},{"fixed":"6066977961fc6f437bc064f628cf9b0e4571c56c"},{"fixed":"1d833b27fb708d6fdf5de9f6b3a8be4bd4321565"},{"fixed":"a0f90c8815706981c483a652a6aefca51a5e191c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48771.json"}}],"schema_version":"1.7.5"}