{"id":"CVE-2026-74316","state":"PUBLISHED","title":"NFSD: Handle layout stid in nfsd4_drop_revoked_stid()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Handle layout stid in nfsd4_drop_revoked_stid()\n\nnfsd4_drop_revoked_stid() has no SC_TYPE_LAYOUT case, so when a\nclient sends FREE_STATEID for an admin-revoked layout stid, the\ndefault branch releases cl_lock and returns without unhashing or\nreleasing the stid.  The stid remains in the IDR and on the\nper-client list until the client is destroyed.\n\nRemove the layout stid from the per-client list and call\nnfs4_put_stid() to drop the creation reference.  When the\nrefcount reaches zero, nfsd4_free_layout_stateid() handles the\nremaining cleanup: cancelling the fence worker, removing from\nthe per-file list, and freeing the slab object.","publishedAt":"2026-08-15T05:58:14.165Z","updatedAt":"2026-10-16T18:55:32.624Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"7ed62f7040ee182cf7dea5798f9e114235b31dae","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"da6f86ff4f2dd490bea52419a49e19680efd5847","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"8024028ef91616cf91cc669f2446a0406bc0ba19","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"86b9898920a6d02b4149f4fef9efd77b8aa3b9ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4state.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4state.c"]}],"references":["https://git.kernel.org/stable/c/7ed62f7040ee182cf7dea5798f9e114235b31dae","https://git.kernel.org/stable/c/da6f86ff4f2dd490bea52419a49e19680efd5847","https://git.kernel.org/stable/c/8024028ef91616cf91cc669f2446a0406bc0ba19","https://git.kernel.org/stable/c/86b9898920a6d02b4149f4fef9efd77b8aa3b9ca"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74316.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74316","state":"PUBLISHED","datePublished":"2026-08-15T05:58:14.165Z","dateUpdated":"2026-10-16T18:55:32.624Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.883Z"},"containers":{"cna":{"title":"NFSD: Handle layout stid in nfsd4_drop_revoked_stid()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Handle layout stid in nfsd4_drop_revoked_stid()\n\nnfsd4_drop_revoked_stid() has no SC_TYPE_LAYOUT case, so when a\nclient sends FREE_STATEID for an admin-revoked layout stid, the\ndefault branch releases cl_lock and returns without unhashing or\nreleasing the stid.  The stid remains in the IDR and on the\nper-client list until the client is destroyed.\n\nRemove the layout stid from the per-client list and call\nnfs4_put_stid() to drop the creation reference.  When the\nrefcount reaches zero, nfsd4_free_layout_stateid() handles the\nremaining cleanup: cancelling the fence worker, removing from\nthe per-file list, and freeing the slab object."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"7ed62f7040ee182cf7dea5798f9e114235b31dae","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"da6f86ff4f2dd490bea52419a49e19680efd5847","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"8024028ef91616cf91cc669f2446a0406bc0ba19","versionType":"git"},{"version":"1e33e1414bec54a4feafa9e67e2617031be0afe2","status":"affected","lessThan":"86b9898920a6d02b4149f4fef9efd77b8aa3b9ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4state.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4state.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ed62f7040ee182cf7dea5798f9e114235b31dae"},{"url":"https://git.kernel.org/stable/c/da6f86ff4f2dd490bea52419a49e19680efd5847"},{"url":"https://git.kernel.org/stable/c/8024028ef91616cf91cc669f2446a0406bc0ba19"},{"url":"https://git.kernel.org/stable/c/86b9898920a6d02b4149f4fef9efd77b8aa3b9ca"}],"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 flaw is reached through nfsd's NFSv4 OP_FREE_STATEID handler, processing attacker-controlled RPC compounds over the network on TCP port 2049 via nfsd_dispatch to nfsd4_proc_compound to nfsd4_free_stateid.\nAC:L - Once a client holds admin-revoked pNFS layout stateids, sending FREE_STATEID reliably triggers the leak every time; the attacker controls layout acquisition and the freeing RPC on both sides of the interaction.\nPR:N - Exploitation requires only remote NFSv4 client access to a pNFS-enabled export (EXCHANGE_ID/CREATE_SESSION plus FREE_STATEID), not local shell access or elevated privileges on the Linux host.\nUI:N - No administrator or end-user action on the server is required beyond normal NFS service exposure; the leak is triggered entirely by malicious NFS protocol traffic from a network client.\nS:U - Impact is confined to kernel memory and nfsd state management within the same kernel security boundary; there is no VM escape, container breakout, or cross-authority boundary crossing.\nC:N - The bug retains unreleased layout stateid structures in the IDR and per-client lists without corrupting memory or exposing kernel data; there is no out-of-bounds read or information disclosure primitive.\nI:N - No data modification or memory corruption occurs; the stateid is simply not freed when it should be, leaving stale entries without enabling arbitrary writes or code execution.\nA:H - Each triggered FREE_STATEID permanently leaks a layout stateid slab object and IDR slot until client teardown; a remote NFS client can repeat this for every admin-revoked pNFS layout, causing unbounded kernel memory consumption and nfsd DoS."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:45:50.196Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-74316","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T18:53:13.510703Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T18:55:32.624Z"}}]}}}