CVE-2026-139571: RDMA/hfi1: shut down the trap timer before unregistering
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hfi1: shut down the trap timer before unregistering
MAD processing arms a trap timer embedded in each hfi1ibport. Device unregistration does not stop the timer, so its callback can run after the port and its containing hfi1devdata have been released.
Shut down every port timer before unregistering the IB device. The shutdown form also prevents a concurrent path from rearming the timer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
Shut down every hfi1_ibport trap timer before unregistering the IB device.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel with the RDMA hfi1 driver and Message Agent Datagram (MAD) processing can be exposed. The vulnerable path involves per-port trap timers in hfi1 devices during device unregistration.
When can the use-after-free occur?
The timer callback can run after an hfi1 port and its containing hfi1_devdata have been released, if a trap timer was armed by MAD processing and device unregistration did not stop it.
What does the fix change?
The fix shuts down every port's trap timer before unregistering the InfiniBand device. The shutdown mechanism also prevents a concurrent path from rearming the timer during teardown.