# CVE-2026-98509: drm/virtio: fix memory leak of fence event on execbuffer failure

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:17:19.352Z
- **Modified:** 2026-10-19T10:19:04.340Z

## Who should check

- Anyone running Linux \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 43bfe2b60c149bf6effda25f245a00509061fa15; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 4e333e2336138f4659b1d7a0371c499f80428612; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 8fa78900fd24247277c03dc7b8a2864cb12d4340; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< ae583668f16d41fcc1b54f45848c1b6ac1d6669a; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< b74aad23d99b279bb34d135795f39a6d8ecdc075
- Anyone running Linux 5.16

## Description

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

drm/virtio: fix memory leak of fence event on execbuffer failure

virtio\_gpu\_execbuffer\_ioctl() reserves a DRM event with
drm\_event\_reserve\_init() when VIRTGPU\_EXECBUF\_RING\_IDX selects a ring that
userspace has enabled polling for. virtio\_gpu\_init\_submit() does this
before the BO handles, the command buffer, the syncobj arrays and the
in-fence are processed, so every later error path runs with the event
already pending, including plain argument validation failures such as an
invalid bo\_handle or an in-syncobj that carries no fence.

On those paths, virtio\_gpu\_cleanup\_submit() drops the out-fence without
cancelling the event. The fence is freed without ever having been emitted,
taking the only driver-side pointer to the event with it. Closing the DRM
file does not help. drm\_events\_release() unlinks pending events but
deliberately leaves the freeing to the driver's later drm\_send\_event(),
which never runs for an orphaned event, so the allocation is leaked
permanently.

Found when fuzzing the virtio driver with Syzkaller:

	BUG: memory leak
	unreferenced object 0xffff88802c176e80 (size 96):
	comm "syz.1.367", pid 10561, jiffies 4294960122
	hex dump (first 32 bytes):
		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
		c8 6e 17 2c 80 88 ff ff 00 00 00 00 00 00 00 00  .n.,............
	backtrace (crc e1973c6b):
		kmemleak\_alloc\_recursive include/linux/kmemleak.h:44 \[inline\]
		slab\_post\_alloc\_hook mm/slub.c:4597 \[inline\]
		slab\_alloc\_node mm/slub.c:4917 \[inline\]
		\_\_kmalloc\_cache\_noprof+0x49d/0x6f0 mm/slub.c:5485
		\_kmalloc\_noprof include/linux/slab.h:988 \[inline\]
		\_kzalloc\_noprof include/linux/slab.h:1309 \[inline\]
		virtio\_gpu\_fence\_event\_create drivers/gpu/drm/virtio/virtgpu\_submit.c:282 \[inline\]
		virtio\_gpu\_init\_submit drivers/gpu/drm/virtio/virtgpu\_submit.c:398 \[inline\]
		virtio\_gpu\_execbuffer\_ioctl+0xbbf/0x1aa0 drivers/gpu/drm/virtio/virtgpu\_submit.c:505
		drm\_ioctl\_kernel+0x1f4/0x3e0 drivers/gpu/drm/drm\_ioctl.c:817
		drm\_ioctl+0x5f4/0xc70 drivers/gpu/drm/drm\_ioctl.c:914
		vfs\_ioctl fs/ioctl.c:51 \[inline\]
		\_\_do\_sys\_ioctl fs/ioctl.c:597 \[inline\]
		\_\_se\_sys\_ioctl fs/ioctl.c:583 \[inline\]
		\_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:583
		do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
		do\_syscall\_64+0x116/0x800 arch/x86/entry/syscall\_64.c:94
		entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Fix by cancelling and freeing the DRM event on the execbuffer error path
before dropping the fence. Clear the fence's event pointer after
cancellation so it does not retain a dangling pointer.

## Affected and fixed versions

- Linux: \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 43bfe2b60c149bf6effda25f245a00509061fa15; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 4e333e2336138f4659b1d7a0371c499f80428612; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 8fa78900fd24247277c03dc7b8a2864cb12d4340; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< ae583668f16d41fcc1b54f45848c1b6ac1d6669a; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< b74aad23d99b279bb34d135795f39a6d8ecdc075 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98509.md
Affected: Linux >= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, < 43bfe2b60c149bf6effda25f245a00509061fa15; >= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, < 4e333e2336138f4659b1d7a0371c499f80428612; >= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, < 8fa78900fd24247277c03dc7b8a2864cb12d4340; >= cd7f5ca33585918febe5e2f…
Fixed in: Linux 43bfe2b60c149bf6effda25f245a00509061fa15, Linux 4e333e2336138f4659b1d7a0371c499f80428612, Linux 8fa78900fd24247277c03dc7b8a2864cb12d4340

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-2026-98509 being exploited?

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

### How serious is CVE-2026-98509?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98509?

Linux \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 43bfe2b60c149bf6effda25f245a00509061fa15; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 4e333e2336138f4659b1d7a0371c499f80428612; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< 8fa78900fd24247277c03dc7b8a2864cb12d4340; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< ae583668f16d41fcc1b54f45848c1b6ac1d6669a; \>= cd7f5ca33585918febe5e2f6dc090a21cfa775b0, \< b74aad23d99b279bb34d135795f39a6d8ecdc075; Linux 5.16.

### Is there a fix for CVE-2026-98509?

Yes. Fixed in Linux 43bfe2b60c149bf6effda25f245a00509061fa15, Linux 4e333e2336138f4659b1d7a0371c499f80428612, Linux 8fa78900fd24247277c03dc7b8a2864cb12d4340. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98509?

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

- other: <https://git.kernel.org/stable/c/43bfe2b60c149bf6effda25f245a00509061fa15>
- other: <https://git.kernel.org/stable/c/4e333e2336138f4659b1d7a0371c499f80428612>
- other: <https://git.kernel.org/stable/c/8fa78900fd24247277c03dc7b8a2864cb12d4340>
- other: <https://git.kernel.org/stable/c/ae583668f16d41fcc1b54f45848c1b6ac1d6669a>
- other: <https://git.kernel.org/stable/c/b74aad23d99b279bb34d135795f39a6d8ecdc075>

## 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-2026-98509>

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