# CVE-2022-48747: block: Fix wrong offset in bio_truncate()

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:29.951Z
- Modified: 2026-06-17T05:16:05.003Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 943cd69efac437d82a7aea0659fccbcc071730de before 6cbf4c731d7812518cd857c2cfc3da9fd120f6ae; from 85a8ce62c2eabe28b9d76ca4eecf37922402df93 before b63e120189fd92aff00096d11e2fc5253f60248b; from 85a8ce62c2eabe28b9d76ca4eecf37922402df93 before 4633a79ff8bc82770486a063a08b55e5162521d8; from 85a8ce62c2eabe28b9d76ca4eecf37922402df93 before 941d5180c430ce5b0f7a3622ef9b76077bfa3d82; from 85a8ce62c2eabe28b9d76ca4eecf37922402df93 before 3ee859e384d453d6ac68bfd5971f630d9fa46ad3; from 5.4.9 before 5.4.176; 5.5 (not affected: before 5.5; from 5.4.176 up to 5.4.*; from 5.10.96 up to 5.10.*; from 5.15.19 up to 5.15.*; from 5.16.5 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 1da177e4c3f4 before 6cbf4c731d78; from 1da177e4c3f4 before b63e120189fd; from 1da177e4c3f4 before 4633a79ff8bc; from 1da177e4c3f4 before 941d5180c430; from 1da177e4c3f4 before 3ee859e384d4; before 5.4.176; from 5.5 before 5.10.96; from 5.11 before 5.15.19; from 5.16 before 5.16.5 (not affected: from 5.4.176 up to 5.5; from 5.10.96 up to 5.11; from 5.15.19 up to 5.16; from 5.16.5 up to 5.17; 5.17)

## References

- <https://git.kernel.org/stable/c/6cbf4c731d7812518cd857c2cfc3da9fd120f6ae> (patch)
- <https://git.kernel.org/stable/c/b63e120189fd92aff00096d11e2fc5253f60248b> (patch)
- <https://git.kernel.org/stable/c/4633a79ff8bc82770486a063a08b55e5162521d8> (patch)
- <https://git.kernel.org/stable/c/941d5180c430ce5b0f7a3622ef9b76077bfa3d82> (patch)
- <https://git.kernel.org/stable/c/3ee859e384d453d6ac68bfd5971f630d9fa46ad3> (patch)

## Sources

- CVE List: [CVE-2022-48747](https://www.cve.org/CVERecord?id=CVE-2022-48747), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-48747](https://nvd.nist.gov/vuln/detail/CVE-2022-48747), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48747 · Whole record: https://cve.day/CVE-2022-48747.json · Rebuilt by cve.day 2026-11-25T22:58:19.848Z
