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 20045435EE9 for ; Fri, 25 Sep 2026 10:40:14 +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=1790332816; cv=none; b=PHg9g3BTmQMnvz7Jxq+hy35qJZIzhk8aOdzhp71Koit1+fxEuQEzppfUvcBWU4MLACT+F+xxJqq/2BTpbSnmjryICfXU3QJjS1fHT1Ms+YUO2b92SC6T74KZOlJ/P9Upts4njfmaEnuNQuPfEzn71Bz9RvHUcEHUAHHCcxa6KvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332816; c=relaxed/simple; bh=IFGEgFNGqMGYB+P3K7V2HtXRXvam/z14GoFv62Wd7f4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iJ13OKV3qJFG9oJFklpT2i8ZD9ect72qkJOw2VspEhRH4nvm8J9kF3/yRR2B6NB0kdz8Py5koyMQqI61uI9yua6L/oxbjm95FhvyTLDZdnIaWUR3anTpe+WjOWEwHafWrqS4t8rdg8owMIx5ZqUq8h2GoSPhGC6D2YzZmIQZOQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pcjrzK/+; 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="pcjrzK/+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FE9A1F000FF; Fri, 25 Sep 2026 10:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332814; bh=RLn9yBFWh9eiJn1MjoRGtyzkyZ8rGSjk7jE5v1+SXsg=; h=From:To:Cc:Subject:Date:Reply-To; b=pcjrzK/+/ztiU+MaTIgQclJd0F1epLnKSeAIqcpDwEh6pJVbxN2DR5wNl/n33x4zT 7ORtLkzEfNbHhDCeB1bZAW72E7rnqY039It9sZmC+TzUtuD4tTq8tPspUdgal3uuyx Xp3DEQGFg+tQ1VBBy0Fr+ptbsuua5qo1a6WKjXUY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98116: ALSA: pcm: Serialize PCM mmap with buffer reallocation to fix page UAF Date: Fri, 25 Sep 2026 12:39:23 +0200 Message-ID: <2026092512-CVE-2026-98116-5878@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=4291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/E2tUqW3iu85hOYEDfaP7aJqL1+b89/zXf0WAnG3Uhg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/ANivQ5fE6zSenB3x4GLb2t9Lm/7V7ns4ean6xnZd 2mvf5Kd1hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATEZ7HsKBz5+IF7zJ+KOzM P3NcbXG6EWs1fxPDPP3obbwBFwPCZykHnQu4uujCulVSdwA= 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: pcm: Serialize PCM mmap with buffer reallocation to fix page UAF snd_pcm_hw_params() and snd_pcm_hw_free() guard buffer reallocation with an mmap_count check performed under the PCM stream lock, but the lock is released long before the buffer is actually freed: snd_pcm_sync_stop(), constraint refinement and do_free_pages() all happen in between. snd_pcm_mmap_data(), on the other hand, takes no lock at all: it validates against the old buffer's state and dma_bytes, remaps its pages into the VMA, and only then increments mmap_count. A concurrent mmap() can therefore slip in between the check and the free. remap_pfn_range() installs writable PTEs for the old buffer's pages without taking page references, and the subsequent do_free_pages() returns those pages to the page allocator while the VMA still maps them. This leaves a stale, writable mapping of freed pages: a page-level use-after-free that can be leveraged for local privilege escalation. Make snd_pcm_mmap_data() participate in the buffer-access scheme introduced for hw_params/hw_free: acquire runtime->buffer_accessing before validating and remapping, and release it afterwards. Buffer reallocation already fails with -EBUSY while accessors are active, and the mmap side now fails with -EBUSY while a reallocation is in progress, so the validate/remap sequence and the check/free sequence can no longer interleave. A reproducer that turns this race into a stale writable mapping of the freed DMA buffer pages is available on request. The Linux kernel CVE team has assigned CVE-2026-98116 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 92ee3c60ec9fe64404dc035e7c41277d74aa26cb and fixed in 6.12.111 with commit cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5 Issue introduced in 5.18 with commit 92ee3c60ec9fe64404dc035e7c41277d74aa26cb and fixed in 6.18.53 with commit fd137bf8149bc6460f9b7b1fc292025da04cb9ee Issue introduced in 5.18 with commit 92ee3c60ec9fe64404dc035e7c41277d74aa26cb and fixed in 7.2.7 with commit 8c1882dfee8f404d118020664b73eb4592172226 Issue introduced in 5.18 with commit 92ee3c60ec9fe64404dc035e7c41277d74aa26cb and fixed in 7.3-rc2 with commit 9b110a9dcecc59516c77cb3c0caf1f492f75df2d Issue introduced in 4.14.279 with commit a42aa926843acca96c0dfbde2e835b8137f2f092 Issue introduced in 4.19.243 with commit 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9 Issue introduced in 5.4.193 with commit fbeb492694ce0441053de57699e1e2b7bc148a69 Issue introduced in 5.10.109 with commit 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8 Issue introduced in 5.15.32 with commit 33061d0fba51d2bf70a2ef9645f703c33fe8e438 Issue introduced in 5.16.18 with commit 0090c13cbbdffd7da079ac56f80373a9a1be0bf8 Issue introduced in 5.17.1 with commit 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b 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-98116 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/pcm_native.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/cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5 https://git.kernel.org/stable/c/fd137bf8149bc6460f9b7b1fc292025da04cb9ee https://git.kernel.org/stable/c/8c1882dfee8f404d118020664b73eb4592172226 https://git.kernel.org/stable/c/9b110a9dcecc59516c77cb3c0caf1f492f75df2d