Skip to contentSkip to conversation

CVE-2026-23305: accel/rocket: fix unwinding in error path in rocket_probe

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

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

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

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

accel/rocket: fix unwinding in error path in rocket_probe

When rocket_core_init() fails (as could be the case with EPROBE_DEFER), we need to properly unwind by decrementing the counter we just incremented and if this is the first core we failed to probe, remove the rocket DRM device with rocket_device_fini() as well. This matches the logic in rocket_remove(). Failing to properly unwind results in out-of-bounds accesses.

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

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

	Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 6.18.17 with commit 7fc4b49474c836cee7d9801abf05e0198fcbfa74
	Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 6.19.7 with commit eeaf28c8f4defe371a008a5ddefaf18abf534f81
	Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 7.0-rc1 with commit 34f4495a7f72895776b81969639f527c99eb12b9

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

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/accel/rocket/rocket_drv.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/7fc4b49474c836cee7d9801abf05e0198fcbfa74
	https://git.kernel.org/stable/c/eeaf28c8f4defe371a008a5ddefaf18abf534f81
	https://git.kernel.org/stable/c/34f4495a7f72895776b81969639f527c99eb12b9