CVE-2026-139789

Source
https://cve.org/CVERecord?id=CVE-2026-139789
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139789.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139789
Downstream
Published
2026-11-30T13:38:01Z
Modified
2026-11-30T15:02:31Z
Summary
hugetlbfs: enforce F_SEAL_EXEC in setattr
Details

In the Linux kernel, the following vulnerability has been resolved:

hugetlbfs: enforce F_SEAL_EXEC in setattr

F_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does not check it. As a result, fchmod() can change the execute bits of a sealed hugetlbfs memfd.

Use memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes to execute bits when F_SEAL_EXEC is set.

This also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where fchmod() incorrectly succeeded after applying F_SEAL_EXEC.

[ david: use common helper; fixup Fixes:; check only regular files ]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139789.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6fd7353829cafc4067aad9eea0dc95da67e7df16
Fixed
20e999e56828852726f2a15089eb96eef40c5c47
Fixed
03ad7616aa417782697899a162cd67a5288c25d8
Fixed
d7992c7aac0a7a0251693618c3c75cba95e7cb58
Fixed
119d89c16ac257a1e1272392635a86e0d52357ab
Fixed
b7f570e7cea761ec7eb4a3a9557a3a082d14e88c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139789.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139789.json"