CVE-2026-139585

Source
https://cve.org/CVERecord?id=CVE-2026-139585
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139585.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139585
Downstream
Published
2026-11-30T13:36:06Z
Modified
2026-11-30T15:02:29Z
Summary
media: iris: reference count video instances
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139585.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"