btrfs: don't clobber ret in btrfs_validate_super()
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:
btrfs: don't clobber ret in btrfs_validate_super()
Commit 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") introduces a call to validate_sys_chunk_array() in btrfs_validate_super(), which clobbers the value of ret set earlier. This has the effect of negating the validity checks done earlier, making it so btrfs could potentially try to mount invalid filesystems.
From the CVE record · Linux
In the Linux kernel, btrfs_validate_super() can overwrite the result of earlier validity checks. This could cause btrfs to attempt to mount an invalid filesystem. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with btrfs should check whether their kernel includes the affected change; affected versions are not specified.