{"id":"CVE-2026-139789","aliases":["CVE-2026-139789"],"related":[],"kind":"vulnerability","state":"published","title":"hugetlbfs: enforce F_SEAL_EXEC in setattr","summary":"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 ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 ]","source":"cvelist"}],"published":"2026-11-30T13:38:01.034Z","modified":"2026-11-30T14:20:12.530Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6fd7353829cafc4067aad9eea0dc95da67e7df16","fixed":"20e999e56828852726f2a15089eb96eef40c5c47","status":"affected"},{"type":"git","introduced":"6fd7353829cafc4067aad9eea0dc95da67e7df16","fixed":"03ad7616aa417782697899a162cd67a5288c25d8","status":"affected"},{"type":"git","introduced":"6fd7353829cafc4067aad9eea0dc95da67e7df16","fixed":"d7992c7aac0a7a0251693618c3c75cba95e7cb58","status":"affected"},{"type":"git","introduced":"6fd7353829cafc4067aad9eea0dc95da67e7df16","fixed":"119d89c16ac257a1e1272392635a86e0d52357ab","status":"affected"},{"type":"git","introduced":"6fd7353829cafc4067aad9eea0dc95da67e7df16","fixed":"b7f570e7cea761ec7eb4a3a9557a3a082d14e88c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139789","url":"https://www.cve.org/CVERecord?id=CVE-2026-139789","licence":"CVE Terms of Use","modified":"2026-11-30T13:38:01.034Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139789","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139789","licence":"Public domain","modified":"2026-11-30T14:20:12.530Z"}],"updatedAt":"2026-11-30T14:33:31.747Z","epss":{"score":0.00328,"percentile":0.27929,"date":"2026-12-01T12:00:22.000Z"}}