Skip to contentSkip to conversation

CVE-2026-98404: drm/virtio: Fix a NULL vs ERR_PTR() bug in virtio_gpu_user_framebuffer_create()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 14

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

drm/virtio: Fix a NULL vs ERR_PTR() bug in virtio_gpu_user_framebuffer_create()

Smatch complains that returning a NULL here will lead to a NULL pointer dereference in drm_mode_addfb2(). Return an error pointer instead.

The Linux kernel CVE team has assigned CVE-2026-98404 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 5.10.271 with commit 975f3cf302bb7d7336df4c630a7c07e12780ad10
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 5.15.222 with commit 07de0b31dd64094cd7d25729beaf2ecae74daa72
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 6.1.189 with commit 5eda6cda0031ba17559d56882353be39e568ec09
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 6.6.158 with commit 3fe8a33715265ecb24ca0bcd0a575c926da4277c
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 6.12.111 with commit 974845d2535a250b180e62f9ed50284f312c01a3
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 6.18.53 with commit 45dc2788a5b0e1e2824d1f98af521bd3acc340d7
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 7.2.7 with commit f1050a7d365283678b253828739d3866ae546a72
	Issue introduced in 4.2 with commit dc5698e80cf724770283e10414054662bdf6ccfa and fixed in 7.3-rc2 with commit 94579f24e2b526a04eb41050af0ba018c6f528e7

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98404

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/virtio/virtgpu_display.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/975f3cf302bb7d7336df4c630a7c07e12780ad10
	https://git.kernel.org/stable/c/07de0b31dd64094cd7d25729beaf2ecae74daa72
	https://git.kernel.org/stable/c/5eda6cda0031ba17559d56882353be39e568ec09
	https://git.kernel.org/stable/c/3fe8a33715265ecb24ca0bcd0a575c926da4277c
	https://git.kernel.org/stable/c/974845d2535a250b180e62f9ed50284f312c01a3
	https://git.kernel.org/stable/c/45dc2788a5b0e1e2824d1f98af521bd3acc340d7
	https://git.kernel.org/stable/c/f1050a7d365283678b253828739d3866ae546a72
	https://git.kernel.org/stable/c/94579f24e2b526a04eb41050af0ba018c6f528e7