Skip to contentSkip to conversation

CVE-2026-99769: drm/vc4: Drop the BO reservations outside of job_lock

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

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/vc4: Drop the BO reservations outside of job_lock

vc4_queue_submit() calls drm_exec_fini() with job_lock held and interrupts disabled. Besides unlocking the reservations, drm_exec_fini() frees the object array with kvfree(), which asks for preemptible task context or a non-NMI interrupt, and may reach might_sleep() through vfree().

Considering that an array that exceeds a page can take the vmalloc fallback, call drm_exec_fini() once job_lock is dropped. The reservations are then held across the job kick, which is harmless as nothing in the completion path takes a BO reservation.

Note that vc4_attach_fences() has to stay inside the critical section, as it walks exec, which the job done worker is free to release as soon as job_lock is dropped.

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

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

	Issue introduced in 6.15 with commit 04630796c437a9285643097825cbd3cd06603f47 and fixed in 6.18.64 with commit 548546866909b5e7dea02ac0efb9e1b8d6652d77
	Issue introduced in 6.15 with commit 04630796c437a9285643097825cbd3cd06603f47 and fixed in 7.3.5 with commit 6bdd3a24acae6a5f888cca9c148a5c8175f1c5b0
	Issue introduced in 6.15 with commit 04630796c437a9285643097825cbd3cd06603f47 and fixed in 7.4-rc2 with commit 8ef66514d7b993c9fb96a5886f001e3556610c1c

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-99769

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/vc4/vc4_gem.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/548546866909b5e7dea02ac0efb9e1b8d6652d77
	https://git.kernel.org/stable/c/6bdd3a24acae6a5f888cca9c148a5c8175f1c5b0
	https://git.kernel.org/stable/c/8ef66514d7b993c9fb96a5886f001e3556610c1c