Skip to contentSkip to conversation

CVE-2026-80645: rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

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

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

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

rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()

With a list_for_each() loop, if we don't find the item we are looking for in the list, then the loop exits with the iterator, which is "dbell" in this loop, pointing to invalid memory.

This code uses the "found" variable to determine if we have found the doorbell we are looking for or not. However, the problem that the "found" variable needs to be set to false at the start of each iteration, otherwise after the first correct doorbell, then everything is marked as found.

Reset the "found" to false at the start of the iteration and move the variable inside the loop.

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

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

	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 5.10.261 with commit 9e775c3199903d7c09a52530042b1198eab705bd
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 5.15.212 with commit 81c06ef66c3ab6eeaa72eb790c90ae043cdb3d43
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 6.1.178 with commit 13092966ba5d8fb214a4efeddc87f9ed0fd2f945
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 6.6.145 with commit acd54f42abbbd806464468838dbc04efd203d2be
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 6.12.97 with commit 3b5c66e922aa6a3331915a14520848a5b3beccc7
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 6.18.40 with commit 070f356ea4f419e4e85e4089381f4477f41d969e
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 7.1.5 with commit dc28a14f3e4546b2b06098d24177942540581a5f
	Issue introduced in 3.2 with commit 48618fb4e522d9d02e217ac05f52749545c1af20 and fixed in 7.2 with commit fc15e3a30ddd950f009c76765331783b9af94a87

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

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/rapidio/devices/tsi721.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/9e775c3199903d7c09a52530042b1198eab705bd
	https://git.kernel.org/stable/c/81c06ef66c3ab6eeaa72eb790c90ae043cdb3d43
	https://git.kernel.org/stable/c/13092966ba5d8fb214a4efeddc87f9ed0fd2f945
	https://git.kernel.org/stable/c/acd54f42abbbd806464468838dbc04efd203d2be
	https://git.kernel.org/stable/c/3b5c66e922aa6a3331915a14520848a5b3beccc7
	https://git.kernel.org/stable/c/070f356ea4f419e4e85e4089381f4477f41d969e
	https://git.kernel.org/stable/c/dc28a14f3e4546b2b06098d24177942540581a5f
	https://git.kernel.org/stable/c/fc15e3a30ddd950f009c76765331783b9af94a87