# CVE-2024-26632: block: Fix iterating over an empty bio with bio_for_each_folio_all

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-18T10:07:48.908Z
- Modified: 2026-08-05T11:26:25.799Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: Fix iterating over an empty bio with bio_for_each_folio_all

If the bio contains no data, bio_first_folio() calls page_folio() on a
NULL pointer and oopses.  Move the test that we've reached the end of
the bio from bio_next_folio() to bio_first_folio().

[axboe: add unlikely() to error case]

(As written by CVE List.)

## Affected

- Linux Linux: from 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 before c6350b5cb78e9024c49eaee6fdb914ad2903a5fe; from 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 before a6bd8182137a12d22d3f2cee463271bdcb491659; from 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 before ca3ede3f5893e2d26d4dbdef1eec28a8487fafde; from 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 before 7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7; 5.17 (not affected: before 5.17; from 6.1.75 up to 6.1.*; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.17 before 6.1.75; from 6.2 before 6.6.14; from 6.7 before 6.7.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c6350b5cb78e9024c49eaee6fdb914ad2903a5fe> (patch)
- <https://git.kernel.org/stable/c/a6bd8182137a12d22d3f2cee463271bdcb491659> (patch)
- <https://git.kernel.org/stable/c/ca3ede3f5893e2d26d4dbdef1eec28a8487fafde> (patch)
- <https://git.kernel.org/stable/c/7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7> (patch)

## Sources

- CVE List: [CVE-2024-26632](https://www.cve.org/CVERecord?id=CVE-2024-26632), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26632](https://nvd.nist.gov/vuln/detail/CVE-2024-26632), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26632 · Whole record: https://cve.day/CVE-2024-26632.json · Rebuilt by cve.day 2026-11-25T22:58:37.643Z
