# CVE-2023-52648: drm/vmwgfx: Unmap the surface before resetting it on a plane state

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-01T05:17:02.278Z
- **Modified:** 2026-06-17T06:43:15.303Z

## Who should check

- Anyone running Linux \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 0a23f95af7f28dae7c0f7c82578ca5e1a239d461; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 105f72cc48c4c93f4578fcc61e06276471858e92; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 75baad63c033b3b900d822bffbc96c9d3649bc75; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 27571c64f1855881753e6f33c3186573afbab7ba
- Anyone running Linux 5.19

## Description

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

drm/vmwgfx: Unmap the surface before resetting it on a plane state

Switch to a new plane state requires unreferencing of all held surfaces.
In the work required for mob cursors the mapped surfaces started being
cached but the variable indicating whether the surface is currently
mapped was not being reset. This leads to crashes as the duplicated
state, incorrectly, indicates the that surface is mapped even when
no surface is present. That's because after unreferencing the surface
it's perfectly possible for the plane to be backed by a bo instead of a
surface.

Reset the surface mapped flag when unreferencing the plane state surface
to fix null derefs in cleanup. Fixes crashes in KDE KWin 6.0 on Wayland:

Oops: 0000 \[\#1\] PREEMPT SMP PTI
CPU: 4 PID: 2533 Comm: kwin\_wayland Not tainted 6.7.0-rc3-vmwgfx \#2
Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
RIP: 0010:vmw\_du\_cursor\_plane\_cleanup\_fb+0x124/0x140 \[vmwgfx\]
Code: 00 00 00 75 3a 48 83 c4 10 5b 5d c3 cc cc cc cc 48 8b b3 a8 00 00 00 48 c7 c7 99 90 43 c0 e8 93 c5 db ca 48 8b 83 a8 00 00 00 \<48\> 8b 78 28 e8 e3 f\>
RSP: 0018:ffffb6b98216fa80 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff969d84cdcb00 RCX: 0000000000000027
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff969e75f21600
RBP: ffff969d4143dc50 R08: 0000000000000000 R09: ffffb6b98216f920
R10: 0000000000000003 R11: ffff969e7feb3b10 R12: 0000000000000000
R13: 0000000000000000 R14: 000000000000027b R15: ffff969d49c9fc00
FS:  00007f1e8f1b4180(0000) GS:ffff969e75f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000028 CR3: 0000000104006004 CR4: 00000000003706f0
Call Trace:
 \<TASK\>
 ? \_\_die+0x23/0x70
 ? page\_fault\_oops+0x171/0x4e0
 ? exc\_page\_fault+0x7f/0x180
 ? asm\_exc\_page\_fault+0x26/0x30
 ? vmw\_du\_cursor\_plane\_cleanup\_fb+0x124/0x140 \[vmwgfx\]
 drm\_atomic\_helper\_cleanup\_planes+0x9b/0xc0
 commit\_tail+0xd1/0x130
 drm\_atomic\_helper\_commit+0x11a/0x140
 drm\_atomic\_commit+0x97/0xd0
 ? \_\_pfx\_\_\_drm\_printfn\_info+0x10/0x10
 drm\_atomic\_helper\_update\_plane+0xf5/0x160
 drm\_mode\_cursor\_universal+0x10e/0x270
 drm\_mode\_cursor\_common+0x102/0x230
 ? \_\_pfx\_drm\_mode\_cursor2\_ioctl+0x10/0x10
 drm\_ioctl\_kernel+0xb2/0x110
 drm\_ioctl+0x26d/0x4b0
 ? \_\_pfx\_drm\_mode\_cursor2\_ioctl+0x10/0x10
 ? \_\_pfx\_drm\_ioctl+0x10/0x10
 vmw\_generic\_ioctl+0xa4/0x110 \[vmwgfx\]
 \_\_x64\_sys\_ioctl+0x94/0xd0
 do\_syscall\_64+0x61/0xe0
 ? \_\_x64\_sys\_ioctl+0xaf/0xd0
 ? syscall\_exit\_to\_user\_mode+0x2b/0x40
 ? do\_syscall\_64+0x70/0xe0
 ? \_\_x64\_sys\_ioctl+0xaf/0xd0
 ? syscall\_exit\_to\_user\_mode+0x2b/0x40
 ? do\_syscall\_64+0x70/0xe0
 ? exc\_page\_fault+0x7f/0x180
 entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
RIP: 0033:0x7f1e93f279ed
Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 \<89\> c2 3d 00 f0 ff f\>
RSP: 002b:00007ffca0faf600 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000055db876ed2c0 RCX: 00007f1e93f279ed
RDX: 00007ffca0faf6c0 RSI: 00000000c02464bb RDI: 0000000000000015
RBP: 00007ffca0faf650 R08: 000055db87184010 R09: 0000000000000007
R10: 000055db886471a0 R11: 0000000000000246 R12: 00007ffca0faf6c0
R13: 00000000c02464bb R14: 0000000000000015 R15: 00007ffca0faf790
 \</TASK\>
Modules linked in: snd\_seq\_dummy snd\_hrtimer nf\_conntrack\_netbios\_ns nf\_conntrack\_broadcast nft\_fib\_inet nft\_fib\_ipv4 nft\_fib\_ipv6 nft\_fib nft\_reject\_ine\>
CR2: 0000000000000028
---\[ end trace 0000000000000000 \]---
RIP: 0010:vmw\_du\_cursor\_plane\_cleanup\_fb+0x124/0x140 \[vmwgfx\]
Code: 00 00 00 75 3a 48 83 c4 10 5b 5d c3 cc cc cc cc 48 8b b3 a8 00 00 00 48 c7 c7 99 90 43 c0 e8 93 c5 db ca 48 8b 83 a8 00 00 00 \<48\> 8b 78 28 e8 e3 f\>
RSP: 0018:ffffb6b98216fa80 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff969d84cdcb00 RCX: 0000000000000027
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff969e75f21600
RBP: ffff969d4143
---truncated---

## Affected and fixed versions

- Linux: \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 0a23f95af7f28dae7c0f7c82578ca5e1a239d461; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 105f72cc48c4c93f4578fcc61e06276471858e92; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 75baad63c033b3b900d822bffbc96c9d3649bc75; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 27571c64f1855881753e6f33c3186573afbab7ba (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 27571c64f1855881753e6f33c3186573afbab7ba or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52648. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52648.md
Affected: Linux >= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, < 0a23f95af7f28dae7c0f7c82578ca5e1a239d461; >= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, < 105f72cc48c4c93f4578fcc61e06276471858e92; >= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, < 75baad63c033b3b900d822bffbc96c9d3649bc75; >= 485d98d472d53f9617ffdfb…
Fixed in: Linux 0a23f95af7f28dae7c0f7c82578ca5e1a239d461, Linux 105f72cc48c4c93f4578fcc61e06276471858e92, Linux 75baad63c033b3b900d822bffbc96c9d3649bc75, Linux 27571c64f1855881753e6f33c3186573afbab7ba

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52648 being exploited?

There is no confirmed exploitation: CVE-2023-52648 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52648?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52648?

Linux \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 0a23f95af7f28dae7c0f7c82578ca5e1a239d461; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 105f72cc48c4c93f4578fcc61e06276471858e92; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 75baad63c033b3b900d822bffbc96c9d3649bc75; \>= 485d98d472d53f9617ffdfba5e677ac29ad4fe20, \< 27571c64f1855881753e6f33c3186573afbab7ba; Linux 5.19.

### Is there a fix for CVE-2023-52648?

Yes. Fixed in Linux 0a23f95af7f28dae7c0f7c82578ca5e1a239d461, Linux 105f72cc48c4c93f4578fcc61e06276471858e92, Linux 75baad63c033b3b900d822bffbc96c9d3649bc75, Linux 27571c64f1855881753e6f33c3186573afbab7ba. Upgrade Linux to 27571c64f1855881753e6f33c3186573afbab7ba or later.

### How do I check if I'm affected by CVE-2023-52648?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0a23f95af7f28dae7c0f7c82578ca5e1a239d461>
- patch: <https://git.kernel.org/stable/c/105f72cc48c4c93f4578fcc61e06276471858e92>
- patch: <https://git.kernel.org/stable/c/75baad63c033b3b900d822bffbc96c9d3649bc75>
- patch: <https://git.kernel.org/stable/c/27571c64f1855881753e6f33c3186573afbab7ba>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52648>

HTML: <https://flawdb.com/CVE-2023-52648> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52648>
