CVE-2022-48771

drm/vmwgfx: Fix stale file descriptors on failed usercopy

HIGH
7.8
CVSS Score
Published: June 20, 2024 at 11:13 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.14 ≤ v < 4.14.2644.14 ≤ v < 4.19.2274.14 ≤ v < 5.10.954.14 ≤ v < 5.15.184.14 ≤ v < 5.16.44.14 ≤ v < 5.174.14 ≤ v < 5.4.1754.15 ≤ v < 4.19.2274.20 ≤ v < 5.4.1755.11 ≤ v < 5.15.185.16 ≤ v < 5.16.45.5 ≤ v < 5.10.955.17 rc1c906965dee22d5e95d0651759ba107b420212a9f
Vendor states this is fixed in 0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d (fixed)
Vendor states this is fixed in 1d833b27fb708d6fdf5de9f6b3a8be4bd4321565 (fixed)
Vendor states this is fixed in 6066977961fc6f437bc064f628cf9b0e4571c56c (fixed)
Vendor states this is fixed in 84b1259fe36ae0915f3d6ddcea6377779de48b82 (fixed)
Vendor states this is fixed in a0f90c8815706981c483a652a6aefca51a5e191c (fixed)
Vendor states this is fixed in ae2b20f27732fe92055d9e7b350abc5cdf3e2414 (fixed)
Vendor states this is fixed in e8d092a62449dcfc73517ca43963d2b8f44d0516 (fixed)
Vendor states this is fixed in 4.14 (unaffected)
Vendor states this is fixed in 4.14.264 (unaffected)
Vendor states this is fixed in 4.19.227 (unaffected)
Vendor states this is fixed in 5.10.95 (unaffected)
Vendor states this is fixed in 5.15.18 (unaffected)
Vendor states this is fixed in 5.16.4 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.4.175 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0008a0c78fc33a84e2212a7c04e6b21a36ca6f4d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d833b27fb708d6fdf5de9f6b3a8be4bd4321565
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6066977961fc6f437bc064f628cf9b0e4571c56c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/84b1259fe36ae0915f3d6ddcea6377779de48b82
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0f90c8815706981c483a652a6aefca51a5e191c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae2b20f27732fe92055d9e7b350abc5cdf3e2414
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8d092a62449dcfc73517ca43963d2b8f44d0516

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card