CVE-2026-139587: media: iris: cancel sys error work on driver removal
In the Linux kernel, the following vulnerability has been resolved:
media: iris: cancel sys error work on driver removal
Cancel syserrorhandler before tearing down the driver.
The delayed work may still be pending when irisremove() runs. Since iriscore is allocated with devmkzalloc(), allowing the work to execute after driver removal could result in accessing freed memory.
[bod: Fixed patch title]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Cancel the iris sys_error_handler delayed work before tearing down the driver.
Event History
Frequently Asked Questions
When can the use-after-free occur?
It can occur during removal of the Iris media driver if its delayed sys_error_handler work is still pending. If that work runs after teardown, it may access the devm-allocated iris_core object after it has been freed.
What is the relevant exposure condition for systems using this driver?
Exposure depends on use of the Iris media driver and a driver-removal event occurring while sys_error_handler delayed work remains pending. The provided information does not identify affected kernel versions or configuration defaults.
What does the fix change?
The fix cancels sys_error_handler before the driver is torn down, preventing pending delayed work from executing against freed driver state.