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 3DED8407CC5 for ; Wed, 27 May 2026 13:04:09 +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=1779887050; cv=none; b=NUw2Jou+y+E8ciK9Mqykg7F1CdbrtN2HknDN+6jRA/wMoYoiBBfHbfrDoC3nlxY82Yi3AzG/E8LaMwpVPn7JGI0banmpLsZX/77JrBEJLzwnlLlHz3wMozcbWYUiuP5KgZZPpDPDNy3uT6lC7/aE9qCj+yiJNHqoY5TPfZmlCiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887050; c=relaxed/simple; bh=Pu+KPIetfPuZHxuQG1Zb6ZI0+jiIZLaArcKe4dW7yRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZKwYIRMSZi10FXDfSxPbYBrar8ezCOe5zkaTbYfneVupb7ewQ3g2Gn/mV4I6MsbADUegzjLOLiYvMkBkgZ3/sOLW+mhsDqkU0xxW4yXd2X7P/egcP4UTiKokCYT5YeLbuUZh2di8ZayZs26EltzYi5xW/aE7GhmjaqrnO03Wzbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S8j8HM0N; 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="S8j8HM0N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 891841F000E9; Wed, 27 May 2026 13:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887049; bh=Sf5BhQ61igo6mf+VgwYK4wU9zMmGQYQ59gF+mFGsoCI=; h=From:To:Cc:Subject:Date:Reply-To; b=S8j8HM0Nt5r98HRf4zQYFSTZuP8vRkaNyiEQZdIUVgWxUvqTIlfyYEDf1Pp7rxO9C glwxNz9f5TqjLDLx5jp+Ijs8Ea61Zo9b7ASesAybxvpK2aZhEyr1zFAwPcCDurVHCW N8lTv5AcwWjTYikJ0etdcwWWlA6NOlQcWImepKYQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46063: x86/shstk: Prevent deadlock during shstk sigreturn Date: Wed, 27 May 2026 14:59:54 +0200 Message-ID: <2026052756-CVE-2026-46063-18c4@gregkh> X-Mailer: git-send-email 2.54.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=4060; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yooW9K1lWLPZh1e+hk62nF0O8DeVR0RWd1FdfTLinD4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliryYUiMcJXDS/tnOGUNm/a/t+rd/lPD9Su24eh/U6p Uuth/3qOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAilksY5qmEPvu21nv/9WmP p3E4uvJ9afkzt41hrrwM6zmpT3X6t5+u/aJ25UbNlm7JewA= 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: x86/shstk: Prevent deadlock during shstk sigreturn During sigreturn the shadow stack signal frame is popped. The kernel does this by reading the shadow stack using normal read accesses. When it can't assume the memory is shadow stack, it takes extra steps to makes sure it is reading actual shadow stack memory and not other normal readable memory. It does this by holding the mmap read lock while doing the access and checking the flags of the VMA. Unfortunately that is not safe. If the read of the shadow stack sigframe hits a page fault, the fault handler will try to recursively grab another mmap read lock. This normally works ok, but if a writer on another CPU is also waiting, the second read lock could fail and cause a deadlock. Fix this by not holding mmap lock during the read access to userspace. Instead use mmap_lock_speculate_...() to watch for changes between dropping mmap lock and the userspace access. Retry if anything grabbed an mmap write lock in between and could have changed the VMA. These mmap_lock_speculate_...() helpers use mm::mm_lock_seq, which is only available when PER_VMA_LOCK is configured. So make X86_USER_SHADOW_STACK depend on it. On x86, PER_VMA_LOCK is a default configuration for SMP kernels. So drop support for the other configs under the assumption that the !SMP shadow stack user base does not exist. Currently there is a check that skips the lookup work when the SSP can be assumed to be on a shadow stack. While reorganizing the function, remove the optimization to make the tricky code flows more common, such that issues like this cannot escape detection for so long. The Linux kernel CVE team has assigned CVE-2026-46063 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 7fad2a432cd35bbf104d2d9d426e74902f22aa95 and fixed in 6.6.140 with commit e2c2b044458cbf22da05264fa707308e8d4f86f9 Issue introduced in 6.6 with commit 7fad2a432cd35bbf104d2d9d426e74902f22aa95 and fixed in 6.12.88 with commit d042d69b417515959e49021fef008c9b04a99bd5 Issue introduced in 6.6 with commit 7fad2a432cd35bbf104d2d9d426e74902f22aa95 and fixed in 6.18.27 with commit 4f3374c990fb2adec06d20fd6d780927811c9aa0 Issue introduced in 6.6 with commit 7fad2a432cd35bbf104d2d9d426e74902f22aa95 and fixed in 7.0.4 with commit 3d29db827502067626062f5c74dd502d14ab15bc Issue introduced in 6.6 with commit 7fad2a432cd35bbf104d2d9d426e74902f22aa95 and fixed in 7.1-rc1 with commit 9874b2917b9fbc30956fee209d3c4aa47201c64e 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-46063 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: arch/x86/Kconfig arch/x86/kernel/shstk.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/e2c2b044458cbf22da05264fa707308e8d4f86f9 https://git.kernel.org/stable/c/d042d69b417515959e49021fef008c9b04a99bd5 https://git.kernel.org/stable/c/4f3374c990fb2adec06d20fd6d780927811c9aa0 https://git.kernel.org/stable/c/3d29db827502067626062f5c74dd502d14ab15bc https://git.kernel.org/stable/c/9874b2917b9fbc30956fee209d3c4aa47201c64e