xfs: don't double-lock when deleting a self-referential directory
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't double-lock when deleting a self-referential directory
LOLLM notices that the dirtree scrubber can detect a directory that refers to itself. In this case, it's not correct for the directory tree repair code to try to iolock/ilock both sc->ip and dp, because they're the same inode. Fix this by detecting that corner case and handling it appropriately.
From the CVE record · Linux
The Linux kernel's XFS directory tree repair can try to lock the same inode twice when the scrubber detects a directory that refers to itself. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with XFS should check their deployments; affected versions are not specified.