NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fe1cf9469d7bcb6af27e42eb555a41b0135bce4a · < ca2e7fdad7c683b64821c94a58b9b68733214dad| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid
Fixes a crash when layout is null during this call stack:
write_inode -> nfs4_write_inode -> pnfs_layoutcommit_inode
pnfs_set_layoutcommit relies on the lseg refcount to keep the layout around. Need to clear NFS_INO_LAYOUTCOMMIT otherwise we might attempt to reference a null layout.
From the CVE record · Linux
The Linux kernel can crash during NFSv4/pNFS layout commit if a layout is null and NFS_INO_LAYOUTCOMMIT remains set. The input does not specify how an attacker could trigger the crash, whether access is local or over the network, or whether authentication or user interaction is required.
Engineers running Linux kernels with NFSv4/pNFS should check their versions; affected versions are not specified.