pNFS: Fix use-after-free in pnfs_update_layout()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.260, 5.5, 5.15.211, 6.1.177, 6.6.144, and 3 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
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).
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 06f58dbc49a23c99e5c0f246879ed16667f7bf8f · fixed in 4ad8b9a85dbf57ca532ee9e65ad7e6498bfbbf98; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 1f24b8302c77dcaf79c64c073877a3b9f4dd25d2; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 9c0fb5c09ae5bd68dc0038692af8127029cb0385; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 7e37e9b3e82ade881e1798e2f4fcc54aff7793c1; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 2883ddd7542b4437a2ab4908fe2773f690e20889; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 200e7637f4d6a1342987045eea72641524f909dc; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 9645aaf689aff57427ece3b9fa47d5b5399417f4; From 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 · fixed in 13e198a90ca4050f4bee8a3f23680389a6563ccc; From 5.10.9 · fixed in 5.10.260; From 5.4.91 · fixed in 5.5
- Linux Linux
5.11
- KernelLinux
fixed in 5.10.260; From 5.11.0 · fixed in 5.15.211; fixed in 6.1.177; From 5.16.0 · fixed in 6.6.144; From 6.2.0 · fixed in 6.12.95; From 6.7.0 · fixed in 6.18.38; From 6.13.0 · fixed in 7.1.3
References 8
git.kernel.org
- stable/c/4ad8b9a85dbf57ca532ee9e65ad7e6498bfbbf98
- stable/c/1f24b8302c77dcaf79c64c073877a3b9f4dd25d2
- stable/c/9c0fb5c09ae5bd68dc0038692af8127029cb0385
- stable/c/7e37e9b3e82ade881e1798e2f4fcc54aff7793c1
- stable/c/2883ddd7542b4437a2ab4908fe2773f690e20889
- stable/c/200e7637f4d6a1342987045eea72641524f909dc
- stable/c/9645aaf689aff57427ece3b9fa47d5b5399417f4
- stable/c/13e198a90ca4050f4bee8a3f23680389a6563ccc