AZL-117349: CVE-2026-139789 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
hugetlbfs: enforce FSEALEXEC in setattr
FSEALEXEC is enforced by shmemsetattr(), but hugetlbfssetattr() does not check it. As a result, fchmod() can change the execute bits of a sealed hugetlbfs memfd.
Use memfdchecksealsmode() in hugetlbfssetattr() to reject changes to execute bits when FSEALEXEC is set.
This also fixes the memfdtest hugetlbfs SEAL-EXEC subtest, where fchmod() incorrectly succeeded after applying FSEALEXEC.
[ david: use common helper; fixup Fixes:; check only regular files ]
Affected Software
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs the ability to operate on a hugetlbfs-backed memfd that has F_SEAL_EXEC set. They can then use fchmod() to change that file's execute permission bits despite the seal.
Are all sealed memfds affected?
The issue is specific to hugetlbfs memfds because hugetlbfs_setattr() did not enforce F_SEAL_EXEC. The description states that shmem_setattr() already enforces this seal.
How can I determine whether a system exhibits the issue?
The hugetlbfs SEAL-EXEC subtest in memfd_test demonstrates the condition: before the fix, fchmod() incorrectly succeeds after F_SEAL_EXEC is applied. A successful attempt to change execute bits on a sealed hugetlbfs memfd indicates the vulnerable behavior.