VDB

CVE-2026-53399

CVE-2026-53399 PUBLISHED CVSS 9.8 CRITICAL

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.

PackageEcosystemFixed in
kernel-debug-modules-extraerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8
python3-perf-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8
perferrata.rockylinux.org5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8
kernel-tools-debuginfoerrata.rockylinux.org5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8
kernel-docerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9
linux-qemu-6.12Chainguard6.12.101-r0
kernel-debug-moduleserrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9, 4.18.0-553.159.1.el8
kernel-debugerrata.rockylinux.org6.12.0-211.50.1.el10, 4.18.0-553.159.1.el8
kernel-tools-libs-develerrata.rockylinux.org5.14.0-687.44.1.el9
kernel-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-64k-debug-modules-extraerrata.rockylinux.org5.14.0-687.44.1.el9
kernel-rt-64k-debugerrata.rockylinux.org6.12.0-211.50.1.el10

47 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxc5c707f96fc9a6e5a57ca5baac892673270abe3d, c5c707f96fc9a6e5a57ca5baac892673270abe3d, c5c707f96fc9a6e5a57ca5baac892673270abe3d
LinuxLinux4.0, 0, 5.10.261
chainguardlinux-qemu-6.120
chainguardlinux-gcp-6.180
chainguardlinux-azure-6.120
chainguardlinux-vmware-6.120
LinuxLinux7.2, *, *
linuxlinux_kernel4.0, 4.0, 4.0
chainguardlinux-vmware-6.180
chainguardlinux-gcp-6.120
chainguardlinux-aws-6.180
chainguardlinux-qemu-6.180

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›