f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ef8d563f184e1112651f2cbde383d43e599334e8 · < 0a4ed2d97cb6d044196cc3e726b6699222b41019| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock to avoid racing with checkpoint, otherwise, filesystem metadata including blkaddr in dnode, inode fields and .total_valid_block_count may be corrupted after SPO case.
From the CVE record · Linux
The Linux kernel's f2fs compression code can race with a checkpoint when reserving or releasing compressed blocks. After an SPO case, the race may corrupt filesystem metadata. The input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with f2fs compression should check their versions; affected versions are not specified.