Skip to contentSkip to conversation

CVE-2026-93061: gpu: host1x: Avoid stack over-read in debug output helpers

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

gpu: host1x: Avoid stack over-read in debug output helpers

host1x_debug_output() and host1x_debug_cont() used vsnprintf(), which returns the length the formatted string would have reached with an unbounded buffer. That return value was passed straight to o->fn as the number of bytes to emit.

This could cause a read past end of the output buffer if a call to host1x_debug_* produced a string longer than 256 bytes. This only affected the debugfs files as the printk debug sink ignores the number of bytes. In practice, this is very unlikely to occur.

Fix by switching to vscnprintf(), which returns the number of bytes actually written.

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

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

	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 5.10.270 with commit d7a560dc912756fd8b39b28b10818d931e863d2d
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 5.15.221 with commit 41517c46002afd717f0f2d0975c740dd610f87fe
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 6.1.188 with commit ebab3a25a0403bcbc0c40ef77d69d23270e45547
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 6.6.157 with commit 4f9f0afdbdf513a49065207ff6b7e1d15051175a
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 6.12.110 with commit 819dd96a6571f2b12496b080e5187ba3fa897232
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 6.18.52 with commit 9ad7a6ccc7b839247663d57d3dbb4481dec492de
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 7.2.6 with commit b00290d1dc23a5ef9a0d3103aad1fe2274e86569
	Issue introduced in 3.10 with commit 6236451d83a720072053855fa63d51934024a707 and fixed in 7.3-rc1 with commit bc17ac285fb708f22a8fa2c0ed32eceb1d37e6d6

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

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/host1x/debug.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/d7a560dc912756fd8b39b28b10818d931e863d2d
	https://git.kernel.org/stable/c/41517c46002afd717f0f2d0975c740dd610f87fe
	https://git.kernel.org/stable/c/ebab3a25a0403bcbc0c40ef77d69d23270e45547
	https://git.kernel.org/stable/c/4f9f0afdbdf513a49065207ff6b7e1d15051175a
	https://git.kernel.org/stable/c/819dd96a6571f2b12496b080e5187ba3fa897232
	https://git.kernel.org/stable/c/9ad7a6ccc7b839247663d57d3dbb4481dec492de
	https://git.kernel.org/stable/c/b00290d1dc23a5ef9a0d3103aad1fe2274e86569
	https://git.kernel.org/stable/c/bc17ac285fb708f22a8fa2c0ed32eceb1d37e6d6