CVE-2026-138835: arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO
In the Linux kernel, the following vulnerability has been resolved:
arm64/efi: Clear PTEWRITE when applying EFIMEMORYRO
setpermissions() sets PTERDONLY for regions that the Memory Attributes Table describes as read-only, but leaves PTEWRITE set. PTEWRITE is the DBM bit, so when hardware dirty state management is enabled (TCREL1.HD), such a descriptor is writable-clean rather than read-only, and a write by the firmware will be permitted by the hardware (which marks the entry dirty) instead of faulting.
Clear PTEWRITE as well, as ptewrprotect() does.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Clear PTE_WRITE when applying EFI_MEMORY_RO, as pte_wrprotect() does.
Linux kernel arm64/efi PTE_WRITE = clear