NFSD: Handle layout stid in nfsd4_drop_revoked_stid()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Handle layout stid in nfsd4_drop_revoked_stid()
nfsd4_drop_revoked_stid() has no SC_TYPE_LAYOUT case, so when a client sends FREE_STATEID for an admin-revoked layout stid, the default branch releases cl_lock and returns without unhashing or releasing the stid. The stid remains in the IDR and on the per-client list until the client is destroyed.
Remove the layout stid from the per-client list and call nfs4_put_stid() to drop the creation reference. When the refcount reaches zero, nfsd4_free_layout_stateid() handles the remaining cleanup: cancelling the fence worker, removing from the per-file list, and freeing the slab object.
From the CVE record · Linux
The Linux kernel’s NFSD does not clean up an admin-revoked layout state ID when a client sends FREE_STATEID for it. The state ID remains allocated and linked to the client until the client is destroyed; the input does not specify whether authentication is required or whether user interaction is involved.
Operators running Linux kernels with NFSD should check their versions against the vendor advisory; affected versions are not specified.