block: Fix wrong offset in bio_truncate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
block: Fix wrong offset in bio_truncate()
bio_truncate() clears the buffer outside of last block of bdev, however current bio_truncate() is using the wrong offset of page. So it can return the uninitialized data.
This happened when both of truncated/corrupted FS and userspace (via bdev) are trying to read the last of bdev.
From the CVE record · Linux
The Linux kernel's bio_truncate() uses the wrong page offset when clearing data beyond the last block of a block device. This can return uninitialized data when a filesystem is truncated or corrupted and userspace reads the end of the block device; the input does not specify authentication requirements.
Engineers running Linux kernels with block devices should check whether their kernel is affected; affected versions were not provided.