media: iris: reference count video instances
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
media: iris: reference count video instances
iris_get_instance() looks up an instance on core->instances and returns it after dropping core->lock, without taking any reference. The threaded interrupt handler uses this to find the instance a firmware response belongs to and then takes inst->lock. Meanwhile userspace may close the same file descriptor: iris_close() removes the instance from the list, destroys inst->lock and frees the instance. The interrupt handler then operates on freed memory and a destroyed mutex, a use-after-free.
Add a kref to struct iris_inst. iris_get_instance() takes a reference under core->lock, so an instance it returns cannot be freed until the caller drops that reference with iris_inst_put(). The instance is released (mutexes destroyed, memory freed) only when the last reference goes away, whether that is held by the closing thread or the interrupt handler.
| Product | Versions |
|---|---|
| Linux Linux | 38fc8beaba55e06c8831f21a96ec5e33e2f1978f to before 3ce4c550872276fa0b2a34fb26a35162fb058345 Affected38fc8beaba55e06c8831f21a96ec5e33e2f1978f to before da146dab51d1470262a148a0b31762bf8f32f76f Affected38fc8beaba55e06c8831f21a96ec5e33e2f1978f to before af5f7df6c8b33bed714ec0aea15a0a2f48900c0a Affected |
| Linux Linux | 6.15 Affectedbefore 6.15 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.