Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100411; b=SByCSErwfqOq9Gk0/AhhBrnBqjc6fplqec0SuEKQQFrYzrwEr3mHKbfqjlRZ7cXy5M1L uWdWi4YinXbJu6aU2XvdGMdMzZcvrhyv8dgdY9AjJ1BFTG4U8plC64kxa5r/kzx/HR/Wc gga0xYGl21s19WxloOx2HjyribLu/nW5rp2INbvqmudE3yCApxZrd7vU7MbC1su2nXBFV 3FFEmgnC0BMqxfjXQJUg9VOVceR5rAa4vyZk4BUMWOYkf4twOYuJAz8BXFUhfH0jX3gFT TTm0ssKJG0hyiZDgf9xVHR2FfigKipzQ0YaHJcelea2tw/xxbqzrlZx6TWcInQDXeJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100411; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=gcJ4vT1fbAdGoFDa8q/Fg+lyhXhodg2qcOt3UQqj/6M=; b=TPxQ96Srs50UEH+AP5QWyDaeUmERMCKbVOvsZ40n5RcxM98vrAX3kCBEtHJH1b4ht67Q 5GOB8h2hfqUDhHQzSkRDmetlTzNfBpbibrmvGUcbiYELQWxzxqFBdOs59G5+y3qd0vetK ZyDMJU7JZ+rMCVus7bwVGoxVNegjz7+i9LqL1mJXhWkbL1u2EA2WTVN/tkYIs2lmkJuGr iV5WrOSiRF3GF8xP1TrPwC2lqGJrKDfh+MpiQuQS4m+QA6DEqD8sSz39bWT35f1nvy0zc paVNcc6jCRWQYpyZi4Gu2jSK2wBGBQOUY1ubpLQXLlDzZRzFBvoCmu/HfnA6ZZ9B8dw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="brV9ajx/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88B8C606A325 for ; Thu, 19 Nov 2026 15:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=brV9ajx/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 066621F000C4; Thu, 19 Nov 2026 15:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100411; bh=gcJ4vT1fbAdGoFDa8q/Fg+lyhXhodg2qcOt3UQqj/6M=; h=From:To:Cc:Subject:Date:Reply-To; b=brV9ajx/a0rohS6DTzQjDNCL04i1bpG1YuTIryrgT2YWv2gwuuGSSMWutir0/oGJv 1WP9y5d+vE+GIwVRkR1LF6cM8U76p7ClZV4VFsSEs+urQvIzqrMdBIsJJy2Yd4w2G9 1VjYOStoAyTvcahYI2yfVDCGF1EqvyeqYKFtPiyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99511: media: cx23885: Fix use-after-free in cx23885_finidev due to race condition Date: Thu, 19 Nov 2026 15:26:49 +0100 Message-ID: <2026111918-CVE-2026-99511-3115@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4363; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gY+X/yvlXQYjX3tMF7ueVnK9OksjqrQT2x3IwzsvUtE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Sa5FfVcNp5b/din7Pqrzb9TYvdcF1Ve2DRxzodz8 6dmzVsr1xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATyTFgWDDjb6qOeP098S+f c8Nt/fJFQ3J+H2ZYsOjElSOd76/ZHlSPuHH3lZpKtsSsuQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99511 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.36 with commit e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 and fixed in 6.12.117 with commit 4c28161c8893bf7a396bda1ba9d8fa6e528c1a21 Issue introduced in 2.6.36 with commit e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 and fixed in 6.18.61 with commit 2344922abe2ad811003794092931bf454b556109 Issue introduced in 2.6.36 with commit e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 and fixed in 7.3.2 with commit 544b575ba44d566cfd4f82e3d8faee5db01addf5 Issue introduced in 2.6.36 with commit e5514f104d875b3d28cbcd5d4f2b96ab2fca1e29 and fixed in 7.4-rc1 with commit 75016a992d9b03f5cc6df1414d1da35840d4feeb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99511 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/pci/cx23885/cx23885-core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/4c28161c8893bf7a396bda1ba9d8fa6e528c1a21 https://git.kernel.org/stable/c/2344922abe2ad811003794092931bf454b556109 https://git.kernel.org/stable/c/544b575ba44d566cfd4f82e3d8faee5db01addf5 https://git.kernel.org/stable/c/75016a992d9b03f5cc6df1414d1da35840d4feeb