CVE-2026-139789: hugetlbfs: enforce F_SEAL_EXEC in setattr
hugetlbfs: enforce FSEALEXEC in setattr
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue applies to Linux kernel environments using hugetlbfs-backed memfd files with the F_SEAL_EXEC seal. The fix notes that the relevant check is limited to regular files.
What must an attacker or local process be able to do to trigger the flaw?
They need access to a sealed hugetlbfs memfd and the ability to invoke fchmod() on it. On an affected kernel, fchmod() can change execute permission bits even after F_SEAL_EXEC has been applied.
How can I check whether a system is affected?
Create a hugetlbfs memfd, apply F_SEAL_EXEC, and attempt to change its execute bits with fchmod(). Affected behavior is indicated if fchmod() succeeds; the corrected behavior rejects that change.