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 1D0CC383983 for ; Tue, 6 Oct 2026 10:27:28 +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=1791282449; cv=none; b=KeOhceXc5hJNx38TjzLrIEXZA9LsRkASbJ2vXbdceLF1sHwNktMCYKxMPLSuYXe9HQ3pUWBYIGjl63WWCqz5DckBXiOf5Ji88rJnrlSp3WgaqR7sxTLEswwxA5LOJ8Xk6wRJ1cMFRTpJl6pXPSaMOsmfIxiHDA3JahzIKX2Y3fI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282449; c=relaxed/simple; bh=Bq6OKWn2oyGcx0VxVabyMGeJZb2UbXizfoB9o/c4UXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DlZ1jvuNA6kuv6FFY76NnHYFxNePMN8DOq/huV/g5/of2VtUDd420Vzx/L6ktnm7RyA4bAW4sU9tZcKHgSTgRrInHbNlbONzsT+1Y0NegDVZcyNVBxgbrI7PqGewyLsOp7YQMcAbXq4WryTpRA8P7/0uH2saKaz/FBcQnNfj/7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z30t17ry; 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="z30t17ry" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7145B1F000FF; Tue, 6 Oct 2026 10:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282448; bh=olql8EVZa2Fby9acGGI6dNTRUg7Ve3PQPaCv7qWHQ6Q=; h=From:To:Cc:Subject:Date:Reply-To; b=z30t17ryAwvPsviv3pliXi2n7gjad9EK9LGQotNGvIjZomJjkMDuq5m7xOJaXq7or JxJbWTsP14pu/xfxNeqfroos7ucXwnqNxrhwZdJ+kvV4xFiqiLI+e0EOFPJE32nFw8 N43p7WwFHrUo1jmuW978BjylMwd/yCWY2BR9qMZg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98312: ALSA: 6fire: fix OOB write from device-reported iso length Date: Tue, 6 Oct 2026 10:46:53 +0200 Message-ID: <2026100611-CVE-2026-98312-a725@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=5272; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KKWC3l7DmCpHJveHHnnxmLZTFhgtZcA3SagWGfDX48c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtop72WptsD+5qv7acbXP1hIZr394/VdOa87Nl+5m8 GZ5++RfRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEXoBhwaE5P7qvbTHb5cx1 o9roiy/TBptQL4b5HmdlW6qFJp924LWzO/a6/+jyCacXAwA= 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: 6fire: fix OOB write from device-reported iso length usb6fire_pcm_in_urb_handler() sizes each outgoing isochronous packet as (actual_length - 4) / (in_n_analog << 2) * (out_n_analog << 2) + 4, where actual_length is the unsigned length the device reported for the matching IN packet. A packet completed with status 0 and actual_length < 4 wraps the subtraction to 0x7fffffec; a zero-length isochronous packet is legal on the bus, and the preceding loop rejects only non-zero status. The sum reaches memset() on out_urb->buffer, a 4832-byte object from kcalloc(PCM_MAX_PACKET_SIZE, PCM_N_PACKETS_PER_URB). Even without the wrap the result is out of bounds: at 88.2/96 kHz the 4-in/6-out scaling turns a full 420-byte IN packet into 628, so eight packets span 5024 bytes of that buffer. usb_submit_urb() rejects an over-long descriptor only after the memset() and the usb6fire_pcm_playback() copy of user PCM data have run. Guard the subtraction as the sibling usb6fire_pcm_capture() already does, and limit the frame count to what fits in rt->out_packet_size, the OUT endpoint's wMaxPacketSize. This bounds total_length by the buffer size while keeping each packet length aligned to a whole output frame. BUG: KASAN: out-of-bounds in usb6fire_pcm_in_urb_handler (sound/usb/6fire/pcm.c:338) Write of size 18446744073709551456 at addr ffff88802a3d0000 by task vhci_rx/5018 Call Trace: dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120) print_report (mm/kasan/report.c:378 mm/kasan/report.c:482) kasan_report (mm/kasan/report.c:595) kasan_check_range (mm/kasan/generic.c:186 mm/kasan/generic.c:200) __asan_memset (mm/kasan/shadow.c:84) usb6fire_pcm_in_urb_handler (sound/usb/6fire/pcm.c:338) __usb_hcd_giveback_urb (drivers/usb/core/hcd.c:1657) usb_hcd_giveback_urb (drivers/usb/core/hcd.c:1741) vhci_rx_loop (drivers/usb/usbip/vhci_rx.c:107 drivers/usb/usbip/vhci_rx.c:242) 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 10: __kmalloc_cache_noprof (mm/slub.c:5563) usb6fire_pcm_init (sound/usb/6fire/pcm.c:560 sound/usb/6fire/pcm.c:595) usb6fire_chip_probe (sound/usb/6fire/chip.c:133) usb_probe_interface (drivers/usb/core/driver.c:399) The buggy address belongs to the object at ffff88802a3d0000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 0 bytes inside of 4832-byte region [ffff88802a3d0000, ffff88802a3d12e0) Kernel panic - not syncing: Fatal exception in interrupt The Linux kernel CVE team has assigned CVE-2026-98312 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 6.1.189 with commit 61e665fb48e9eee44ec6d610514af383b1802cc1 Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 6.6.158 with commit 246de677552fe5dede293a1543b632e9853f31e4 Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 6.12.112 with commit 001ba7c1d9677225a5ecbc3e60d4865c08bb21d8 Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 6.18.54 with commit ea11ade10583cc45af515d6b24510dbfa0184ca6 Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 7.2.8 with commit cdc31537012bc7a58c95c6750db321b69dd802bb Issue introduced in 2.6.39 with commit c6d43ba816d1cf1d125bfbfc938f2a28a87facf9 and fixed in 7.3-rc4 with commit 1589afe2d099d3e817873bc474676968d7080410 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-98312 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/6fire/pcm.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/61e665fb48e9eee44ec6d610514af383b1802cc1 https://git.kernel.org/stable/c/246de677552fe5dede293a1543b632e9853f31e4 https://git.kernel.org/stable/c/001ba7c1d9677225a5ecbc3e60d4865c08bb21d8 https://git.kernel.org/stable/c/ea11ade10583cc45af515d6b24510dbfa0184ca6 https://git.kernel.org/stable/c/cdc31537012bc7a58c95c6750db321b69dd802bb https://git.kernel.org/stable/c/1589afe2d099d3e817873bc474676968d7080410