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

Published Nov 19, 2026
·
Updated

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

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

In cx23885v4l2devnotifyinit, &dev->cx25840work is bound with cx23885avworkhandler, and &dev->irrxwork and &dev->irtxwork are bound with cx23885irrxworkhandler and cx23885irtxworkhandler. cx23885irq can schedule these works on systemwq when an AVCORE interrupt is received, and the IR subdevice can also schedule the IR works from its interrupt service routine via the v4l2device notify callback.

If we remove the device, cx23885finidev 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

| cx23885irq | schedulework(&dev->cx25840work) cx23885finidev | cx23885inputfini(dev) | cx23885irfini(dev) | cx23885shutdown(dev) | freeirq(pcidev->irq, dev) | pcidisabledevice(pcidev) | cx23885devunregister(dev) | v4l2deviceunregister(v4l2dev) | kfree(dev) | // dev is freed | | cx23885avworkhandler | // 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 cx23885finidev.

Note that the flushwork() calls in cx23885inputirstop() 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->sdir is NULL. The cancelworksync() calls are therefore placed after freeirq(), the only point at which no new work can be scheduled.

Affected Software

3 affected componentsFixes available
linux/kernel>=2.6.36<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  4. Compensating control

    After free_irq(), call cancel_work_sync() for the IRQ-schedulable works (including cx25840_work, ir_rx_work, and ir_tx_work) before freeing dev; skip the IR-work cancellation when dev->sd_ir is NULL.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:44 PM
Data Sourced
via MITRE·02:44 PM
Description
Data Sourced
via OSV·02:44 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203