{"id":"CVE-2025-38567","state":"PUBLISHED","title":"nfsd: avoid ref leak in nfsd_open_local_fh()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: avoid ref leak in nfsd_open_local_fh()\n\nIf two calls to nfsd_open_local_fh() race and both successfully call\nnfsd_file_acquire_local(), they will both get an extra reference to the\nnet to accompany the file reference stored in *pnf.\n\nOne of them will fail to store (using xchg()) the file reference in\n*pnf and will drop that reference but WON'T drop the accompanying\nreference to the net.  This leak means that when the nfs server is shut\ndown it will hang in nfsd_shutdown_net() waiting for\n&nn->nfsd_net_free_done.\n\nThis patch adds the missing nfsd_net_put().","publishedAt":"2025-08-19T17:02:48.306Z","updatedAt":"2026-05-23T16:00:02.280Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"986a21ace186433e0397a59491646edad8c8d636","status":"affected","lessThan":"fcb0a417fddb605530c4837e0996620f8ed38023","versionType":"git"},{"version":"e6f7e1487ab528a6c653bd0d42812ff2942846cd","status":"affected","lessThan":"c4bf8f26c51e51bbb840935659a7b3b65a802c07","versionType":"git"},{"version":"e6f7e1487ab528a6c653bd0d42812ff2942846cd","status":"affected","lessThan":"e5a73150776f18547ee685c9f6bfafe549714899","versionType":"git"},{"version":"6.15.3","status":"affected","lessThan":"6.15.10","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/localio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/localio.c"]}],"references":["https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023","https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07","https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38567.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38567","state":"PUBLISHED","datePublished":"2025-08-19T17:02:48.306Z","dateUpdated":"2026-05-23T16:00:02.280Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.025Z"},"containers":{"cna":{"title":"nfsd: avoid ref leak in nfsd_open_local_fh()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: avoid ref leak in nfsd_open_local_fh()\n\nIf two calls to nfsd_open_local_fh() race and both successfully call\nnfsd_file_acquire_local(), they will both get an extra reference to the\nnet to accompany the file reference stored in *pnf.\n\nOne of them will fail to store (using xchg()) the file reference in\n*pnf and will drop that reference but WON'T drop the accompanying\nreference to the net.  This leak means that when the nfs server is shut\ndown it will hang in nfsd_shutdown_net() waiting for\n&nn->nfsd_net_free_done.\n\nThis patch adds the missing nfsd_net_put()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"986a21ace186433e0397a59491646edad8c8d636","status":"affected","lessThan":"fcb0a417fddb605530c4837e0996620f8ed38023","versionType":"git"},{"version":"e6f7e1487ab528a6c653bd0d42812ff2942846cd","status":"affected","lessThan":"c4bf8f26c51e51bbb840935659a7b3b65a802c07","versionType":"git"},{"version":"e6f7e1487ab528a6c653bd0d42812ff2942846cd","status":"affected","lessThan":"e5a73150776f18547ee685c9f6bfafe549714899","versionType":"git"},{"version":"6.15.3","status":"affected","lessThan":"6.15.10","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/localio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/localio.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023"},{"url":"https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07"},{"url":"https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T16:00:02.280Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15.3","versionEndExcluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.16.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}