{
  "id": "CVE-2025-38306",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38306",
  "published_at": "2025-07-10T07:42:16.806Z",
  "title": "fs/fhandle.c: fix a race in call of has_locked_children()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs/fhandle.c: fix a race in call of has_locked_children()\n\nmay_decode_fh() is calling has_locked_children() while holding no locks.\nThat's an oopsable race...\n\nThe rest of the callers are safe since they are holding namespace_sem and\nare guaranteed a positive refcount on the mount in question.\n\nRename the current has_locked_children() to __has_locked_children(), make\nit static and switch the fs/namespace.c users to it.\n\nMake has_locked_children() a wrapper for __has_locked_children(), calling\nthe latter under read_seqlock_excl(\u0026mount_lock).",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 620c266f394932e5decc4b34683a75dfc59dc2f4, \u003c 6482c3dccbfb8d20e2856ce67c75856859930b3f",
          "\u003e= 620c266f394932e5decc4b34683a75dfc59dc2f4, \u003c 287c7d34eedd37af1272dfb3b6e8656f4f026424",
          "\u003e= 620c266f394932e5decc4b34683a75dfc59dc2f4, \u003c 1f282cdc1d219c4a557f7009e81bc792820d9d9a"
        ],
        "fixed_in": [
          "6482c3dccbfb8d20e2856ce67c75856859930b3f",
          "287c7d34eedd37af1272dfb3b6e8656f4f026424",
          "1f282cdc1d219c4a557f7009e81bc792820d9d9a"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.46",
          "6.15.3",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 6482c3dccbfb8d20e2856ce67c75856859930b3f or 287c7d34eedd37af1272dfb3b6e8656f4f026424 or 1f282cdc1d219c4a557f7009e81bc792820d9d9a or later.",
      "Upgrade Linux to 0 or 6.12.46 or 6.15.3 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
