pNFS: Fix use-after-free in pnfs_update_layout()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · < 200e7637f4d6a1342987045eea72641524f909dc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
pNFS: Fix use-after-free in pnfs_update_layout()
When hitting the NFS_LAYOUT_RETURN branch in pnfs_update_layout(), the code calls pnfs_prepare_to_retry_layoutget(lo). If it succeeds, pnfs_put_layout_hdr(lo) is called before trace_pnfs_update_layout(), which still references 'lo'. This results in a use-after-free when the tracepoint accesses lo's fields.
Fix this by moving the tracepoint call before pnfs_put_layout_hdr(lo).
From the CVE record · Linux
The Linux kernel's pNFS layout update code can access a freed layout header through a tracepoint. This occurs when the NFS_LAYOUT_RETURN branch is reached and layout-get retry preparation succeeds. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the affected pNFS code should check their versions; affected versions are not specified.