CVE-2026-99511

media: cx23885: Fix use-after-free in cx23885_finidev due to race condition

No CVSS score yet EPSS 0.23%

Published 19 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99511

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99511 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

media: cx23885: Fix use-after-free in cx23885_finidev due to race condition

In cx23885_v4l2_dev_notify_init, &dev->cx25840_work is bound with cx23885_av_work_handler, and &dev->ir_rx_work and &dev->ir_tx_work are bound with cx23885_ir_rx_work_handler and cx23885_ir_tx_work_handler. cx23885_irq can schedule these works on system_wq when an AV_CORE interrupt is received, and the IR subdevice can also schedule the IR works from its interrupt service routine via the v4l2_device notify callback.

If we remove the device, cx23885_finidev makes cleanup and the memory allocated for dev is released by kfree(dev), while the works mentioned above may still be pending or running. The sequence of operations that may lead to a UAF bug is as follows:

CPU0 CPU1

| cx23885_irq | schedule_work(&dev->cx25840_work) cx23885_finidev | cx23885_input_fini(dev) | cx23885_ir_fini(dev) | cx23885_shutdown(dev) | free_irq(pci_dev->irq, dev) | pci_disable_device(pci_dev) | cx23885_dev_unregister(dev) | v4l2_device_unregister(v4l2_dev) | kfree(dev) | // dev is freed | | cx23885_av_work_handler | // use dev (use-after-free)

Fix it by canceling the works after the IRQ handler that can schedule them has been stopped, and before proceeding with the remaining cleanup in cx23885_finidev.

Note that the flush_work() calls in cx23885_input_ir_stop() do not close this race: they only wait for works that are already queued or running at that moment, they do not prevent the IRQ handler, which is still registered at that point, from scheduling the works again afterwards, and they are skipped entirely when dev->sd_ir is NULL. The cancel_work_sync() calls are therefore placed after free_irq(), the only point at which no new work can be scheduled.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before bdcd99f5d47bdc0104cc816dd1885121321803a8
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 094e57f65751c99b5e7a88b9d6f199b3c11ef134
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 58dba8af3a48e5c9799941194fcb022192e6702d
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before a791e659029244c94d16bb662884cab832231e62
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 4c28161c8893bf7a396bda1ba9d8fa6e528c1a21
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 2344922abe2ad811003794092931bf454b556109
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 544b575ba44d566cfd4f82e3d8faee5db01addf5
affected from e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29, before 75016a992d9b03f5cc6df1414d1da35840d4feeb
Other versions: unaffected
Linux
affected 2.6.36
unaffected before 2.6.36
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.61 up to and including 6.18.*
unaffected from 7.3.2 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99511 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99511

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99511
trivy image --scanners vuln IMAGE | grep CVE-2026-99511

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99511 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.