Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 732CD3C09E2 for ; Tue, 6 Oct 2026 10:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282464; cv=none; b=B3lJZtvpqCQFFdb+8MzTin/e0i4XC83h6HWiCE0QbISSkxSBsrwEyfgOZVtTIP5eMwlxZR3hW2eXON8WO7ktS69c/dZtxAXLr935CgJzzV+CAoXgiCxyTm42/25605IKq8YfjHPeypiy4rsUWj72cqijJHWtN2OG8FR/RRghzVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282464; c=relaxed/simple; bh=2wivEhZdnnl/80Ml98qDeKtU+kzVC+2PjqDcYMTSYZY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j7lzPogpKM8u44kopp1bKmb8CTD63qEMh0jW1chfiopmm4NGQjVEjlJynLEwxDjYXirAS2eNMX+OEWKMBx7LN2wzhg3DaE0dNYLAexXNi2edKxA1YSY0ZHCLcqAspXGxxSnUM51MBZgrDK9UnAe0VezFznvSHEFShP+hFXROPjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UYfWNN4F; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UYfWNN4F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE971F000FF; Tue, 6 Oct 2026 10:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282463; bh=Ka6yS0ekAsYggq6q0jWmPLa2m/tw5LHTq3qS23parLY=; h=From:To:Cc:Subject:Date:Reply-To; b=UYfWNN4FwQ/AHGK4DlVwKrdAOw6hr40QiOXCfepmRVYF3IfC1bMVEWFLG91TP56pS oXQYcDe+MLqj1bXFOB2D89/ls3gCobteJlw5f1Fes3WG5A5QT9X7ZUVGrUfvBZci0P poiYd28VNJDGGpBzsc8mjj22PIY8xZs5PzsiGlTY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98316: ALSA: bcd2000: Fix race between rawmidi and disconnect Date: Tue, 6 Oct 2026 10:46:57 +0200 Message-ID: <2026100612-CVE-2026-98316-087e@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3607; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cg25W137oKYT+BjzTIzG4YHRT8kN+mmzom5J2jnd6xw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtko4Xtd7PaH+VMr23Tc/ts6s2rNoKpPf92XRhYbnp 62rzLOU7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJSNczzJWZHxWp3JY+tXtp ddvfA61/qgo+hzEsmLTqePvhs7wcMwX3vdl7esW950Z2vQA= 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: ALSA: bcd2000: Fix race between rawmidi and disconnect Although we tried to fix the potential UAF issues at USB disconnect on bcd2000 driver, there is still an overlooked case -- namely, when a rawmidi trigger callback has been already running at USB disconnect handling, the in-flight function (e.g. bcd2000_midi_send()) could still access the URB, because the previous URB NULL-check & clearance was considered only for the URB complete callbacks, but not about the parallel rawmidi operations. For addressing the race, this patch introduced a new spinlock that covers each rawmidi operation as well as the rawmidi handling in the complete callback. The URB is cleared with the lock, so it guarantees that the pending rawmidi task already finished or a NULL check is effective. The Linux kernel CVE team has assigned CVE-2026-98316 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.188 with commit 3c00004f134fc819f9d9e202c6a64acde0a1f8d0 and fixed in 6.1.189 with commit 3b824930259d54f5047ce6b5c97bd20db2fc2b98 Issue introduced in 6.6.157 with commit 6c07aad8a7c9ef8ebc4d03a964b882123a349a2e and fixed in 6.6.158 with commit c83d6b0a65f7b71bbabcc91c045dfbffdff6ae76 Issue introduced in 6.12.109 with commit eb482a06791d6168beb8c78cc904ac5a5ed96a55 and fixed in 6.12.112 with commit 0a7ecf52cb59ed77ec525deb52c496ea8fba10b1 Issue introduced in 6.18.50 with commit 7df3194bdb7479cad9199889655a566a2c0c1d1b and fixed in 6.18.54 with commit 812ca56867bec3065c2a27f1ff5ce04e2a8bf4f0 Issue introduced in 7.2.4 with commit b06ebc7fe25a6af4a9f6e4a3d4236a4178ad4b01 and fixed in 7.2.8 with commit 9c8b6eff6e7505c128b615d9a1364ef66fa5c18e Issue introduced in 7.3-rc1 with commit 459d3a64766f5ca2f1886daeaf24582831a5f5ab and fixed in 7.3-rc4 with commit 221253723dc58bb901c3f27a7659823e63fc598c Issue introduced in 5.10.270 with commit 9af08677aa57debaca5b57c8045c52a83d3dd376 Issue introduced in 5.15.221 with commit 5a77febac6faf6da40fbb4555f703eeb91b58130 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-98316 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: sound/usb/bcd2000/bcd2000.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/3b824930259d54f5047ce6b5c97bd20db2fc2b98 https://git.kernel.org/stable/c/c83d6b0a65f7b71bbabcc91c045dfbffdff6ae76 https://git.kernel.org/stable/c/0a7ecf52cb59ed77ec525deb52c496ea8fba10b1 https://git.kernel.org/stable/c/812ca56867bec3065c2a27f1ff5ce04e2a8bf4f0 https://git.kernel.org/stable/c/9c8b6eff6e7505c128b615d9a1364ef66fa5c18e https://git.kernel.org/stable/c/221253723dc58bb901c3f27a7659823e63fc598c