afs: Fix double-unmap of directory block
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.537.2.77.3In the Linux kernel, the following vulnerability has been resolved:
afs: Fix double-unmap of directory block
Fix afs_edit_dir_remove() to use a cleanup function to unmap the block pointed to by afs_dir_iter::block if it's left pointing to something rather than manually kunmapping the blocks. Manually kunmapping without clearing iter.blocks can result in a double-kunmap if afs_dir_find_block() is called twice in a row (which would be the case if the block being modified is not first in the hash chain).
From the CVE record · Linux
The Linux kernel's AFS directory removal code can unmap a directory block twice when the block being modified is not first in the hash chain. The input does not specify how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with AFS support should check their versions; affected versions are not specified.