Bug 2502422 (CVE-2026-63952) - CVE-2026-63952 kernel: memfd: deny writeable mappings when implying SEAL_WRITE
Summary: CVE-2026-63952 kernel: memfd: deny writeable mappings when implying SEAL_WRITE
Keywords:
Status: NEW
Alias: CVE-2026-63952
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-19 16:07 UTC by OSIDB Bzimport
Modified: 2026-07-21 17:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-19 16:07:18 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-07-21 17:21:10 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026071955-CVE-2026-63952-0c7b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.