CVE-2026-139585: Linux kernel Qualcomm Iris video driver lets a firmware interrupt use an instance userspace has already closed and freed

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

Iris is the V4L2 driver for the hardware video decoder and encoder in recent Qualcomm SoCs. The kernel CNA record says its instance lookup, iris_get_instance(), “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.” The fix adds a kref to the instance. The CNA and Red Hat score it 7.8; Red Hat confines exposure to “systems with Qualcomm Iris video accelerator hardware”. On a Qualcomm Snapdragon board or laptop running a 6.15 or later kernel where non-root users can open the video device, upgrade to a kernel at or above 6.18.65 or 7.3.6 and reboot; x86 servers and anything without Iris hardware are not in the path.

CVE-2026-139585 at a glance.

ComponentLinux kernel, Qualcomm Iris video codec driver (drivers/media/platform/qcom/iris/: iris_vidc.c, iris_utils.c, iris_utils.h, iris_instance.h, the gen1 and gen2 response handlers): the instance lookup used by the firmware-response interrupt
Affected versionsfrom the commit that introduced the lookup, 38fc8beaba55 (“media: iris: implement reqbuf ioctl with vb2_queue_setup”, 6.15): 6.15 up to 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1. Kernels before 6.15 do not contain the driver path and are not listed
Fixed inmainline 7.4-rc1 (commit af5f7df6, the one Debian cites) and stable 6.18.65, 7.3.6. Six files, +32/−5: a kref in struct iris_inst, taken under core->lock by iris_get_instance() and dropped with the new iris_inst_put(); mutexes and memory are released only by the last reference
SeverityKernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric only; Red Hat Important, 7.8 on the same vector (draft, CWE-825), bug 2587053 “privilege escalation via use-after-free in Iris video driver”; Ubuntu Medium, no score
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00133 (3rd percentile) on 1 December 2026
Who is exposedA Qualcomm SoC with the Iris codec (recent Snapdragon boards and Snapdragon X laptops) on a 6.15+ kernel, where a non-root account can open the V4L2 node and drive decode or encode while closing the descriptor. The race is between the closing thread and the firmware-response interrupt. Red Hat lists no affected products: RHEL does not ship this hardware
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

A V4L2 codec driver keeps one instance per open file descriptor, and the hardware’s firmware answers requests asynchronously; when a response arrives, the threaded interrupt handler has to find which instance it belongs to. Iris did that by walking the core’s instance list under core->lock, then releasing the lock and returning the pointer, so the handler could take the instance’s own mutex and process the response.

The record describes what goes wrong when the owner closes the descriptor at that moment: iris_close() takes the instance off the list, destroys inst->lock and frees the structure, and the interrupt handler, which holds a bare pointer and no reference, then locks a destroyed mutex and reads and writes freed memory. That is the classic lookup-without-reference use-after-free; the window is small but a local user who can open the device can open and close it in a loop while the firmware is busy, which is why the CNA scores it as a full local compromise.

The fix, signed off by Dmitry Baryshkov and Bryan O’Donoghue, adds a kref to struct iris_inst; iris_get_instance() now takes a reference while it still holds core->lock, both response handlers drop it with iris_inst_put() when they are done, and the release routine that destroys the mutexes and frees the memory runs only when the last reference goes, whichever side holds it. Debian marks bookworm and trixie not affected because their kernels predate the driver; Ubuntu lists every release as needing evaluation. git.kernel.org refuses automated readers, so the commit was read on GitHub.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The driver exists only from 6.15 and only matters on Qualcomm hardware, so most server rows are clean by construction.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.x) and trixie (6.12.x) not affected (“vulnerable code not present”); fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1
UbuntuMedium, no Ubuntu CVSS; linux needs evaluation in every supported release (26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and the ESM releases); no USN on 2 December 2026nothing released on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2587053, CWE-825); no affected products listed: Red Hat does not ship the Iris hardware or the driver path, and the hydra record has no package table—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply6.18.65 / 7.3.6 or later (series before 6.15 do not have the driver)

How to check

Three questions: is the running kernel 6.15 or later and below the fixed version, is the Iris driver bound to hardware here, and can a non-root user open its video node. On anything that is not a Qualcomm SoC the second answer is no and the page does not apply.

# 1. the running kernel: affected from 6.15; fixed in 6.18.65, 7.3.6 or later
uname -r

# 2. is the Iris driver present and bound to a device
lsmod | grep -E '^qcom_iris|^iris'          # module loaded?
ls /sys/bus/platform/drivers/qcom-iris/ 2>/dev/null   # a bound device shows as a *.video-codec entry

# 3. which video node is Iris, and who can open it
v4l2-ctl --list-devices 2>/dev/null | grep -i -A2 iris
ls -l /dev/video* 2>/dev/null
getent group video

A kernel at or above the fixed version is done, and one below 6.15 does not have the driver. No qcom-iris driver directory or module means no Iris hardware and nothing to reach, which is every x86 server. On a Snapdragon board or laptop, the exposed case is a video node that the video group or a seat ACL lets ordinary users open, which on a desktop is normal. The log signature, with KASAN, is a slab-use-after-free or a “DEBUG_LOCKS_WARN_ON” on a destroyed mutex in the Iris response handler after a close.

How to fix it

Install the fixed kernel and reboot. Debian forky and sid had 7.3.6-1; Ubuntu had every release under evaluation on 2 December; Red Hat has no affected product. The record lists no mitigation; blacklisting the driver is the only interim measure and it disables hardware video.

# Debian forky / sid
apt update && apt install linux-image-arm64 && systemctl reboot
# Ubuntu (and other distributions once their builds land)
apt update && apt full-upgrade && systemctl reboot
# Interim on a multi-user Snapdragon host: disable the codec driver until the kernel is fixed
echo 'blacklist qcom_iris' > /etc/modprobe.d/iris-cve-2026-139585.conf
update-initramfs -u && systemctl reboot     # software decode still works, hardware decode does not

Blacklisting the module is a blunt instrument: video playback falls back to software decoding and anything that needs the hardware encoder stops working, so it suits a shared lab board rather than a laptop. What not to do: do not assume a server distribution’s “not affected” row covers a Snapdragon developer board running the same distribution’s generic arm64 kernel; the row describes the kernel the distribution ships for its supported hardware, and the driver is in the generic arm64 config from 6.15.

Sources

  • CVE-2026-139585 at CVE.org — the kernel CNA record: the “returns it after dropping core->lock, without taking any reference” and “operates on freed memory and a destroyed mutex” sentences, the 6.15 lower bound, the git ranges, the six files (30 November 2026)
  • Fix commit af5f7df6 (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Dmitry Baryshkov, committed by Bryan O’Donoghue, Fixes: 38fc8beaba55 (“media: iris: implement reqbuf ioctl with vb2_queue_setup”), no Cc: stable, six files +32/−5 adding the kref, iris_inst_put() and the puts in both response handlers
  • NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 as its only metric, no NVD score or CWE on 2 December
  • Distribution trackers: Debian (bookworm and trixie not affected, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium, needs evaluation in every release, no USN) · Red Hat (Important 7.8, bug 2587053, no affected products) · SUSE and Alpine (both refused the automated reader on 2 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00133 (percentile 0.030) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.