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

Summary

CVECVE-2026-99511
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-19 15:18:06 UTC
Updated2026-11-23 08:17:53 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.002340000 probability, percentile 0.143660000 (date 2026-11-23)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 bdcd99f5d47bdc0104cc816dd1885121321803a8 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 094e57f65751c99b5e7a88b9d6f199b3c11ef134 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 58dba8af3a48e5c9799941194fcb022192e6702d git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 a791e659029244c94d16bb662884cab832231e62 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 4c28161c8893bf7a396bda1ba9d8fa6e528c1a21 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 2344922abe2ad811003794092931bf454b556109 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 544b575ba44d566cfd4f82e3d8faee5db01addf5 git Not specified
CNA Linux Linux affected e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 75016a992d9b03f5cc6df1414d1da35840d4feeb git Not specified
CNA Linux Linux affected 2.6.36 Not specified
CNA Linux Linux unaffected 2.6.36 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.61 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.2 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/a791e659029244c94d16bb662884cab832231e62 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/75016a992d9b03f5cc6df1414d1da35840d4feeb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/544b575ba44d566cfd4f82e3d8faee5db01addf5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4c28161c8893bf7a396bda1ba9d8fa6e528c1a21 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/58dba8af3a48e5c9799941194fcb022192e6702d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bdcd99f5d47bdc0104cc816dd1885121321803a8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2344922abe2ad811003794092931bf454b556109 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/094e57f65751c99b5e7a88b9d6f199b3c11ef134 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report