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=1795154056; b=DfVoV5x4aysyA0wfKSicGMSyFVHGXEKLPgf2jwWzsMbqT61Jv0XmthjEmEAqJIgWHp4/ gK9GTYlJn8vnql9uC4i5aq9FncePn7A9+9e7nqiNjYuLwzopI/J+HFVci/8m6HQKNsNXa kUPlvcBjMqs9GG12H8qinlLyVXhRYkQ3DMnReV6kP+qzIc0kZvP+j4RoS51QhdLDDkVL7 eMO5pSjSB3usX0qanTyrD/c9pGKSluqmIgcilvVCQYHIOthbopasondwEMFus6HGLBH51 UbrfjS2ycT0UDDo8wr2FvxulxJ/WnWJ6q4hpWI3LQIn6ak+NJ6bK/3r9t2PqWAj0XeQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154056; 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=Xyhm9DoWDbdSaQd1E00HsDgGyg+gg/Dw6ps2KONSFUo=; b=Bb8+xUboVw87Fkab8qu8fMdi546vS8VHqNawM068rH+D1MYyBcMXX0vgZUJIu1Y83vC5 VsQ9DQD2GkmoicRZ19CZ+qqX7c4YED17FK603YVX7w/tNqo+3s3Cy7oIMFWP/JZEK0UTq 6lRY1SCy+yNAFQeBcWpe6E8TcZXTd0tk0xXGhOIeKqvO8t45YPawziJG+5crSkl6/1rj5 WOVtsOWz6eRuXGAlnyvEMxqEYYy8Pbnt+Fm+zmU3nZeKasW29orP0wvoxJdI6ih+lYqo+ Wk1nybNUfsQF6nmEq7gcJM1RE04OWcLk9HrMwghEWmLaEaWXgC6w99fFO0/yF1QUdLg== 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=QwDW2Zd+; 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 A8D85606A320 for ; Fri, 20 Nov 2026 05:54:16 +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=QwDW2Zd+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 020AC1F000C4; Fri, 20 Nov 2026 05:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154056; bh=Xyhm9DoWDbdSaQd1E00HsDgGyg+gg/Dw6ps2KONSFUo=; h=From:To:Cc:Subject:Date:Reply-To; b=QwDW2Zd+NbWX1Jk8V7gNsvKC5P15MryREbZnWEnLhtybWpyfzeLnAqrAo4INFYxTL jSgFwhmbIRYiDJ1mP7EzgXbbgejFFFc+o710BB41HKwBuyLeMY3pQ3xHvvcMouzz1N vSBFaGgFXGR44BMlDiVRHojNkWKKkGaHtbT1srok= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99611: ALSA: line6: Reject capture buffers smaller than two packets Date: Fri, 20 Nov 2026 06:49:57 +0100 Message-ID: <2026112029-CVE-2026-99611-9b02@gregkh> X-Mailer: git-send-email 2.56.1 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=3725; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CQO8MkeGsYi1yn/M/tqbs6esWIlkMdu0qNRGqHefANg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/72cWSjxvvf3rwcr2mRc2T/W8EzxBw67d4Kdd0OuTP TN/WTsf74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJCP9hmO+ecNM0fVmSjYHB h1/FZ2yCLItKORnmhydfiJi9rUif3eetT1GQ2uOl9hLzAQ== 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: line6: Reject capture buffers smaller than two packets line6_capture_copy() splits the copy into the ALSA ring buffer once at the buffer end and wraps pos_done once, which is only correct when one packet holds at most buffer_size frames. The packet size comes from the device's endpoint, and the per-device hw structs allow 64-byte periods with periods_min 1, so a packet can be larger than the whole buffer. audio_in_callback() logs an oversized packet and then copies it anyway. The packet size is known at probe time, so constrain SNDRV_PCM_HW_PARAM_BUFFER_BYTES in snd_line6_capture_open() to at least twice the larger of the two endpoints' packet sizes. Two rather than one, because pos_done advances by the packet and wraps once, so a buffer of exactly one packet leaves the position unchanged after every packet. hw_params then rejects a buffer that cannot hold two packets, and the single wrap is valid for every configuration that gets through. Keep a guard in line6_capture_copy() that drops an oversized packet with a ratelimited error, for the case that should no longer be reachable. Reproduced on 7.3-rc7 with a USB/IP device presenting the GuitarPort interface layout and 1024-byte packets into a 128-byte buffer: ALSA logged "invalid position: pos = 224, buffer size = 32" and the driver logged "driver bug: len" on every following packet. With this patch a 1024-byte buffer is refused at hw_params, and a 2048-byte buffer streams for 30 s with no report and with the position moving inside the buffer. The Linux kernel CVE team has assigned CVE-2026-99611 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 705ececd1c60d0f5d6ef2a719008847883516970 and fixed in 6.12.118 with commit 3e7f477a9e56b627739832e6cf9b682693a474a9 Issue introduced in 2.6.30 with commit 705ececd1c60d0f5d6ef2a719008847883516970 and fixed in 6.18.64 with commit faf1f471319775e280d959ffbffaa44fd7e5f5b0 Issue introduced in 2.6.30 with commit 705ececd1c60d0f5d6ef2a719008847883516970 and fixed in 7.3.5 with commit 9885eaa2091335ed181c93f2b406604ee2bf2312 Issue introduced in 2.6.30 with commit 705ececd1c60d0f5d6ef2a719008847883516970 and fixed in 7.4-rc2 with commit db51425c9eb038a8e40e09b837afde015ae9e3ec 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-99611 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/line6/capture.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/3e7f477a9e56b627739832e6cf9b682693a474a9 https://git.kernel.org/stable/c/faf1f471319775e280d959ffbffaa44fd7e5f5b0 https://git.kernel.org/stable/c/9885eaa2091335ed181c93f2b406604ee2bf2312 https://git.kernel.org/stable/c/db51425c9eb038a8e40e09b837afde015ae9e3ec