HIGH Introduced in 7.2
firewire IsoResource Race
CVE-2026-98587
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: firewire: cdev: fix back-transition for iso_resource_auto client resource The todo member of iso_resource_auto structure represents the state of the client resource and normally transitions in the following order: ISO_RES_AUTO_ALLOC -> ISO_RES_AUTO_REALLOC -> ISO_RES_AUTO_DEALLOC However, concurrent access from the work item and the file descriptor release function can cause the state to transition backwards from ISO_RES_AUTO_DEALLOC to ISO_RES_AUTO_REALLOC. Prevent the back-transition by checking the current state before updating it in the work item.
02KernelScan AI Analysis
Risk summary
A race condition in the FireWire isochronous resource state machine allows a local user with access to the FireWire character device to trigger a back-transition from deallocation to reallocation state. This can lead to kernel memory corruption, privilege escalation, or denial of service. The vulnerability is reachable by any local user who can open /dev/fw* devices, typically members of the video group.
Vulnerability analysis
The FireWire character device driver manages isochronous resources through a state machine with three states: allocation, reallocation, and deallocation. A work item and the file descriptor release path can concurrently modify the state variable without proper synchronization, allowing the state to incorrectly transition backwards from deallocation to reallocation. This race condition can corrupt the resource management logic, potentially causing use-after-free or double-free conditions in kernel memory. The fix adds a state check in the work item so it only advances from allocation to reallocation when the state has not already been moved to deallocation. Any local user with access to the FireWire device node can trigger this race by performing concurrent isochronous resource operations and closing the file descriptor.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.2 | 7.2.9 | ee1df60a0d0e |
| mainline | 7.2 | 7.3 | c6b51091caff |