Description
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).
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
06f58dbc49a23c99e5c0f246879ed16667f7bf8f to < 4ad8b9a85dbf57ca532ee9e65ad7e6498bfbbf98affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 1f24b8302c77dcaf79c64c073877a3b9f4dd25d2affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 9c0fb5c09ae5bd68dc0038692af8127029cb0385affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 7e37e9b3e82ade881e1798e2f4fcc54aff7793c1affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 2883ddd7542b4437a2ab4908fe2773f690e20889affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 200e7637f4d6a1342987045eea72641524f909dcaffected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 9645aaf689aff57427ece3b9fa47d5b5399417f4affected2c8d5fc37fe2384a9bdb6965443ab9224d46f704 to < 13e198a90ca4050f4bee8a3f23680389a6563cccaffectedaa2399f55eff4ec78330bb6fe55f9df53e5cae0caffected5.10.9 to < 5.10.260affected5.4.91 to < 5.5affected
Linux Linux
Default version status: affected
5.11affected0 to < 5.11unaffected5.10.260 to ≤ 5.10.*unaffected5.15.211 to ≤ 5.15.*unaffected6.1.177 to ≤ 6.1.*unaffected6.6.144 to ≤ 6.6.*unaffected6.12.95 to ≤ 6.12.*unaffected6.18.38 to ≤ 6.18.*unaffected7.1.3 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/4ad8b9a85dbf57ca532ee9e65ad7e6498bfbbf98 ↗
- https://git.kernel.org/stable/c/1f24b8302c77dcaf79c64c073877a3b9f4dd25d2 ↗
- https://git.kernel.org/stable/c/9c0fb5c09ae5bd68dc0038692af8127029cb0385 ↗
- https://git.kernel.org/stable/c/7e37e9b3e82ade881e1798e2f4fcc54aff7793c1 ↗
- https://git.kernel.org/stable/c/2883ddd7542b4437a2ab4908fe2773f690e20889 ↗
- https://git.kernel.org/stable/c/200e7637f4d6a1342987045eea72641524f909dc ↗
- https://git.kernel.org/stable/c/9645aaf689aff57427ece3b9fa47d5b5399417f4 ↗
- https://git.kernel.org/stable/c/13e198a90ca4050f4bee8a3f23680389a6563ccc ↗