{"id":"CVE-2022-49362","state":"PUBLISHED","title":"NFSD: Fix potential use-after-free in nfsd_file_put()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Fix potential use-after-free in nfsd_file_put()\n\nnfsd_file_put_noref() can free @nf, so don't dereference @nf\nimmediately upon return from nfsd_file_put_noref().","publishedAt":"2025-02-26T02:11:09.344Z","updatedAt":"2026-08-05T08:54:54.470Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9862064ca81f9b9da8ebe26c86cf2b10c293ba1a","status":"affected","lessThan":"ada1757b259f353cade47037ee0a0249b4cddad3","versionType":"git"},{"version":"a98e5b3d958ac697aafb3d077eb2cca4a731b7ee","status":"affected","lessThan":"261eabe19cb28e4a8587a4442d257b543d7c2d57","versionType":"git"},{"version":"999397926ab3f78c7d1235cc4ca6e3c89d2769bf","status":"affected","lessThan":"333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57","versionType":"git"},{"version":"999397926ab3f78c7d1235cc4ca6e3c89d2769bf","status":"affected","lessThan":"b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/filecache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/filecache.c"]}],"references":["https://git.kernel.org/stable/c/ada1757b259f353cade47037ee0a0249b4cddad3","https://git.kernel.org/stable/c/261eabe19cb28e4a8587a4442d257b543d7c2d57","https://git.kernel.org/stable/c/333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57","https://git.kernel.org/stable/c/b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49362.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49362","state":"PUBLISHED","datePublished":"2025-02-26T02:11:09.344Z","dateUpdated":"2026-08-05T08:54:54.470Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.547Z"},"containers":{"cna":{"title":"NFSD: Fix potential use-after-free in nfsd_file_put()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Fix potential use-after-free in nfsd_file_put()\n\nnfsd_file_put_noref() can free @nf, so don't dereference @nf\nimmediately upon return from nfsd_file_put_noref()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9862064ca81f9b9da8ebe26c86cf2b10c293ba1a","status":"affected","lessThan":"ada1757b259f353cade47037ee0a0249b4cddad3","versionType":"git"},{"version":"a98e5b3d958ac697aafb3d077eb2cca4a731b7ee","status":"affected","lessThan":"261eabe19cb28e4a8587a4442d257b543d7c2d57","versionType":"git"},{"version":"999397926ab3f78c7d1235cc4ca6e3c89d2769bf","status":"affected","lessThan":"333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57","versionType":"git"},{"version":"999397926ab3f78c7d1235cc4ca6e3c89d2769bf","status":"affected","lessThan":"b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/filecache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/filecache.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ada1757b259f353cade47037ee0a0249b4cddad3"},{"url":"https://git.kernel.org/stable/c/261eabe19cb28e4a8587a4442d257b543d7c2d57"},{"url":"https://git.kernel.org/stable/c/333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57"},{"url":"https://git.kernel.org/stable/c/b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable nfsd_file_put() path runs in the in-kernel NFS server (fs/nfsd/filecache.c) on READ/WRITE/COMMIT and related ops, reached via RPC to nfsd over the network (TCP/UDP 2049); no local access is required.\nAC:L - The UAF is a race between nfsd_file_put() observing NFSD_FILE_HASHED and a concurrent unhash (e.g. REMOVE → fsnotify → nfsd_file_close_inode) that drops the hash ref so put_noref frees @nf; a remote client controls both sides via concurrent NFS requests on multiple nfsd threads.\nPR:N - Typical nfsd deployments allow AUTH_SYS/AUTH_NULL with IP-based exports, so a remote peer that can reach the export self-asserts credentials with no cryptographic authentication and can exercise the filecache put path.\nUI:N - Exploitation requires only attacker-sent NFS protocol operations; no action by a victim user or administrator on the server is needed.\nS:U - The use-after-free corrupts kernel memory within the host nfsd authority and does not cross a VM, IOMMU, or other separate security boundary.\nC:H - This is a use-after-free of a slab-allocated nfsd_file object; UAF enables reuse/spray of the freed object and can be leveraged for arbitrary kernel memory disclosure.\nI:H - The same nfsd_file use-after-free enables heap spraying and corruption of the reallocated object, yielding write/control-flow hijack primitives in the NFS server kernel.\nA:H - Use-after-free of nfsd_file can cause kernel oops/panic or memory corruption crashes in nfsd threads, fully disrupting availability of the NFS server host."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:54:54.470Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.18.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49362","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-27T18:16:34.174132Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-27T18:22:33.669Z"}}]}}}