xfs: don't swallow dquot recovery verification errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9c235dfc3d3f901fe22acb20f2ab37ff39f2ce02 · < e2b4a856085e9bd939bde2dee0d08b1d41babde9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't swallow dquot recovery verification errors
xlog_recover_dquot_commit_pass2() validates the recovered dquot with xfs_dqblk_verify() and, on failure, sets error = -EFSCORRUPTED and jumps to out_release. But out_release unconditionally returns 0, so the corruption error is discarded: the caller xlog_recover_items_pass2() sees success, log recovery proceeds as if the dquot were valid, and the corrupt quota buffer can be written back to disk.
From the CVE record · Linux
During XFS log recovery, the Linux kernel can discard an error when a recovered quota record fails verification. Recovery can then continue and write the corrupt quota buffer to disk. The input does not establish an attacker path, authentication requirement, or user interaction requirement.
Engineers running Linux systems that use XFS should check their kernel versions; affected versions were not provided.