CVE-2026-139789
hugetlbfs: enforce F_SEAL_EXEC in setattr
Check your servers for CVE-2026-139789
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139789 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 ]
Exploitation
EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6fd7353829cafc4067aad9eea0dc95da67e7df16, before 20e999e56828852726f2a15089eb96eef40c5c47 affected from 6fd7353829cafc4067aad9eea0dc95da67e7df16, before 03ad7616aa417782697899a162cd67a5288c25d8 affected from 6fd7353829cafc4067aad9eea0dc95da67e7df16, before d7992c7aac0a7a0251693618c3c75cba95e7cb58 affected from 6fd7353829cafc4067aad9eea0dc95da67e7df16, before 119d89c16ac257a1e1272392635a86e0d52357ab affected from 6fd7353829cafc4067aad9eea0dc95da67e7df16, before b7f570e7cea761ec7eb4a3a9557a3a082d14e88c
Other versions: unaffected
|
| Linux |
affected 6.3 unaffected before 6.3 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139789 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139789
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139789
trivy image --scanners vuln IMAGE | grep CVE-2026-139789
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47 git.kernel.org
- https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8 git.kernel.org
- https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58 git.kernel.org
- https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab git.kernel.org
- https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c git.kernel.org
Source: the record CVE-2026-139789 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse