{"api_version":"1","generated_at":"2026-11-30T15:21:44+00:00","cve":"CVE-2026-139789","urls":{"html":"https://cve.report/CVE-2026-139789","api":"https://cve.report/api/cve/CVE-2026-139789.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139789","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139789"},"summary":{"title":"hugetlbfs: enforce F_SEAL_EXEC in setattr","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhugetlbfs: enforce F_SEAL_EXEC in setattr\n\nF_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does\nnot check it. As a result, fchmod() can change the execute bits of a\nsealed hugetlbfs memfd.\n\nUse memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes\nto execute bits when F_SEAL_EXEC is set.\n\nThis also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where\nfchmod() incorrectly succeeded after applying F_SEAL_EXEC.\n\n[ david: use common helper; fixup Fixes:; check only regular files ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:12","updated_at":"2026-11-30 14:20:12"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47","name":"https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c","name":"https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8","name":"https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab","name":"https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58","name":"https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139789","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139789","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6fd7353829cafc4067aad9eea0dc95da67e7df16 20e999e56828852726f2a15089eb96eef40c5c47 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6fd7353829cafc4067aad9eea0dc95da67e7df16 03ad7616aa417782697899a162cd67a5288c25d8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6fd7353829cafc4067aad9eea0dc95da67e7df16 d7992c7aac0a7a0251693618c3c75cba95e7cb58 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6fd7353829cafc4067aad9eea0dc95da67e7df16 119d89c16ac257a1e1272392635a86e0d52357ab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6fd7353829cafc4067aad9eea0dc95da67e7df16 b7f570e7cea761ec7eb4a3a9557a3a082d14e88c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/hugetlbfs/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"20e999e56828852726f2a15089eb96eef40c5c47","status":"affected","version":"6fd7353829cafc4067aad9eea0dc95da67e7df16","versionType":"git"},{"lessThan":"03ad7616aa417782697899a162cd67a5288c25d8","status":"affected","version":"6fd7353829cafc4067aad9eea0dc95da67e7df16","versionType":"git"},{"lessThan":"d7992c7aac0a7a0251693618c3c75cba95e7cb58","status":"affected","version":"6fd7353829cafc4067aad9eea0dc95da67e7df16","versionType":"git"},{"lessThan":"119d89c16ac257a1e1272392635a86e0d52357ab","status":"affected","version":"6fd7353829cafc4067aad9eea0dc95da67e7df16","versionType":"git"},{"lessThan":"b7f570e7cea761ec7eb4a3a9557a3a082d14e88c","status":"affected","version":"6fd7353829cafc4067aad9eea0dc95da67e7df16","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/hugetlbfs/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.3"},{"lessThan":"6.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhugetlbfs: enforce F_SEAL_EXEC in setattr\n\nF_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does\nnot check it. As a result, fchmod() can change the execute bits of a\nsealed hugetlbfs memfd.\n\nUse memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes\nto execute bits when F_SEAL_EXEC is set.\n\nThis also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where\nfchmod() incorrectly succeeded after applying F_SEAL_EXEC.\n\n[ david: use common helper; fixup Fixes:; check only regular files ]"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:38:01.034Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47"},{"url":"https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8"},{"url":"https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58"},{"url":"https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab"},{"url":"https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c"}],"title":"hugetlbfs: enforce F_SEAL_EXEC in setattr","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139789","datePublished":"2026-11-30T13:38:01.034Z","dateReserved":"2026-11-30T13:22:15.953Z","dateUpdated":"2026-11-30T13:38:01.034Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:12","lastModifiedDate":"2026-11-30 14:20:12","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139789","Ordinal":"1","Title":"hugetlbfs: enforce F_SEAL_EXEC in setattr","CVE":"CVE-2026-139789","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139789","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nhugetlbfs: enforce F_SEAL_EXEC in setattr\n\nF_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does\nnot check it. As a result, fchmod() can change the execute bits of a\nsealed hugetlbfs memfd.\n\nUse memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes\nto execute bits when F_SEAL_EXEC is set.\n\nThis also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where\nfchmod() incorrectly succeeded after applying F_SEAL_EXEC.\n\n[ david: use common helper; fixup Fixes:; check only regular files ]","Type":"Description","Title":"hugetlbfs: enforce F_SEAL_EXEC in setattr"}]}}}