xfs: don't walk off the end of a null sc->sa.agi_bp in AGI repair
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 walk off the end of a null sc->sa.agi_bp in AGI repair
LOLLM noticed a longstanding bug where xrep_iunlink_walk_ondisk_bucket tries to walk ragi->sc->sa.agi_bp to rebuild the unlinked inode lists. Unfortunately, it's possible for agi_bp to be null if the buffer verifier fails, so we have to use ragi->agi_bp (which skips verifier checks) instead.
From the CVE record · Linux
XFS AGI repair can attempt to walk a null buffer pointer when a buffer verifier fails while rebuilding unlinked inode lists. The input does not specify whether this can be triggered by an attacker or what access or user interaction would be required.
Engineers running Linux kernels with XFS should check whether their versions are affected; no affected versions are specified.