{"api_version":"1","generated_at":"2026-12-01T06:50:21+00:00","cve":"CVE-2026-139585","urls":{"html":"https://cve.report/CVE-2026-139585","api":"https://cve.report/api/cve/CVE-2026-139585.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139585","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139585"},"summary":{"title":"media: iris: reference count video instances","description":"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->instances and returns\nit after dropping core->lock, without taking any reference. The threaded\ninterrupt handler uses this to find the instance a firmware response\nbelongs to and then takes inst->lock. Meanwhile userspace may close the\nsame file descriptor: iris_close() removes the instance from the list,\ndestroys inst->lock 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->lock, 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:39","updated_at":"2026-12-01 06:17:46"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/af5f7df6c8b33bed714ec0aea15a0a2f48900c0a","name":"https://git.kernel.org/stable/c/af5f7df6c8b33bed714ec0aea15a0a2f48900c0a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ce4c550872276fa0b2a34fb26a35162fb058345","name":"https://git.kernel.org/stable/c/3ce4c550872276fa0b2a34fb26a35162fb058345","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da146dab51d1470262a148a0b31762bf8f32f76f","name":"https://git.kernel.org/stable/c/da146dab51d1470262a148a0b31762bf8f32f76f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139585","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139585","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38fc8beaba55e06c8831f21a96ec5e33e2f1978f 3ce4c550872276fa0b2a34fb26a35162fb058345 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38fc8beaba55e06c8831f21a96ec5e33e2f1978f da146dab51d1470262a148a0b31762bf8f32f76f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38fc8beaba55e06c8831f21a96ec5e33e2f1978f af5f7df6c8b33bed714ec0aea15a0a2f48900c0a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c","drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c","drivers/media/platform/qcom/iris/iris_instance.h","drivers/media/platform/qcom/iris/iris_utils.c","drivers/media/platform/qcom/iris/iris_utils.h","drivers/media/platform/qcom/iris/iris_vidc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3ce4c550872276fa0b2a34fb26a35162fb058345","status":"affected","version":"38fc8beaba55e06c8831f21a96ec5e33e2f1978f","versionType":"git"},{"lessThan":"da146dab51d1470262a148a0b31762bf8f32f76f","status":"affected","version":"38fc8beaba55e06c8831f21a96ec5e33e2f1978f","versionType":"git"},{"lessThan":"af5f7df6c8b33bed714ec0aea15a0a2f48900c0a","status":"affected","version":"38fc8beaba55e06c8831f21a96ec5e33e2f1978f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c","drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c","drivers/media/platform/qcom/iris/iris_instance.h","drivers/media/platform/qcom/iris/iris_utils.c","drivers/media/platform/qcom/iris/iris_utils.h","drivers/media/platform/qcom/iris/iris_vidc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.15"},{"lessThan":"6.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->instances and returns\nit after dropping core->lock, without taking any reference. The threaded\ninterrupt handler uses this to find the instance a firmware response\nbelongs to and then takes inst->lock. Meanwhile userspace may close the\nsame file descriptor: iris_close() removes the instance from the list,\ndestroys inst->lock 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->lock, 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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The free is iris_close() on a /dev/videoN fd for qcom-iris-decoder/encoder. The reader is the threaded IRQ handler (iris_hfi_isr_handler → iris_hfi_gen1/gen2 response handler → iris_get_instance()) processing VPU firmware messages. No network data is involved, only local open/ioctl/close on the V4L2 node.\nAC:L - placeholder\nPR:L - placeholder\nUI:N - placeholder\nS:U - placeholder\nC:H - placeholder\nI:H - placeholder\nA:H - placeholder"}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:51.599Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3ce4c550872276fa0b2a34fb26a35162fb058345"},{"url":"https://git.kernel.org/stable/c/da146dab51d1470262a148a0b31762bf8f32f76f"},{"url":"https://git.kernel.org/stable/c/af5f7df6c8b33bed714ec0aea15a0a2f48900c0a"}],"title":"media: iris: reference count video instances","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139585","datePublished":"2026-11-30T13:36:06.956Z","dateReserved":"2026-11-30T13:22:15.942Z","dateUpdated":"2026-12-01T05:42:51.599Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:39","lastModifiedDate":"2026-12-01 06:17:46","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139585","Ordinal":"1","Title":"media: iris: reference count video instances","CVE":"CVE-2026-139585","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139585","Ordinal":"1","NoteData":"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->instances and returns\nit after dropping core->lock, without taking any reference. The threaded\ninterrupt handler uses this to find the instance a firmware response\nbelongs to and then takes inst->lock. Meanwhile userspace may close the\nsame file descriptor: iris_close() removes the instance from the list,\ndestroys inst->lock 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->lock, 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.","Type":"Description","Title":"media: iris: reference count video instances"}]}}}