{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29"
            },
            {
              "fixed": "4c28161c8893bf7a396bda1ba9d8fa6e528c1a21"
            },
            {
              "fixed": "2344922abe2ad811003794092931bf454b556109"
            },
            {
              "fixed": "544b575ba44d566cfd4f82e3d8faee5db01addf5"
            },
            {
              "fixed": "75016a992d9b03f5cc6df1414d1da35840d4feeb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.36"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99511.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cx23885: Fix use-after-free in cx23885_finidev due to race condition\n\nIn cx23885_v4l2_dev_notify_init, \u0026dev-\u003ecx25840_work is bound with\ncx23885_av_work_handler, and \u0026dev-\u003eir_rx_work and \u0026dev-\u003eir_tx_work\nare bound with cx23885_ir_rx_work_handler and\ncx23885_ir_tx_work_handler. cx23885_irq can schedule these works on\nsystem_wq when an AV_CORE interrupt is received, and the IR subdevice\ncan also schedule the IR works from its interrupt service routine via\nthe v4l2_device notify callback.\n\nIf we remove the device, cx23885_finidev makes cleanup and the memory\nallocated for dev is released by kfree(dev), while the works mentioned\nabove may still be pending or running. The sequence of operations that\nmay lead to a UAF bug is as follows:\n\nCPU0                                      CPU1\n\n                                          | cx23885_irq\n                                          | schedule_work(\u0026dev-\u003ecx25840_work)\ncx23885_finidev                           |\ncx23885_input_fini(dev)                   |\ncx23885_ir_fini(dev)                      |\ncx23885_shutdown(dev)                     |\nfree_irq(pci_dev-\u003eirq, dev)               |\npci_disable_device(pci_dev)               |\ncx23885_dev_unregister(dev)               |\nv4l2_device_unregister(v4l2_dev)          |\nkfree(dev)                                |\n// dev is freed                           |\n                                          | cx23885_av_work_handler\n                                          | // use dev (use-after-free)\n\nFix it by canceling the works after the IRQ handler that can schedule\nthem has been stopped, and before proceeding with the remaining\ncleanup in cx23885_finidev.\n\nNote that the flush_work() calls in cx23885_input_ir_stop() do not\nclose this race: they only wait for works that are already queued or\nrunning at that moment, they do not prevent the IRQ handler, which is\nstill registered at that point, from scheduling the works again\nafterwards, and they are skipped entirely when dev-\u003esd_ir is NULL.\nThe cancel_work_sync() calls are therefore placed after free_irq(),\nthe only point at which no new work can be scheduled.",
  "id": "CVE-2026-99511",
  "modified": "2026-11-19T16:45:37.220322499Z",
  "published": "2026-11-19T14:44:07.569Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2344922abe2ad811003794092931bf454b556109"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4c28161c8893bf7a396bda1ba9d8fa6e528c1a21"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/544b575ba44d566cfd4f82e3d8faee5db01addf5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/75016a992d9b03f5cc6df1414d1da35840d4feeb"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99511.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99511"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "media: cx23885: Fix use-after-free in cx23885_finidev due to race condition"
}