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=1795100404; b=4mrlhf4KRrzSRKW0uabQIn1TmegLF4C1rLZumjA8R9EgqwAk/ObPbUAbRa1fspJADMKu HltkaT+zqH0F3jl7GHwkVlE009CMVid/w3OzdapIBLq9oopudKVVgv4OmQqRs8ZnwR/hr dCPoM9pFMINUmRTMWNKcc4WNAYvh62qim4/CBn9gRqaC6XtTl8mFqaiuhKgMd9lAKMYa7 gxB4RooB5OvSvkXuBMszwNtDJ0PNi78vgIBgpodJQPzbpSAxsCw32jnbQ8gKRtbo8E+dx WV3F7veCmsMHFANeGGi0F9Z13oJEdhU/oQ74lvkN5n6LbwTH8eOyyNCJvYlENgiQxmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100404; 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=R7HlDPk8F0mGHGeVoj4gMhYHsQHGKUXwH3W/qhLZhIc=; b=hKyAulD4eGWiYuss0uRG9SqFvMTcViSlvk2/0pCTL1aspWb5yW/aczm0giO3IC8X8Rp9 2UyWfWgagm6ajiI59tuDd+1HvgBnm8heSkMEQnUd9VgpsFMvaSgz2hIeSacs2DsoECZ2P nZYglw8c+g2HE5qkjlRHiFH+3Y6hX27n3BkB7uwmW7hezKCIXMX2jkih6rrC99gF/BkiK DmDNEjQTbxpcPNhBtUqyWCVJsEnQwpFFXfpflE+4o5HOC4m9fsjxR0+O0XU9zHIYtooFx 1W1haPnOeum5MIRG29vRsV8J19C3kMGpeXjZIMunL5gr9NEyG/fz5KJTPINmzW2G5PQ== 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=E0NVQFY7; 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 76099606A320 for ; Thu, 19 Nov 2026 15:00:04 +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=E0NVQFY7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5EDB1F000C9; Thu, 19 Nov 2026 15:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100404; bh=R7HlDPk8F0mGHGeVoj4gMhYHsQHGKUXwH3W/qhLZhIc=; h=From:To:Cc:Subject:Date:Reply-To; b=E0NVQFY7AcqKEWVLCzSdAkoeGJTbqdt3rozrqbx322eDSnvUa8/JSxc1PxBulhwc2 A/OLWiReQWIvry8pSHL49G8oUycsyIOBn2O7QbcOPyXt9Mrq521/yYh3ZOSOWb1Gqo M45ry8YjYoc/+VrmNjeSCPn7aNfEY3AUENDFXVpw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99510: media: hackrf: fix use-after-free in hackrf_alloc_urbs() error path Date: Thu, 19 Nov 2026 15:26:48 +0100 Message-ID: <2026111918-CVE-2026-99510-5efb@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=2865; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l6eHke2b34+0uufyaBI72CpNLzb28B74lCQJol2xqhE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SZFbGWeKHHbqiRqxZZd91+6i1syXLE6VrTrTcv6e /9emQi/7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnHJkmB/MULHaTlN+I8e1 Fstz5aqsFz9O9WJYcGbb9Lt8ngd9Au6blz7g9hFKeO9dDAA= 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: hackrf: fix use-after-free in hackrf_alloc_urbs() error path hackrf_alloc_urbs() frees the URBs it allocated so far when one allocation fails, but leaves the entries in dev->urb_list[] and dev->urbs_initialized untouched. The caller, hackrf_start_streaming(), then calls hackrf_free_urbs() on the error path, which walks dev->urbs_initialized entries and calls usb_free_urb() a second time on the already-freed URBs, causing a use-after-free (slab-use-after-free Write in usb_free_urb()). Drop the redundant cleanup loop inside hackrf_alloc_urbs() and let hackrf_free_urbs(), which the caller already invokes on error, own the cleanup of the successfully allocated URBs. The Linux kernel CVE team has assigned CVE-2026-99510 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit 969ec1f6bd925092109eaf21501a9d64adfc7ad4 and fixed in 6.12.117 with commit ed8d9b2015afd540f6159ed272702a87f02fbd05 Issue introduced in 3.18 with commit 969ec1f6bd925092109eaf21501a9d64adfc7ad4 and fixed in 6.18.61 with commit e9deece85062873763dfbb8b1121e722ef2959a0 Issue introduced in 3.18 with commit 969ec1f6bd925092109eaf21501a9d64adfc7ad4 and fixed in 7.3.2 with commit ba097d24c56bc3c57a1173506c3c5a42d0f94988 Issue introduced in 3.18 with commit 969ec1f6bd925092109eaf21501a9d64adfc7ad4 and fixed in 7.4-rc1 with commit 6802ad4b6b267dda02209b5811edac7825c8a5f6 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-99510 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/hackrf/hackrf.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/ed8d9b2015afd540f6159ed272702a87f02fbd05 https://git.kernel.org/stable/c/e9deece85062873763dfbb8b1121e722ef2959a0 https://git.kernel.org/stable/c/ba097d24c56bc3c57a1173506c3c5a42d0f94988 https://git.kernel.org/stable/c/6802ad4b6b267dda02209b5811edac7825c8a5f6