Skip to contentSkip to conversation

CVE-2026-98155: accel/qaic: Address potential out-of-bounds read in resp_worker()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 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/qaic: Address potential out-of-bounds read in resp_worker()

Although 'commit 2feec5ae5df7 ("accel/qaic: Handle DBC deactivation if the owner went away")' fixes the scenario it was intended for by walking the message and only decoding QAIC_TRANS_DEACTIVATE_FROM_DEV, if present, it skipped over the bounds checking code that is included in decode_message(). This could lead to issues such as reading past the slab allocation's end, infinite loops or kernel panics. For those issues to happen, a malformed wire message is needed to be sent from the device.

Instead of duplicating the bounds checking code already present in decode_message(), use the function inside resp_worker().

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

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

	Issue introduced in 6.12.81 with commit 08021f2d4a557d6491e3bcc288e96425f50aa3cf and fixed in 6.12.111 with commit f4b64488f3deca63f7fbc7d7c3835b2e668003f9
	Issue introduced in 6.18.22 with commit f403094d9075d7c565a3d81002b781c325cb3c07 and fixed in 6.18.53 with commit 12deeade460d47031267256ba07add51cc7eabd0
	Issue introduced in 7.0 with commit 2feec5ae5df785658924ab6bd91280dc3926507c and fixed in 7.2.7 with commit c72e81ee46bdd4c221114d6e9515e9b4647616d7
	Issue introduced in 7.0 with commit 2feec5ae5df785658924ab6bd91280dc3926507c and fixed in 7.3-rc2 with commit ab243f74ab4084ca5c8dec608cb5b0deb27db067
	Issue introduced in 6.6.134 with commit 2dd67966f39a2abf8ccb4865031c722e40e01b7f
	Issue introduced in 6.19.12 with commit ee0180e77e6c8482644569632065411de844c515

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

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/qaic/qaic_control.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/f4b64488f3deca63f7fbc7d7c3835b2e668003f9
	https://git.kernel.org/stable/c/12deeade460d47031267256ba07add51cc7eabd0
	https://git.kernel.org/stable/c/c72e81ee46bdd4c221114d6e9515e9b4647616d7
	https://git.kernel.org/stable/c/ab243f74ab4084ca5c8dec608cb5b0deb27db067