Skip to content
Heist/ feed
Back to feed
UnratedFix available

nfsd: avoid ref leak in nfsd_open_local_fh()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: nfsd: avoid ref leak in nfsd_open_local_fh() If two calls to nfsd_open_local_fh() race and both successfully call nfsd_file_acquire_local(), they will both get an extra reference to the net to accompany the file reference stored in *pnf. One of them will fail to store (using xchg()) the file reference in *pnf and will drop that reference but WON'T drop the accompanying reference to the net. This leak means that when the nfs server is shut down it will hang in nfsd_shutdown_net() waiting for &nn->nfsd_net_free_done. This patch adds the missing nfsd_net_put().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.15.10, 6.16.1
CVEs
CVE-2025-38567
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 11:56 UTC · Revision 1

Source evidence

nfsd: avoid ref leak in nfsd_open_local_fh()

core-osv · Original source

Published 19 Aug 2025, 17:02 UTC

In the Linux kernel, the following vulnerability has been resolved: nfsd: avoid ref leak in nfsd_open_local_fh() If two calls to nfsd_open_local_fh() race and both successfully call nfsd_file_acquire_local(), they will both get an extra reference to the net to accompany the file reference stored in *pnf. One of them will fail to store (using xchg()) the file reference in *pnf and will drop that reference but WON'T drop the accompanying reference to the net. This leak means that when the nfs server is shut down it will hang in nfsd_shutdown_net() waiting for &nn->nfsd_net_free_done. This patch adds the missing nfsd_net_put().

osv:CVE-2025-38567

Kernel

Fixed versions: 6.15.10, 6.16.1

Complete source record
{
  "id": "bd8393346e73a1718d148f3a527f1a2994672ba6995d494ff282d225041ca66e",
  "url": "https://osv.dev/vulnerability/CVE-2025-38567",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nfsd: avoid ref leak in nfsd_open_local_fh()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: nfsd: avoid ref leak in nfsd_open_local_fh() If two calls to nfsd_open_local_fh() race and both successfully call nfsd_file_acquire_local(), they will both get an extra reference to the net to accompany the file reference stored in *pnf. One of them will fail to store (using xchg()) the file reference in *pnf and will drop that reference but WON'T drop the accompanying reference to the net. This leak means that when the nfs server is shut down it will hang in nfsd_shutdown_net() waiting for &nn->nfsd_net_free_done. This patch adds the missing nfsd_net_put().",
    "evidence": "osv:CVE-2025-38567",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.15.10",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-38567",
      "aliases": [
        "CVE-2025-38567"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "986a21ace186433e0397a59491646edad8c8d636"
                },
                {
                  "fixed": "fcb0a417fddb605530c4837e0996620f8ed38023"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e6f7e1487ab528a6c653bd0d42812ff2942846cd"
                },
                {
                  "fixed": "c4bf8f26c51e51bbb840935659a7b3b65a802c07"
                },
                {
                  "fixed": "e5a73150776f18547ee685c9f6bfafe549714899"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.15.3"
                },
                {
                  "fixed": "6.15.10"
                }
              ]
            }
          ],
          "versions": [
            "v6.15.9",
            "v6.15.8",
            "v6.15.7",
            "v6.15.6",
            "v6.15.5",
            "v6.15.4",
            "v6.15.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38567.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.15.10"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.16.0"
                },
                {
                  "fixed": "6.16.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38567.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.094368854Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07",
        "https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899",
        "https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38567.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38567",
        "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-38567.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38567",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 502203,
  "published_at": "2025-08-19T17:02:48.306+00:00"
}