{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6fd7353829cafc4067aad9eea0dc95da67e7df16"
            },
            {
              "fixed": "20e999e56828852726f2a15089eb96eef40c5c47"
            },
            {
              "fixed": "03ad7616aa417782697899a162cd67a5288c25d8"
            },
            {
              "fixed": "d7992c7aac0a7a0251693618c3c75cba95e7cb58"
            },
            {
              "fixed": "119d89c16ac257a1e1272392635a86e0d52357ab"
            },
            {
              "fixed": "b7f570e7cea761ec7eb4a3a9557a3a082d14e88c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139789.json"
  },
  "details": "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 ]",
  "id": "CVE-2026-139789",
  "modified": "2026-11-30T14:46:05.172306238Z",
  "published": "2026-11-30T13:38:01.034Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/03ad7616aa417782697899a162cd67a5288c25d8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/119d89c16ac257a1e1272392635a86e0d52357ab"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/20e999e56828852726f2a15089eb96eef40c5c47"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b7f570e7cea761ec7eb4a3a9557a3a082d14e88c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d7992c7aac0a7a0251693618c3c75cba95e7cb58"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139789.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139789"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "hugetlbfs: enforce F_SEAL_EXEC in setattr"
}