CVE-2026-139586: media: iris: take core lock when scanning the instance list
In the Linux kernel, the following vulnerability has been resolved:
media: iris: take core lock when scanning the instance list
irischecksessionsupported() walks core->instances to confirm the current instance is registered, but does so without holding core->lock. A concurrent irisclose() takes core->lock and removes a (possibly different) instance from the list via listdelinit() before freeing it, so the lockless traversal can follow a freed pointer and dereference it, resulting in a use-after-free.
Hold core->lock across the list traversal, matching the other iterators over core->instances such as irischeckcorembpf(). The lock is dropped before irischeckcorembpf() is called so the nesting is unchanged.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Hold core->lock across traversal of core->instances when scanning the instance list.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
The issue requires iris_check_session_supported() to scan core->instances without core->lock while a concurrent iris_close() holds that lock and removes an instance from the list. The lockless scan can then follow and dereference a pointer to an instance that has been freed.
Which systems are exposed?
Systems running the Linux kernel's media iris component are relevant. Exposure depends on concurrent activity involving session-support checking and instance closure; the provided data does not identify affected kernel versions or configurations.
How can I determine whether the fix is present?
Inspect the kernel source for iris_check_session_supported(): the traversal of core->instances should be performed while holding core->lock. The provided references identify stable kernel commits containing the resolution.