Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 84B8C23C8AE for ; Fri, 24 Apr 2026 14:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041948; cv=none; b=G2cmS2b/lHIeZigKq7lhWrEJ4XbJkvjlIr3hzFZj3Yc9owX9Oas4dPME1BQlioiVAWpWU2eUrOm8/3DHSsb0HgChRvFDTs4aSQK2bFOIUZMMQcKRhuPWcHlwK+Il4VEOG2GNat7JI48+sQlJMJZXRUoV5+CryGmW1Ka1L8qaLSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041948; c=relaxed/simple; bh=imIcKpY16Yexzt8S6crJqCfTOHr76vJYmMvDn7GqPBw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lb4H77AdJDtRzDxb6rcWkWBJ2mF21hkzxFwdgPt0bCNe43zzOnzRcW82WLI9Q/jIRuyNgFP0w6cCAm7krnedHJ+jiFPpQ4Ulp1/7s2u7r+8w5rYZozLpS0OnlEJLQqEdr4Qn7IeanPEC9ERrQhVwXywi9zp//A03SG07UZB6QZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kfsiYgCX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kfsiYgCX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BC12C19425; Fri, 24 Apr 2026 14:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041948; bh=imIcKpY16Yexzt8S6crJqCfTOHr76vJYmMvDn7GqPBw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=kfsiYgCXrg1wC6iz9vvM++JShcfV0GT9WGxIIIch/Q2pKmizAwNqxdtL1TNQxhKRB PbwDk21af4W29zUywloZ7Qp/S5shJTsj6eO9uWStojyVKA9DGGSvIv6ntQJfCvjCEt TTuFaTKl2xR7EpKt9G1nNr41Yclh91YTdx5Tsmhg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31602: ALSA: ctxfi: Limit PTP to a single page Date: Fri, 24 Apr 2026 16:43:38 +0200 Message-ID: <2026042419-CVE-2026-31602-39fc@gregkh> X-Mailer: git-send-email 2.53.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=3092; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MK8PYSCGkrAQdxghksCfXiuq+d79hf0dZZTLLhttEEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG9vDrWRWdB5xPLP2SPaHJwfZ3jOznHkgfXPFik+f1 8Xe5qno6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJhGxgmJ915+f9yqNKl89t KT0epzhtgdiLrVcY5gf2yf3bkfP339wJ2fu0fjsf3v3B7hkA 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: ctxfi: Limit PTP to a single page Commit 391e69143d0a increased CT_PTP_NUM from 1 to 4 to support 256 playback streams, but the additional pages are not used by the card correctly. The CT20K2 hardware already has multiple VMEM_PTPAL registers, but using them separately would require refactoring the entire virtual memory allocation logic. ct_vm_map() always uses PTEs in vm->ptp[0].area regardless of CT_PTP_NUM. On AMD64 systems, a single PTP covers 512 PTEs (2M). When aggregate memory allocations exceed this limit, ct_vm_map() tries to access beyond the allocated space and causes a page fault: BUG: unable to handle page fault for address: ffffd4ae8a10a000 Oops: Oops: 0002 [#1] SMP PTI RIP: 0010:ct_vm_map+0x17c/0x280 [snd_ctxfi] Call Trace: atc_pcm_playback_prepare+0x225/0x3b0 ct_pcm_playback_prepare+0x38/0x60 snd_pcm_do_prepare+0x2f/0x50 snd_pcm_action_single+0x36/0x90 snd_pcm_action_nonatomic+0xbf/0xd0 snd_pcm_ioctl+0x28/0x40 __x64_sys_ioctl+0x97/0xe0 do_syscall_64+0x81/0x610 entry_SYSCALL_64_after_hwframe+0x76/0x7e Revert CT_PTP_NUM to 1. The 256 SRC_RESOURCE_NUM and playback_count remain unchanged. The Linux kernel CVE team has assigned CVE-2026-31602 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 365c36e1a126c6aa1aecedd3a351bcabc66f0c29 Fixed in 6.18.24 with commit 3fd0685d7fef68c2d8a04876bcf9eaa0724ad6a5 Fixed in 6.19.14 with commit b7f5ecd13cce8c2f8fa5a84c9aab65997142577e Fixed in 7.0.1 with commit ad9011a795407093dcf507f6e5da1828987b4b47 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-31602 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/pci/ctxfi/ctvmem.h 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/365c36e1a126c6aa1aecedd3a351bcabc66f0c29 https://git.kernel.org/stable/c/3fd0685d7fef68c2d8a04876bcf9eaa0724ad6a5 https://git.kernel.org/stable/c/b7f5ecd13cce8c2f8fa5a84c9aab65997142577e https://git.kernel.org/stable/c/ad9011a795407093dcf507f6e5da1828987b4b47 https://git.kernel.org/stable/c/e9418da50d9e5c496c22fe392e4ad74c038a94eb