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 4C926298CAB for ; Sat, 15 Aug 2026 12:30:31 +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=1786797032; cv=none; b=XIlXFEM2Lypl194k02+tKxpY8zkbR3+ukA64Zr+R3THIQ07clABGqEGTl1joYjFrq8u2/3IPnIsWUn7wJGL1vsoSO7d8VBegIzl6AFxNJOd8pPzT1a9AeR+9d4BjjTP0F2tm7COaQPON9oeADBB0JN2pH+DIvVyauAMEBjlnwPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797032; c=relaxed/simple; bh=XoHgEv9EbJ8BgEYZCEZ9O/r7L++D8vZwDjRBmXF10IY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bu46tIK4KsxvzlS83vzXLg/7KgFSSnOuUG1TjgNkMhvTsNiNXwDQ8y7UeJqM1YLRv7jD4wyDqYTnLjEDIpQ9MBT4DatWRwRxzIY/bS2KJkCmf7gZAVJ9+/u1GnBPFj0NkBXtQgDm/rjhRKr0H1+qrQV9Oxv5rINNhbNbEqyJ2ao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pkEM/FRW; 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="pkEM/FRW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98B291F000E9; Sat, 15 Aug 2026 12:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786797031; bh=tKjbZoyxWZgRTpguU67i6fru+6sF2Tgi+NswDLInjjg=; h=From:To:Cc:Subject:Date:Reply-To; b=pkEM/FRWF7v5O0jc8g7S2xpLhIhPssE2VcfTBrk0gmZW/EwbnFMkqD8v1OwQsC9M3 7VBguWXyblLPQB791kRwZ7NY9Mv7m/px/zDC0nmDzC898Nx2eLYtU6jTG7F8wWhLdR 3vjYRakQRQrgDDXXw9K0IGUdhC2OvXGWPwfWngMI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74504: ALSA: seq: Fix division by zero in initialize_timer() Date: Sat, 15 Aug 2026 21:26:25 +0900 Message-ID: <2026081541-CVE-2026-74504-ea1f@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=3648; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YUAXNPj52NfSr9LykmgqdsCpUUC5Xiuogi+r5DdpOa4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUUflZpuu4T/hGZGcPeNG1hUN56L90d++v7ioomIaE qxRsuhaRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEXZZhnrXa9nfqa39bKM7p /tbw0r67Yu5kG4b5KUtL1t2P9+Phrr9nv6akU/zA4avfAQ== 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: Fix division by zero in initialize_timer() A userspace-driven ALSA timer (SND_UTIMER) lets an unprivileged user set the backing snd_timer's hardware resolution to an arbitrary 64-bit value via SNDRV_TIMER_IOCTL_CREATE. snd_utimer_create() only rejects zero. When such a timer is bound to a sequencer queue, initialize_timer() computes the tick period as tmr->ticks = 1000000000 / (r * freq); where r is that user-controlled resolution and freq is the sequencer update rate in Hz, clamped to MIN_FREQUENCY..MAX_FREQUENCY (10..6250). A resolution of 2^63 makes the 64-bit product r * freq wrap to zero for any even freq, including DEFAULT_FREQUENCY (1000), so the division faults with a divide-by-zero. The division runs under tmr->lock with interrupts disabled, so the oops leaves the spinlock held and hangs the CPU. It is reachable by an unprivileged user with access to /dev/snd/timer and /dev/snd/seq. Oops: divide error: 0000 [#1] SMP KASAN PTI CPU: 7 UID: 1000 PID: 456 Comm: alsa_seq_utimer Not tainted 7.2.0-rc4+ RIP: 0010:initialize_timer.constprop.0+0x20a/0x2d0 snd_seq_timer_start+0x15e/0x2b0 snd_seq_control_queue+0x56f/0xba0 snd_seq_write+0x3e0/0x730 Reject an overflowing product with check_mul_overflow() and fall back to a single tick, which also avoids feeding a wrapped-but-nonzero divisor (e.g. 2^63 * 1000 mod 2^64 == 0, or other resolutions wrapping to a small value) into the period computation. The Linux kernel CVE team has assigned CVE-2026-74504 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 37745918e0e7575bc40f38da93a99b9fa6406224 and fixed in 6.12.103 with commit d0e19932875746118e298b4c974f3b2d4aeb16fc Issue introduced in 6.12 with commit 37745918e0e7575bc40f38da93a99b9fa6406224 and fixed in 6.18.44 with commit 5260e195c53e898a4a76527d4bb2178f31795e78 Issue introduced in 6.12 with commit 37745918e0e7575bc40f38da93a99b9fa6406224 and fixed in 7.1.8 with commit 42c6543ff27ea280334244458d4f52ec7133cc05 Issue introduced in 6.12 with commit 37745918e0e7575bc40f38da93a99b9fa6406224 and fixed in 7.2-rc6 with commit 21e19688433452dfbbbe6b2bb670dea6eb92f0f6 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-74504 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_timer.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/d0e19932875746118e298b4c974f3b2d4aeb16fc https://git.kernel.org/stable/c/5260e195c53e898a4a76527d4bb2178f31795e78 https://git.kernel.org/stable/c/42c6543ff27ea280334244458d4f52ec7133cc05 https://git.kernel.org/stable/c/21e19688433452dfbbbe6b2bb670dea6eb92f0f6