{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c4a16820d90199409c9bf01c4f794e1e9e8d8fd8"
            },
            {
              "fixed": "142db4e76110dd80239f4e79810f85ea1735ad60"
            },
            {
              "fixed": "0748e553df0225754c316a92af3a77fdc057b358"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38247.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nuserns and mnt_idmap leak in open_tree_attr(2)\n\nOnce want_mount_setattr() has returned a positive, it does require\nfinish_mount_kattr() to release -\u003emnt_userns.  Failing do_mount_setattr()\ndoes not change that.\n\nAs the result, we can end up leaking userns and possibly mnt_idmap as\nwell.",
  "id": "CVE-2025-38247",
  "modified": "2026-04-01T23:09:58.919677819Z",
  "published": "2025-07-09T10:42:28.531Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0748e553df0225754c316a92af3a77fdc057b358"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/142db4e76110dd80239f4e79810f85ea1735ad60"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38247.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-38247"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "userns and mnt_idmap leak in open_tree_attr(2)"
}