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 84E5837F301 for ; Sat, 15 Aug 2026 06:31:47 +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=1786775508; cv=none; b=cHMZOTbAtIAGxl0P35AlfHDhIk3UtVrLq1l195HG4SUPwUoLS1GtYirlwQO0l8kl4vIEbopvpYXJ3S6Dkkma+C/OJet7R7vWu3MO4YM0/I5DcIN3D7aJVTw+A2ZHaRxSrTGqXEBOu4A72Tk3UgwoOkeYDYA7Nj0M31uO5AaNpzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775508; c=relaxed/simple; bh=8Zt6IudAguL14CqB0fD8QiD2C/CLRzaPqXzCbvM7qe8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sNC8D9q7lATApco5jcP1HIlWaSs4+TOXGyxCNS2HKIGxG8Q9Kp/m1gYgv2eqgDUfbn3M2DNyKxpdDS3sZyknTywsCoTtSN2JQ80BorN/ICRS9PZkNC+wElEmFVsdqwE3QNInpFE6LsTri+kUpwGAyB1TeXWT3KAjRhfP/ZutW6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=okkD5/Yp; 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="okkD5/Yp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D59091F000E9; Sat, 15 Aug 2026 06:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775507; bh=9dwbtRgoYwMqgbuCBDLLAnucvZJbxxDK/tyfb9PLQCc=; h=From:To:Cc:Subject:Date:Reply-To; b=okkD5/YpA+kDYMQAMxTqXOdM5WpR15/hRuCPd17dF8vpF+JbqTpMbqDoWUn9ogVMb s2yVxSz4+ZW/ZP2C6p3tE10lZK3+A8wikYeQS8p0qx+HjVcK4HwRLzH7XR09iY9t45 2Wpe6xvOunpzHEc3o7rzePwT3Dbdi6LwjfkYdt7E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74261: ALSA: seq: avoid stale FIFO cells during resize Date: Sat, 15 Aug 2026 15:09:48 +0900 Message-ID: <2026081542-CVE-2026-74261-f18b@gregkh> X-Mailer: git-send-email 2.55.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=5510; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lR9XIjQ3rwli4mnpFshgnf35AaqhwqL/fYniyykLVyE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjEzBNhnBJzU/XVj86u+FzC2+E215S7evX+nOe0Nwy iz9Ki3OjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI+ymGBdcmz6lL8Lp+yH/B Pd41rDVKS69KNjEsWH1i5je5j5atav8jFm0qVeCSSDvwEQA= 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: seq: avoid stale FIFO cells during resize snd_seq_fifo_resize() still needs to publish the replacement pool before it waits for FIFO users. A blocking snd_seq_read() holds f->use_lock while it sleeps, so concurrent senders must be able to queue to the new pool and wake that reader instead of failing against a closing old pool. However, snd_seq_fifo_event_in() duplicates an event before it takes f->lock, and snd_seq_read() can dequeue a cell and later call snd_seq_fifo_cell_putback() if copy_to_user() or snd_seq_expand_var_event() fails. If resize swaps f->pool and detaches oldhead in between, either path can relink an old-pool cell after the snapshot. That stale cell sits outside the drained oldhead list, keeps oldpool->counter elevated, and can leave snd_seq_pool_delete() waiting for the retired pool to drain. Keep the existing swap-before-wait ordering in snd_seq_fifo_resize(), but reject stale cells before any FIFO relink. Revalidate event-in cells under f->lock and retry them against the published replacement pool, and free stale putback cells instead of linking them back into the FIFO. The buggy scenario involves two paths, with each column showing the order within that path: resize path: relink path: 1. Allocate newpool. 1. Take f->use_lock. 2. Swap f->pool to newpool and 2. Duplicate or dequeue an old-pool detach oldhead. cell before oldpool closes. 3. Mark oldpool closing and 3. Reach a later relink point after wait for FIFO users. resize published newpool. 4. Free oldhead and delete 4. Relink the old-pool cell after oldpool. resize detached oldhead. 5. Drop f->use_lock. The reproducer reports a resize ioctl blocked in the expected pool teardown path: signal: resize iteration=98 target_pool=4 exceeded 250ms (elapsed=251ms) diagnostic: resize_tid=651 wchan=snd_seq_pool_done diagnostic: resize_tid=651 stack= snd_seq_pool_done+0x5b/0x140 snd_seq_pool_delete+0x7a/0x90 snd_seq_fifo_resize+0x193/0x1e0 snd_seq_ioctl_set_client_pool+0x214/0x260 snd_seq_ioctl+0x119/0x540 __x64_sys_ioctl+0xd1/0x120 do_syscall_64+0xbb/0x2f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f A second run with larger pools hit the same target path: signal: resize iteration=32 target_pool=64 exceeded 250ms (elapsed=251ms) diagnostic: resize_tid=663 wchan=snd_seq_pool_done diagnostic: resize_tid=663 stack= snd_seq_pool_done+0x5b/0x140 snd_seq_pool_delete+0x7a/0x90 snd_seq_fifo_resize+0x193/0x1e0 snd_seq_ioctl_set_client_pool+0x214/0x260 snd_seq_ioctl+0x119/0x540 __x64_sys_ioctl+0xd1/0x120 do_syscall_64+0xbb/0x2f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f The Linux kernel CVE team has assigned CVE-2026-74261 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 2d7d54002e396c180db0c800c1046f0a3c471597 and fixed in 6.18.40 with commit 98a965cb1e767b54b6bbd831b6cea26f521a8f51 Issue introduced in 4.11 with commit 2d7d54002e396c180db0c800c1046f0a3c471597 and fixed in 7.1.5 with commit 1c4c35fb68d520241f7d9f1c356b5e2370fd8364 Issue introduced in 4.11 with commit 2d7d54002e396c180db0c800c1046f0a3c471597 and fixed in 7.2-rc1 with commit e546128291f8d688dcb931827e2efd2aa6c0734d Issue introduced in 3.2.91 with commit df7a2d0af9f7ab73cf22a7b62bbc0bad93a02110 Issue introduced in 3.10.107 with commit 28e0ebdd57cd3287ac821068364b74c70af3861c Issue introduced in 3.12.73 with commit d4b8e8a32d74052fe292618ae19f794944ddc673 Issue introduced in 3.16.46 with commit e91325f27c4d98d1088e9e86b3ab475f752eeb80 Issue introduced in 3.18.50 with commit 9ebfed203c0d93449a074c5c2fd5bb3e58518f0d Issue introduced in 4.1.40 with commit 3492352e1f34673708fa7409b4b1d97545aa2f1c Issue introduced in 4.4.60 with commit a90d7447e4a154ad26e3b9e09a0878680be49339 Issue introduced in 4.9.21 with commit 74a2c1ff88a4e0960623d17f7db56ac5a60bb0cf Issue introduced in 4.10.9 with commit c36ef6467420f8982e6d4d6f93d0634a85a5ee45 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-74261 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/core/seq/seq_fifo.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/98a965cb1e767b54b6bbd831b6cea26f521a8f51 https://git.kernel.org/stable/c/1c4c35fb68d520241f7d9f1c356b5e2370fd8364 https://git.kernel.org/stable/c/e546128291f8d688dcb931827e2efd2aa6c0734d