afs: Fix afs_edit_dir_remove() to get, not find, block 0
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 |
|
|
6.18.427.1.67.2In the Linux kernel, the following vulnerability has been resolved:
afs: Fix afs_edit_dir_remove() to get, not find, block 0
Fix afs_edit_dir_remove() to use afs_dir_get_block() to get block 0 rather than afs_dir_find_block() as the latter caches the found block in the afs_dir_iter and may[*] switch out the page it's on if another afs_dir_find_block() is done. This parallels what afs_edit_dir_add() does.
[*] There's more than one block per page.
From the CVE record · Linux
The Linux kernel’s AFS directory removal code can cache block 0 in an iterator that may switch pages during a later block lookup. The input does not specify an attacker outcome or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with AFS should check their kernel versions; affected versions are not specified.