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=1795100255; b=HeNmig1ZjF9EjKQhb+TpNUMMZdQ3nYz85vOQZTvLUXcALh1znLIQz7BiZNpdJexSnNOE r+wC7QQHJ7+WBJFDpvs1M82r6BHPpkJMwNKlsumCMX7nwVNtstD8RVUpkXVGdcPBaJKtK uzN8Tz1IA9134JIesXjeEUILbtwo0XMebfkWd6PnmfJOEc1mjpebMrah3X7vHJ4tKCewJ XtYrJA/MVTfkhlYhaBwkWV4HLz+JiQgiStyVWuAXdjdKENvJxYlfdubEJlYhNpIfEo7r8 M5unk56NLAFSSbBQo2KJTyD3FJiFi6VsXOkoMAbuYnYb16FxTiwaBN9S1EfcOrCg96Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100255; 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=pRSddH05DGbciAuGOEWs0VjpNPTen8DlynhfJL1fTiM=; b=v5vN1LTosH6w9deURErKmndY9y8ZiogcXpIhJ48B/Jrj9Phqt1tmnCgPPhUR6Ztvi1OG EQ1NE3WjrxE000GyzsnTXICAjzHF8x0T/xBj55xS2VJI7mGx070ccbnYK6ZmLZfYyKUbU 0r5SCt9EgAxrIKnCtFnncnJRQRxa27p7QYAoAcuKGuvUIss/Cmipu1fKrYPubku0ID/iO V7uK9C3Y3oVYhVrHLFbOornWp4B/nloCMyHqrDxsf6ZCnOKU82hlBhZn1g632O69CoBuK y9vxiMoYXUDyfCCL3pZhzNgsy7xoE9F1aB6c9t9Jq7S7UxWIGmziKDimo62egvrwCJA== 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=dQ44deZD; 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 C699D606A320 for ; Thu, 19 Nov 2026 14:57:35 +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=dQ44deZD Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D55E1F000C4; Thu, 19 Nov 2026 14:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100255; bh=pRSddH05DGbciAuGOEWs0VjpNPTen8DlynhfJL1fTiM=; h=From:To:Cc:Subject:Date:Reply-To; b=dQ44deZD3VyXn4gn/7j3N6H8p7CGDtkfR3OJ20I+GvlG18E7rfF36wCRzzVkv+jh9 Ck3dliWWA5LWnouFHkFz+IgISRdFJCr1TFYeyYBqwl4lxEfxksie57FSh0wqJbBZ1y DzPYTx1xPUHb7dYVyCs3avRFpSuCNU63r/PXur74= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99464: media: redrat3: fix UAF in probe error path leaving rc device registered Date: Thu, 19 Nov 2026 15:26:02 +0100 Message-ID: <2026111909-CVE-2026-99464-1ff5@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=4480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p3p5K+oQUKY9M6dIxjR5DX7IhFo4+KWJfedMYbTuIE8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2TprXa+ZdLwMd+UUTl/7yP3GRB7tu0vXfZRTPDC15 xkfy9yQjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIaRTDgm2CD7fyTVzRkrZZ c92NCZZKGyNZlzPMU6w+/+hN9ds9m3s21mb6NX3t0vR8CQA= 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: redrat3: fix UAF in probe error path leaving rc device registered redrat3 stores its device name and phys path inside the main rr3 structure, and the rc device's device_name and input_phys point into rr3. When the RC device is registered, it keeps those pointers. KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 Read of size 1 at addr ffff888051fda758 by task udevd/7464 Call Trace: string_nocheck lib/vsprintf.c:648 [inline] string+0x216/0x2d0 lib/vsprintf.c:730 vsnprintf+0x74a/0xef0 lib/vsprintf.c:2945 vscnprintf+0x41/0x90 lib/vsprintf.c:3014 sysfs_emit+0x10e/0x180 fs/sysfs/file.c:761 input_dev_show_name+0x58/0x70 drivers/input/input.c:1282 Allocated by task 10: redrat3_dev_probe+0x477/0x2570 drivers/media/rc/redrat3.c:1023 Freed by task 10: redrat3_delete drivers/media/rc/redrat3.c:466 [inline] redrat3_dev_probe+0x1bf4/0x2570 drivers/media/rc/redrat3.c:1124 Syzkaller triggers this via usb probing. It probes the RedRat3 USB interface, which calls redrat3_dev_probe() in redrat3.c. That function allocates rr3, then builds an rc device whose name points into rr3 via redrat3_init_rc_dev() in redrat3.c, and registers it with rc_register_device(). When the detector enable fails after the RC device is registered, the probe jumps to the led_free path. That path unregisters the LED but does not unregister the RC device before freeing rr3 via redrat3_delete() in redrat3.c. The RC device still holds device_name = rr3->name which is now freed. Later udevd reads /sys/.../input device name via sysfs_emit() in file.c, which calls input_dev_show_name() in input.c, which emits dev->name which is the freed rr3->name. When the detector enable fails after the RC device is registered, the error path must not leave the RC device registered. Make the probe error path clean up the same way redrat3_dev_disconnect() does. This change should be safe because the RC device is fully registered at this point and its teardown via rc_unregister_device() is protected by the input device mutex, and rr3 is still alive during unregister so device_name remains valid until after unregister. The URBs are killed before rc_free, so no completion can run after rc is freed. No new lock ordering is introduced. The Linux kernel CVE team has assigned CVE-2026-99464 to this issue. Affected and fixed versions =========================== Issue introduced in 3.0 with commit 2154be651b90ab0e6b5e9b9cf127a75429f9e90c and fixed in 6.12.117 with commit d8f44a9e4820797067b8cdf1b6a4cb0c0ae3d143 Issue introduced in 3.0 with commit 2154be651b90ab0e6b5e9b9cf127a75429f9e90c and fixed in 6.18.61 with commit 98e3df13c9fd57cc4051e9ee1717cfc65ee04c7d Issue introduced in 3.0 with commit 2154be651b90ab0e6b5e9b9cf127a75429f9e90c and fixed in 7.3.2 with commit e0e12b25b102e22f17ec3d0c00eb22ef7b792489 Issue introduced in 3.0 with commit 2154be651b90ab0e6b5e9b9cf127a75429f9e90c and fixed in 7.4-rc1 with commit af452b9e01331b5338a1e5141624f17607239207 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-99464 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/rc/redrat3.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/d8f44a9e4820797067b8cdf1b6a4cb0c0ae3d143 https://git.kernel.org/stable/c/98e3df13c9fd57cc4051e9ee1717cfc65ee04c7d https://git.kernel.org/stable/c/e0e12b25b102e22f17ec3d0c00eb22ef7b792489 https://git.kernel.org/stable/c/af452b9e01331b5338a1e5141624f17607239207