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 502683B6C14 for ; Fri, 28 Aug 2026 06:52:26 +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=1787899947; cv=none; b=aK+Uazw9Y5GL5mxRgQaOXODKvYCWYogHeYp8sZdEXhcRcizA77m/2w/MzVHHAnz7sh3C1hWtB6umr76+l2+80uyCKdc0URqIQqZiFWBnuaqxb1ddPflnQBdRB6qaUoiEzyIMR/zUz3D0g3hO4yjSggrtgoaxF+782fNV5311x7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899947; c=relaxed/simple; bh=BCJa8im28maU1CD6qZX8XRXnkUMvOXbK2Or/RY4brag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sfu1VbxXMS4xGkgM618BgFNYXLLTUab6oho6AYu4dzjaKlwVKNC6RI2yGZYa+ut8bKKBjOm5Q21QUvjifsrfaz4rT4gp+DnWbfvNxWomTihMOWaErGmsXWasxyQb82cHxvCu7ZsHjbKsZ18N0njA3WJFGbR9zWrG77FbIkGf+2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wQ/CQ1tB; 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="wQ/CQ1tB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2921F000E9; Fri, 28 Aug 2026 06:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899946; bh=+pnohmoKRmyv01UmsLtvG/s9caWxkrk6FVDbOAv7MQ8=; h=From:To:Cc:Subject:Date:Reply-To; b=wQ/CQ1tBrWcC49RFXpBBSoWGkMIJQwVNc6tASiYQwaG/EnHwVN8UVzsjJxZGv00oH crsKzOL5HNNgX1yY61OEjAnurfEI+4DcocjmA+XVLGWqVjCiKKHIFPDRR/A0JtfmLA Yk72l8psBw7ZL4KDosIb+ovK+SMRi1Z8OYx8Q3vg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80628: ALSA: seq: oss: Serialize readq reset state with q->lock Date: Fri, 28 Aug 2026 08:49:05 +0200 Message-ID: <2026082838-CVE-2026-80628-4952@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=4204; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/R51obwtH+Z6+lfhkJEKpIvgI5pvlfBSsshxMJpAHWU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9d1auPqdQpfOqO25MPuzY92fT/MjtuzwTg2bNqGMf 2Nii9rZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIXCjDXHF9W+FjUfX5+41P MlyViyr2L33PyjBPd2Wf77eVeU+ZV57p/F9iaFzZvdoAAA== 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: oss: Serialize readq reset state with q->lock snd_seq_oss_readq_clear() resets qlen, head, and tail without q->lock even though the normal reader and producer paths serialize the same ring state under that spinlock. A reset can therefore race snd_seq_oss_readq_free() or snd_seq_oss_readq_put_event() and leave stale records in the queue, drop freshly queued ones, or report the wrong readiness after wakeup. KCSAN reports a data race between snd_seq_oss_readq_clear() and snd_seq_oss_readq_free(). Take q->lock while clearing the ring and resetting input_time. Factor the enqueue logic into a caller-locked helper so snd_seq_oss_readq_put_timestamp() updates its suppression state under the same lock instead of racing the reset path. The buggy scenario involves two paths, with each column showing the order within that path: reset path: locked readq updater: 1. snd_seq_oss_reset() or 1. A reader or callback producer release reaches takes q->lock on the same queue. snd_seq_oss_readq_clear(). 2. snd_seq_oss_readq_clear() 2. The updater tests or modifies resets qlen, head, tail, qlen, head, and tail. and input_time. 3. snd_seq_oss_readq_clear() 3. The updater completes its wakes sleepers on read-modify-write sequence. q->midi_sleep. 4. Without q->lock, the reset 4. The resulting ring state drives can overlap the locked later reads and readiness. update. KCSAN reports: BUG: KCSAN: data-race in snd_seq_oss_readq_clear / snd_seq_oss_readq_free write to 0xffff8881069fe608 of 4 bytes by task 120516 on cpu 0: snd_seq_oss_readq_free+0x6c/0x80 snd_seq_oss_read+0xcb/0x250 odev_read+0x38/0x60 vfs_read+0xff/0x600 ksys_read+0xb4/0x140 __x64_sys_read+0x46/0x60 do_syscall_64+0xbb/0x2f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881069fe608 of 4 bytes by task 120517 on cpu 1: snd_seq_oss_readq_clear+0x1f/0x90 snd_seq_oss_reset+0xa7/0xf0 snd_seq_oss_ioctl+0x6f6/0x7e0 odev_ioctl+0x56/0xc0 __x64_sys_ioctl+0xd1/0x120 do_syscall_64+0xbb/0x2f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000001 -> 0x00000000 The Linux kernel CVE team has assigned CVE-2026-80628 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.40 with commit 287d506d4e0865918cec82bb1361f283a08c979b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1.5 with commit 43e10709b1ba288bcbabb9b9cb6e518b2a5d8506 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2 with commit 49ce92d207820f588b0406add82f053decfbe5d9 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-80628 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/oss/seq_oss_readq.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/287d506d4e0865918cec82bb1361f283a08c979b https://git.kernel.org/stable/c/43e10709b1ba288bcbabb9b9cb6e518b2a5d8506 https://git.kernel.org/stable/c/49ce92d207820f588b0406add82f053decfbe5d9