{"id":"CVE-2026-139585","summary":"media: iris: reference count video instances","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: iris: reference count video instances\n\niris_get_instance() looks up an instance on core-\u003einstances and returns\nit after dropping core-\u003elock, without taking any reference. The threaded\ninterrupt handler uses this to find the instance a firmware response\nbelongs to and then takes inst-\u003elock. Meanwhile userspace may close the\nsame file descriptor: iris_close() removes the instance from the list,\ndestroys inst-\u003elock and frees the instance. The interrupt handler then\noperates on freed memory and a destroyed mutex, a use-after-free.\n\nAdd a kref to struct iris_inst. iris_get_instance() takes a reference\nunder core-\u003elock, so an instance it returns cannot be freed until the\ncaller drops that reference with iris_inst_put(). The instance is\nreleased (mutexes destroyed, memory freed) only when the last reference\ngoes away, whether that is held by the closing thread or the interrupt\nhandler.","modified":"2026-11-30T15:02:29.317002219Z","published":"2026-11-30T13:36:06.956Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139585.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ce4c550872276fa0b2a34fb26a35162fb058345"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af5f7df6c8b33bed714ec0aea15a0a2f48900c0a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da146dab51d1470262a148a0b31762bf8f32f76f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139585.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139585"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"38fc8beaba55e06c8831f21a96ec5e33e2f1978f"},{"fixed":"3ce4c550872276fa0b2a34fb26a35162fb058345"},{"fixed":"da146dab51d1470262a148a0b31762bf8f32f76f"},{"fixed":"af5f7df6c8b33bed714ec0aea15a0a2f48900c0a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139585.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139585.json"}}],"schema_version":"1.9.2"}