{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48899","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-08-21T06:06:23.291Z","datePublished":"2024-08-21T06:10:31.936Z","dateUpdated":"2026-08-05T08:52:50.499Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T08:52:50.499Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/virtio: Fix GEM handle creation UAF\n\nUserspace can guess the handle value and try to race GEM object creation\nwith handle close, resulting in a use-after-free if we dereference the\nobject after dropping the handle's reference.  For that reason, dropping\nthe handle's reference must be done *after* we are done dereferencing\nthe object."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Reachable only via local DRM ioctls (VIRTGPU_RESOURCE_CREATE / RESOURCE_CREATE_BLOB and GEM_CLOSE) on `/dev/dri/renderD*` or the primary node; not via network packet processing.\nAC:L - The attacker controls both sides of the race—issuing resource-create while another thread closes a predicted sequential GEM handle IDR value—so success does not depend on external conditions beyond attacker influence.\nPR:L - The vulnerable ioctls are marked DRM_RENDER_ALLOW and require only an open render/primary DRM fd, which unprivileged users routinely have; no CAP_SYS_ADMIN or DRM master is required.\nUI:N - The attacker triggers the bug entirely with their own ioctl calls; no separate victim action is needed.\nS:U - The UAF corrupts guest-kernel GEM object state and enables privilege escalation within the same kernel security authority; it is not a guest-to-host/VM escape.\nC:H - Use-after-free of the GEM object after the handle’s last reference is dropped enables reclaim/spray and arbitrary kernel memory disclosure, including values returned to userspace via res_handle.\nI:H - The same UAF provides a heap corruption primitive that can be turned into arbitrary write / control-flow hijacking in the kernel.\nA:H - Dereferencing the freed GEM object can oops/panic the kernel even when not fully exploited for code execution."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/virtio/virtgpu_ioctl.c"],"versions":[{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"19ec87d06acfab2313ee82b2a689bf0c154e57ea","status":"affected","versionType":"git"},{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"d01d6d2b06c0d8390adf8f3ba08aa60b5642ef73","status":"affected","versionType":"git"},{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"68bcd063857075d2f9edfed6024387ac377923e2","status":"affected","versionType":"git"},{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"011ecdbcd520c90c344b872ca6b4821f7783b2f8","status":"affected","versionType":"git"},{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"adc48e5e408afbb01d261bd303fd9fbbbaa3e317","status":"affected","versionType":"git"},{"version":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","lessThan":"52531258318ed59a2dc5a43df2eaf0eb1d65438e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/virtio/virtgpu_ioctl.c"],"versions":[{"version":"4.4","status":"affected"},{"version":"0","lessThan":"4.4","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.164","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.89","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.7","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"4.19.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"5.4.229"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"5.10.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"5.15.89"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.1.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/19ec87d06acfab2313ee82b2a689bf0c154e57ea"},{"url":"https://git.kernel.org/stable/c/d01d6d2b06c0d8390adf8f3ba08aa60b5642ef73"},{"url":"https://git.kernel.org/stable/c/68bcd063857075d2f9edfed6024387ac377923e2"},{"url":"https://git.kernel.org/stable/c/011ecdbcd520c90c344b872ca6b4821f7783b2f8"},{"url":"https://git.kernel.org/stable/c/adc48e5e408afbb01d261bd303fd9fbbbaa3e317"},{"url":"https://git.kernel.org/stable/c/52531258318ed59a2dc5a43df2eaf0eb1d65438e"}],"title":"drm/virtio: Fix GEM handle creation UAF","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48899","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:03:56.343879Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-12T17:33:15.193Z"}}]}}