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 AE2E53C9892 for ; Mon, 10 Aug 2026 12:04:04 +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=1786363445; cv=none; b=u6JqsFTEWTDBZJZZYZrK7ETnRlUkaGJycDFvUHMQZ00DSxBptWngeWZh3lSqxJFmxkOfv+W2dRMryb2VB+RbXVix8xSjoNwMpiagHoDE4/+ZWp1n2hoJxcS+9AOzmWuHlNZCeg/0igVGxeRnZr3cDFizFqeynuomrGtfGblnBck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363445; c=relaxed/simple; bh=iQiDDag0hEIRpK4B7nrA/1XG//ESaczEmEZA5lcWFOo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C8VgShPmCyhYn6jMjg79XEEnPoFJ6t5zwThFTdjSh1C6AzOYHjRz+U0+0rhu7d/eui0awLUbSc6YiaSmfkjxb+BxHGNVnz+sgX1llJaU82KA8ZOb8zIo0z72CtxhCKZpb1lZe9EtaNxvs5VDhDoxbNMllnU8QwvdECi0ZdhHqBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B8p1GElH; 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="B8p1GElH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1BFC1F000E9; Mon, 10 Aug 2026 12:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363444; bh=EleyHnqKWXWR59RX4EKDJAFsqc7HXV3Ri7LX5U5s3zc=; h=From:To:Cc:Subject:Date:Reply-To; b=B8p1GElHa9A84y13u14gUPH7tHnZWlfDQfuH8ENR2KD2nVJ/+v2ckL/y/ljWdC0wD 1TrzS2pCNZZSGGuoT1Em+jrNasweSZxGS0BIpOwJFH5usaPFnzPvRYwDKbqUzoUb2R 8j7Rv+F4XkykPW2M8K5SHC61j47qGVaV1W1sPUvE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68166: userfaultfd: prevent registration of special VMAs Date: Mon, 10 Aug 2026 13:58:03 +0200 Message-ID: <2026081005-CVE-2026-68166-9f42@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=2543; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v+GvhXRVa8L1chMzthWqRMLTcziMNe/6ynY8c8lFQ0A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVeyYqqK5c3luWK7mo94z6D3alxhe7NraLXXTT/hmXc FP8Sx1/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkpQrDgv3lU1duDouoXL1b c9nsKr5LfgK6ZxkWnGN7mVm/6o28yMrPjwq2XnylrtxdBAA= 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: userfaultfd: prevent registration of special VMAs Vova Tokarev says: userfaultfd allows registration on shadow stack VMAs. With userfaultfd access, you can register on the shadow stack, discard a page ... and inject a page with chosen return addresses via UFFDIO_COPY. Update vma_can_userfault() to reject VM_SHADOW_STACK. While on it, also reject VM_SPECIAL so that if a driver would implement vm_uffd_ops, it wouldn't be possible to register special VMAs with userfaultfd. Since VM_SPECIAL includes VM_DONTEXPAND which is set but hugetlb, exclude hugetlb VMAs from the check for VM_SPECIAL. The Linux kernel CVE team has assigned CVE-2026-68166 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 54007f818206dc27309ca423df4c87dd160a7208 and fixed in 6.18.44 with commit 165613191ad9d034bf17c00e3a142f9561597ec5 Issue introduced in 6.6 with commit 54007f818206dc27309ca423df4c87dd160a7208 and fixed in 7.1.6 with commit 0c26202b157f1efc3cd2f26f5c30f59b508a6a5d Issue introduced in 6.6 with commit 54007f818206dc27309ca423df4c87dd160a7208 and fixed in 7.2-rc5 with commit 3c58f641e813c3c71039f8fd4d4e2a3aab713288 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-68166 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: mm/userfaultfd.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/165613191ad9d034bf17c00e3a142f9561597ec5 https://git.kernel.org/stable/c/0c26202b157f1efc3cd2f26f5c30f59b508a6a5d https://git.kernel.org/stable/c/3c58f641e813c3c71039f8fd4d4e2a3aab713288