{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40324","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T07:20:57.186Z","datePublished":"2025-12-08T00:46:51.912Z","dateUpdated":"2026-08-05T12:09:37.288Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T12:09:37.288Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Fix crash in nfsd4_read_release()\n\nWhen tracing is enabled, the trace_nfsd_read_done trace point\ncrashes during the pynfs read.testNoFh test."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The bug is in the in-kernel NFS server's NFSv4 COMPOUND processing, triggered entirely by attacker-supplied RPC data arriving on TCP port 2049. No local access is needed — a crafted COMPOUND from any host that can reach nfsd is sufficient.\nAC:L - Within the vulnerable configuration (nfsd read tracepoints enabled, the configuration CVSS directs us to score), a single well-formed `COMPOUND{READ}` with no preceding PUTFH triggers the NULL dereference deterministically — no race, no memory-layout dependency, no timing window, and the attacker fully controls the request.\nPR:N - The crash occurs before any authorization gate: no filehandle, no stateid, no session/clientid, and no export access check is reached, and AUTH_SYS verifies no credentials. The NFSv4.1 `nfserr_op_not_in_session` path (nfs4proc.c:3087-3093) fires before session establishment, making this a pre-authentication code path.\nUI:N - The attacker sends the malformed COMPOUND directly to the NFS server; no administrator or client-side action is required at exploitation time.\nS:U - The NULL dereference oops occurs in the nfsd kthread within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:N - `nfsd4_decode_read()` memsets the whole `struct nfsd4_read`, so `rd_rqstp`/`rd_fhp` are guaranteed NULL rather than stale pointers — the fault occurs on the first access and no data is read into the trace buffer or otherwise disclosed.\nI:N - The tracepoint's `TP_fast_assign` performs only loads from the NULL pointers; there is no out-of-bounds or use-after-free write and no control-flow hijack primitive.\nA:H - A NULL pointer dereference oops kills the nfsd kernel thread mid-compound (leaking the unreleased current_fh/save_fh references), and the request can be replayed to exhaust every nfsd thread; with panic_on_oops set it is an immediate kernel panic."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4proc.c"],"versions":[{"version":"65a33135e91e6dd661ecdf1194b9d90c49ae3570","lessThan":"930cb4fe3ab4061be31f20ee30bb72a66f7bb6d1","status":"affected","versionType":"git"},{"version":"b11d8162c24af4a351d21e2c804d25ca493305e3","lessThan":"375fdd8993cecc48afa359728a6e70b280dde1c8","status":"affected","versionType":"git"},{"version":"b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3","lessThan":"2ac46606b2cc49e78d8e3d8f2685e79e9ba73020","status":"affected","versionType":"git"},{"version":"15a8b55dbb1ba154d82627547c5761cac884d810","lessThan":"03524ccff698d4a77d096ed529073d91f5edee5d","status":"affected","versionType":"git"},{"version":"15a8b55dbb1ba154d82627547c5761cac884d810","lessThan":"a4948875ed0599c037dc438c11891c9012721b1d","status":"affected","versionType":"git"},{"version":"15a8b55dbb1ba154d82627547c5761cac884d810","lessThan":"8f244b773c63fa480c9a3bd1ae04f5272f285e89","status":"affected","versionType":"git"},{"version":"15a8b55dbb1ba154d82627547c5761cac884d810","lessThan":"abb1f08a2121dd270193746e43b2a9373db9ad84","status":"affected","versionType":"git"},{"version":"3d0dcada384af22dec764c8374a2997870ec86ae","status":"affected","versionType":"git"},{"version":"5.10.220","lessThan":"5.10.247","status":"affected","versionType":"semver"},{"version":"5.15.154","lessThan":"5.15.197","status":"affected","versionType":"semver"},{"version":"6.1.24","lessThan":"6.1.159","status":"affected","versionType":"semver"},{"version":"6.2.11","lessThan":"6.3","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4proc.c"],"versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","status":"unaffected","versionType":"semver"},{"version":"5.10.247","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.197","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.159","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.117","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.58","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.8","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.220","versionEndExcluding":"5.10.247"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.154","versionEndExcluding":"5.15.197"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.24","versionEndExcluding":"6.1.159"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.6.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.58"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.17.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2.11"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/930cb4fe3ab4061be31f20ee30bb72a66f7bb6d1"},{"url":"https://git.kernel.org/stable/c/375fdd8993cecc48afa359728a6e70b280dde1c8"},{"url":"https://git.kernel.org/stable/c/2ac46606b2cc49e78d8e3d8f2685e79e9ba73020"},{"url":"https://git.kernel.org/stable/c/03524ccff698d4a77d096ed529073d91f5edee5d"},{"url":"https://git.kernel.org/stable/c/a4948875ed0599c037dc438c11891c9012721b1d"},{"url":"https://git.kernel.org/stable/c/8f244b773c63fa480c9a3bd1ae04f5272f285e89"},{"url":"https://git.kernel.org/stable/c/abb1f08a2121dd270193746e43b2a9373db9ad84"}],"title":"NFSD: Fix crash in nfsd4_read_release()","x_generator":{"engine":"bippy-1.2.0"}}}}