Skip to content
Heist/ feed
Back to feed
HighFix available

fs/fhandle.c: fix a race in call of has_locked_children()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: fs/fhandle.c: fix a race in call of has_locked_children() may_decode_fh() is calling has_locked_children() while holding no locks. That's an oopsable race... The rest of the callers are safe since they are holding namespace_sem and are guaranteed a positive refcount on the mount in question. Rename the current has_locked_children() to __has_locked_children(), make it static and switch the fs/namespace.c users to it. Make has_locked_children() a wrapper for __has_locked_children(), calling the latter under read_seqlock_excl(&mount_lock).

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.46, 6.15.3
CVEs
CVE-2025-38306
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:40 UTC · Revision 1

Source evidence

fs/fhandle.c: fix a race in call of has_locked_children()

core-osv · Original source

Published 10 Jul 2025, 07:42 UTC

In the Linux kernel, the following vulnerability has been resolved: fs/fhandle.c: fix a race in call of has_locked_children() may_decode_fh() is calling has_locked_children() while holding no locks. That's an oopsable race... The rest of the callers are safe since they are holding namespace_sem and are guaranteed a positive refcount on the mount in question. Rename the current has_locked_children() to __has_locked_children(), make it static and switch the fs/namespace.c users to it. Make has_locked_children() a wrapper for __has_locked_children(), calling the latter under read_seqlock_excl(&mount_lock).

osv:CVE-2025-38306

Kernel

Fixed versions: 6.12.46, 6.15.3

Complete source record
{
  "id": "0e47f5b8db3b4c6e316f05bfeac9654f5d2e5f8842be8660b82d2aa4ad00efac",
  "url": "https://osv.dev/vulnerability/CVE-2025-38306",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "fs/fhandle.c: fix a race in call of has_locked_children()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: fs/fhandle.c: fix a race in call of has_locked_children() may_decode_fh() is calling has_locked_children() while holding no locks. That's an oopsable race... The rest of the callers are safe since they are holding namespace_sem and are guaranteed a positive refcount on the mount in question. Rename the current has_locked_children() to __has_locked_children(), make it static and switch the fs/namespace.c users to it. Make has_locked_children() a wrapper for __has_locked_children(), calling the latter under read_seqlock_excl(&mount_lock).",
    "evidence": "osv:CVE-2025-38306",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.46",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38306",
      "aliases": [
        "CVE-2025-38306"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "620c266f394932e5decc4b34683a75dfc59dc2f4"
                },
                {
                  "fixed": "6482c3dccbfb8d20e2856ce67c75856859930b3f"
                },
                {
                  "fixed": "287c7d34eedd37af1272dfb3b6e8656f4f026424"
                },
                {
                  "fixed": "1f282cdc1d219c4a557f7009e81bc792820d9d9a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38306.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.12.46"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38306.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.990610664Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a",
        "https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424",
        "https://git.kernel.org/stable/c/6482c3dccbfb8d20e2856ce67c75856859930b3f",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38306.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38306",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38306.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38306",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491259,
  "published_at": "2025-07-10T07:42:16.806+00:00"
}