# CVE-2022-48771: drm/vmwgfx: Fix stale file descriptors on failed usercopy

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:45.896Z
- Modified: 2026-08-05T08:52:12.077Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/vmwgfx: Fix stale file descriptors on failed usercopy

A failing usercopy of the fence_rep object will lead to a stale entry in
the file descriptor table as put_unused_fd() won't release it. This
enables userland to refer to a dangling 'file' object through that still
valid file descriptor, leading to all kinds of use-after-free
exploitation scenarios.

Fix this by deferring the call to fd_install() until after the usercopy
has succeeded.

(As written by CVE List.)

## Affected

- Linux Linux: from c906965dee22d5e95d0651759ba107b420212a9f before e8d092a62449dcfc73517ca43963d2b8f44d0516; from c906965dee22d5e95d0651759ba107b420212a9f before 0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d; from c906965dee22d5e95d0651759ba107b420212a9f before 84b1259fe36ae0915f3d6ddcea6377779de48b82; from c906965dee22d5e95d0651759ba107b420212a9f before ae2b20f27732fe92055d9e7b350abc5cdf3e2414; from c906965dee22d5e95d0651759ba107b420212a9f before 6066977961fc6f437bc064f628cf9b0e4571c56c; from c906965dee22d5e95d0651759ba107b420212a9f before 1d833b27fb708d6fdf5de9f6b3a8be4bd4321565; from c906965dee22d5e95d0651759ba107b420212a9f before a0f90c8815706981c483a652a6aefca51a5e191c; 4.14 (not affected: before 4.14; from 4.14.264 up to 4.14.*; from 4.19.227 up to 4.19.*; from 5.4.175 up to 5.4.*; from 5.10.95 up to 5.10.*; from 5.15.18 up to 5.15.*; from 5.16.4 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 4.14 before 4.14.264; from 4.15 before 4.19.227; from 4.20 before 5.4.175; from 5.5 before 5.10.95; from 5.11 before 5.15.18; from 5.16 before 5.16.4; 5.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e8d092a62449dcfc73517ca43963d2b8f44d0516> (patch)
- <https://git.kernel.org/stable/c/0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d> (patch)
- <https://git.kernel.org/stable/c/84b1259fe36ae0915f3d6ddcea6377779de48b82> (patch)
- <https://git.kernel.org/stable/c/ae2b20f27732fe92055d9e7b350abc5cdf3e2414> (patch)
- <https://git.kernel.org/stable/c/6066977961fc6f437bc064f628cf9b0e4571c56c> (patch)
- <https://git.kernel.org/stable/c/1d833b27fb708d6fdf5de9f6b3a8be4bd4321565> (patch)
- <https://git.kernel.org/stable/c/a0f90c8815706981c483a652a6aefca51a5e191c> (patch)

## Sources

- CVE List: [CVE-2022-48771](https://www.cve.org/CVERecord?id=CVE-2022-48771), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48771](https://nvd.nist.gov/vuln/detail/CVE-2022-48771), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48771 · Whole record: https://cve.day/CVE-2022-48771.json · Rebuilt by cve.day 2026-11-25T22:58:19.861Z
