f2fs: compress: fix to cover normal cluster write with cp_rwsem
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4c8ff7095bef64fc47e996a938f7d57f9e077da3 · < fd244524c2cf07b5f4c3fe8abd6a99225c76544b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
f2fs: compress: fix to cover normal cluster write with cp_rwsem
When we overwrite compressed cluster w/ normal cluster, we should not unlock cp_rwsem during f2fs_write_raw_pages(), otherwise data will be corrupted if partial blocks were persisted before CP & SPOR, due to cluster metadata wasn't updated atomically.
From the CVE record · Linux
The Linux kernel’s f2fs compression code can corrupt data when a compressed cluster is overwritten with a normal cluster. This can occur if partial blocks persist before a checkpoint and subsequent recovery; the input does not specify an attacker, access requirements, or user interaction.
Engineers running Linux kernels that use f2fs compression should check their installations; affected versions were not provided.