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=1794823249; b=yg4KtipR2EOpqk+I4Xj/jFWlmS0XwvSqtmuI2J+zaWi1C4Bs7SrttywY1dFmez78dG+I FpT4ig4h3IBtCgHAmxi8gdjNNJmIH3HYn39ueRSh56dZj1PiVhWLXFNPlThRiCMdZknFG SEYlszcFWamVkg2pyux8ebTEn0DVy3zA+TBtfSY+K4hqMzuXlPk7I/Znv0lxE4bpmdTWW eAKGcCT2uqGz4Q9GL8qykePlvI3xbBs+O2Y4qg41SSdJVs0/ChJNaNHIcjX/6MkJW9oUX uCF4jwdU37mxF8jLf9eug3qoxGJoMA3TIq3uWIHfe35QBECzMOrJaS0nXFyVqotZTrg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823249; 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=VeRcaP+7/OJnxzAlyAfCgPpLJdZXQVuZoOO65eSuaxY=; b=A7Ps+Y9E7DZNZrXQu2MXUXYsrNSrR5ruyYTPba+sWGlDFN7EeoHINg/Wqqg9BDrCwdwf Q8UElOITZ7fp481XN3+vupt/SCmeaebt6hPZedlEbQACGUktTPARRd5iK3aZyWrJH/iZs 1V2g4KWysf6804F2AbxgAoObk9uilsxDpE9lTCr2xbAJwEvol8XUNCGnFpwSxJm2UjWCX uUoUoTb1zusmv4t6aRuyY7ucTA93c58qC5oAu26OV1vKrUb/e4yT3hfn6a8LpOn6zccfB d1Nb4N/M4BqUJ8D9hpMdJ3FdPNKXcrhWINF4dQnc6HoP2XmEx6ZjtDzzaw7LQIQVMfA== 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=po6H44H4; 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 8293C606A323 for ; Mon, 16 Nov 2026 10:00:49 +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=po6H44H4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99E311F000C4; Mon, 16 Nov 2026 10:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823249; bh=VeRcaP+7/OJnxzAlyAfCgPpLJdZXQVuZoOO65eSuaxY=; h=From:To:Cc:Subject:Date:Reply-To; b=po6H44H4ZseYf3a1mbXEGqdzGlPm9R4re9vKhrOVSR3heO2Bgaw1PhAtnJ9kDB8Hs jukXkDhFVq/+Xc3l6oMHe7U9XyKW1Dc21ZFzEOLIkyb1BtjxMszIMVUlvCJMC5zy7j TmDWf1jhECfV03FaeP7baiw27k4SAncLsaR1R0QE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99297: media: em28xx: fix double free in em28xx_alloc_urbs Date: Mon, 16 Nov 2026 10:59:46 +0100 Message-ID: <2026111639-CVE-2026-99297-59b1@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=5572; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jxbLcjFy5xEYg4kP2/gpfhnFw2BWm9FY+5XEYDEJrno=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rnCHCJ++vGn+2n7vSQ1s7P5zjk3s9gjTiHNVPpL1m /NqQm5KRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkq5NhvsOHwMQQcbclGilL Om+wlYvW6h1jZ1gw4+I12YCiovjmFcdEXlz9tYfRjVMVAA== 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: em28xx: fix double free in em28xx_alloc_urbs When allocation of usb_bufs->buf[i] fails, em28xx_alloc_urbs() explicitly frees all items within usb_bufs->buf before calling em28xx_uninit_usb_xfer(), which also frees these items, causing them to be freed twice. BUG: KASAN: double-free in usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) Free of addr ffff88802fd37c00 by task kworker/1:2/1182 Workqueue: events request_module_async Call Trace: kasan_report_invalid_free (mm/kasan/report.c:557) check_slab_allocation (mm/kasan/common.c:235) kfree (./include/linux/kasan.h:199 (discriminator 1) mm/slub.c:2693 (discriminator 1) mm/slub.c:6508 (discriminator 1) mm/slub.c:6801 (discriminator 1)) usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) usb_free_urb (drivers/usb/core/urb.c:95) em28xx_uninit_usb_xfer (drivers/media/usb/em28xx/em28xx-core.c:964) em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1076) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Allocated by task 1182: kasan_save_stack (mm/kasan/common.c:57) kasan_save_track (mm/kasan/common.c:78) __kasan_kmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415) __kmalloc_noprof (./include/linux/kasan.h:263 mm/slub.c:5414 mm/slub.c:5439) em28xx_alloc_urbs (./include/linux/slab.h:995 ./include/linux/slab.h:1312 drivers/media/usb/em28xx/em28xx-core.c:1081) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Freed by task 1182: kasan_save_stack (mm/kasan/common.c:57) kasan_save_track (mm/kasan/common.c:78) kasan_save_free_info (mm/kasan/generic.c:584) __kasan_slab_free (mm/kasan/common.c:253 mm/kasan/common.c:285) kfree (./include/linux/kasan.h:235 mm/slub.c:2748 mm/slub.c:6508 mm/slub.c:6801) em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1084) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Remove the explicit cleanup loop and let em28xx_uninit_usb_xfer() handle the cleanup. The Linux kernel CVE team has assigned CVE-2026-99297 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit d571b592c6206d33731f41aa710fa0f69ac8611b and fixed in 6.12.117 with commit 9bc203322dbc8c2fe608555e387d4b493c4da2ef Issue introduced in 4.17 with commit d571b592c6206d33731f41aa710fa0f69ac8611b and fixed in 6.18.63 with commit ecf511b8157e0648080bdae37f4f2eb98328c4b2 Issue introduced in 4.17 with commit d571b592c6206d33731f41aa710fa0f69ac8611b and fixed in 7.3.4 with commit 660c91b3100c949a0c33faf9d659d1c786ccd1ee Issue introduced in 4.17 with commit d571b592c6206d33731f41aa710fa0f69ac8611b and fixed in 7.4-rc1 with commit fd427b8adae437cac78a2332241a03cac56e95c2 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-99297 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/usb/em28xx/em28xx-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/9bc203322dbc8c2fe608555e387d4b493c4da2ef https://git.kernel.org/stable/c/ecf511b8157e0648080bdae37f4f2eb98328c4b2 https://git.kernel.org/stable/c/660c91b3100c949a0c33faf9d659d1c786ccd1ee https://git.kernel.org/stable/c/fd427b8adae437cac78a2332241a03cac56e95c2