Skip to contentSkip to conversation

CVE-2026-99185: firewire: core: fix race condition in split transaction handling

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 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:

firewire: core: fix race condition in split transaction handling

For a split transaction, either fw_core_handle_response() or split_transaction_timeout_callback() may manipulate the same transaction entry in the pending transaction list. The return value of timer_delete() is used to determine which function handles the entry. If the transaction is a split transaction and timer_delete() returns zero, the timeout callback may already be running. In this case, the response handler must leave the entry in the list for the timeout callback to remove.

A previous code refactoring broke this behavior, introducing a race condition in which both functions could process the same transaction. This could lead to a use-after-free on the transaction initiator side.

Fix the regression by ensuring that the response handler does not process the transaction when timer_delete() returns zero. The timeout callback is responsible for removing the entry from the pending transaction list.

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

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

	Issue introduced in 6.19 with commit fa2dc27100768a8a994c377051fa17a47cc66c76 and fixed in 7.2.13 with commit a8caee0e623ca5d56e829032f9ec073c09e4d224
	Issue introduced in 6.19 with commit fa2dc27100768a8a994c377051fa17a47cc66c76 and fixed in 7.3 with commit 7f9f2d6abc40f79e802b4063859eda343043b85c

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

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/firewire/core-transaction.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/a8caee0e623ca5d56e829032f9ec073c09e4d224
	https://git.kernel.org/stable/c/7f9f2d6abc40f79e802b4063859eda343043b85c