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 9EAA8348C67 for ; Sun, 19 Jul 2026 15:02:46 +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=1784473367; cv=none; b=W2dxH30Jaq0MlMnKQEwOe1wZzPoemvi6P5JiqlKjVOENMqyhI0rUI5K6sDvF+BsVa9n7MX3hDEvyRJQlg9SIRAwwRAGtRZCjgK2EA9A/HvYBsB/lLLNSEQ68765vmQxj8kLVIraH1Ud2e8+JVWMRsyloeYiRfVt98RuWAbfpulM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473367; c=relaxed/simple; bh=aHEwOuoFWpothWTwTAQ6Rf1LaTYE2b22p2krcQzZlnc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BHHTGpdRf/o6LbvuBaZUIYJq76VJb99JfeL7UbFq5yVCB4LaVSuONrQ5U8jMO0sKSKKY5dgc2lrQwCJrJotBzvSqo7viZxHWTrgG5C3ThuEXBmSeje7nYUqt2rc8MQthX7bQJ5BElYebdj2isSjNY5wBfw0dk7hQOLuaARVKxLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0QBOdsZ9; 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="0QBOdsZ9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE8C31F000E9; Sun, 19 Jul 2026 15:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473366; bh=suI7RibXwz7JSQvxkJe2oBvrKNVc7BTInWQVpLVkHzw=; h=From:To:Cc:Subject:Date:Reply-To; b=0QBOdsZ9MkigK155cCUZOpUHQfUO6peSGMYB0I0FjQRUFvj/PCH85vN5lYUCKScAf 7uSp6PB1KVn47aEK1ejTynqU/6Yr4Kq49UWRyP0JlYanXRVF5Gwk1bKJvnfZ8IhShI MfpyjWP94vKIxg3byKVbgrMAAciyE5Q0D/hPFjl4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63952: memfd: deny writeable mappings when implying SEAL_WRITE Date: Sun, 19 Jul 2026 16:56:52 +0200 Message-ID: <2026071955-CVE-2026-63952-0c7b@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=2953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Fcz21HmADWBs0FWct4GHHrGpHPNrdlSv1Td35PSsdr4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT6v/Zy6+GeDiath3vydMavYebePY2zsV2273te8PP HY1NmxNRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk/wPD/NQfalOPqqnkzOdW 2b9+yd+Jf6xtXBnmZz5RPefwgFXhs6Njb9PE2qfri607AA== 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: memfd: deny writeable mappings when implying SEAL_WRITE When SEAL_EXEC is added, SEAL_WRITE is implied to make W^X. But the implied seal is set after the check that makes sure the memfd can not have any writable mappings. This means one can use SEAL_EXEC to apply SEAL_WRITE while having writeable mappings. This breaks the contract that SEAL_WRITE provides and can be used by an attacker to pass a memfd that appears to be write sealed but can still be modified arbitrarily. Fix this by adding the implied seals before the call for mapping_deny_writable() is done. The Linux kernel CVE team has assigned CVE-2026-63952 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit c4f75bc8bd6b3d62665e1f5400c419540edb5601 and fixed in 6.6.143 with commit b3f4f82d1315f1439059a83d1c22c51a5b43d99e Issue introduced in 6.3 with commit c4f75bc8bd6b3d62665e1f5400c419540edb5601 and fixed in 6.12.93 with commit 3be2a24f7f72ad7321ed6ad1715b956a4527bcf4 Issue introduced in 6.3 with commit c4f75bc8bd6b3d62665e1f5400c419540edb5601 and fixed in 6.18.35 with commit 0995d1f79aed8ccbf62056189dd53fd19726ea08 Issue introduced in 6.3 with commit c4f75bc8bd6b3d62665e1f5400c419540edb5601 and fixed in 7.0.12 with commit 555702282d4536a865dfffb1cd4f6028f196e7e8 Issue introduced in 6.3 with commit c4f75bc8bd6b3d62665e1f5400c419540edb5601 and fixed in 7.1 with commit 3b041514cb6eae45869b020f743c14d983363222 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-63952 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/memfd.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/b3f4f82d1315f1439059a83d1c22c51a5b43d99e https://git.kernel.org/stable/c/3be2a24f7f72ad7321ed6ad1715b956a4527bcf4 https://git.kernel.org/stable/c/0995d1f79aed8ccbf62056189dd53fd19726ea08 https://git.kernel.org/stable/c/555702282d4536a865dfffb1cd4f6028f196e7e8 https://git.kernel.org/stable/c/3b041514cb6eae45869b020f743c14d983363222