CVE-2026-53399
nfsd: release layout stid on setlease failure
Reported by linux · Published July 19, 2026
In the Linux kernel, the following vulnerability has been resolved: nfsd: release layout stid on setlease failure nfs4_alloc_stid() publishes the new stid into cl->cl_stateids via idr_alloc_cyclic() under cl_lock before returning to nfsd4_alloc_layout_stateid(). When nfsd4_layout_setlease() then fails, the error path frees the layout stateid directly with kmem_cache_free() without ever calling idr_remove(), leaving the IDR slot pointing at freed slab memory. Any subsequent IDR walker (states_show, client teardown) dereferences the dangling pointer. The correct teardown for an IDR-published stid is nfs4_put_stid(), which removes the IDR slot under cl_lock, dispatches sc_free (nfsd4_free_layout_stateid) to release ls->ls_file via nfsd4_close_layout(), and drops the nfs4_file reference in its tail. A second issue blocks that switch: nfsd4_free_layout_stateid() unconditionally inspects ls->ls_fence_work via delayed_work_pending() under ls_lock, but INIT_DELAYED_WORK(&ls->ls_fence_work, ...) currently runs only after the setlease call. On the setlease-failure path the destructor would touch an uninitialized delayed_work. nfsd4_alloc_layout_stateid() nfs4_alloc_stid() /* idr_alloc_cyclic under cl_lock */ nfsd4_layout_setlease() /* fails */ nfs4_put_stid() nfsd4_free_layout_stateid() delayed_work_pending(&ls->ls_fence_work) /* needs INIT */ nfsd4_close_layout() /* nfsd_file_put(ls->ls_file) */ put_nfs4_file() Fix by hoisting the ls_fenced / ls_fence_delay / INIT_DELAYED_WORK initialization above the nfsd4_layout_setlease() call, and replace the manual nfsd_file_put + put_nfs4_file + kmem_cache_free cleanup with a single nfs4_put_stid(stp).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-modules-extra | errata.rockylinux.org | 6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8 |
| python3-perf-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8 |
| perf | errata.rockylinux.org | 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8 |
| kernel-tools-debuginfo | errata.rockylinux.org | 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8 |
| kernel-doc | errata.rockylinux.org | 6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9 |
| linux-qemu-6.12 | Chainguard | 6.12.101-r0 |
| kernel-debug-modules | errata.rockylinux.org | 6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8 |
| kernel-debug | errata.rockylinux.org | 6.12.0-211.50.1.el10, 4.18.0-553.159.1.el8 |
| kernel-tools-libs-devel | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-64k-debug-modules-extra | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-rt-64k-debug | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
47 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c5c707f96fc9a6e5a57ca5baac892673270abe3d, c5c707f96fc9a6e5a57ca5baac892673270abe3d, c5c707f96fc9a6e5a57ca5baac892673270abe3d |
| Linux | Linux | 4.0, 0, 5.10.261 |
| chainguard | linux-qemu-6.12 | 0 |
| chainguard | linux-gcp-6.18 | 0 |
| chainguard | linux-azure-6.12 | 0 |
| chainguard | linux-vmware-6.12 | 0 |
| Linux | Linux | 7.2, *, * |
| linux | linux_kernel | 4.0, 4.0, 4.0 |
| chainguard | linux-vmware-6.18 | 0 |
| chainguard | linux-gcp-6.12 | 0 |
| chainguard | linux-aws-6.18 | 0 |
| chainguard | linux-qemu-6.18 | 0 |
Timeline
- Jul 19, 2026 Coalition ESS Score
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Security Advisory (35 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (38 in total, the first dated here)
- Sep 15, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-53399
vulnetix vdb fixes CVE-2026-53399
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53399/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart