Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-26632

block: Fix iterating over an empty bio with bio_for_each_folio_all

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]

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 to < c6350b5cb78e9024c49eaee6fdb914ad2903a5feaffected
  • 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 to < a6bd8182137a12d22d3f2cee463271bdcb491659affected
  • 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 to < ca3ede3f5893e2d26d4dbdef1eec28a8487fafdeaffected
  • 640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662 to < 7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7affected

Linux Linux

Default version status: affected

  • 5.17affected
  • 0 to < 5.17unaffected
  • 6.1.75 to ≤ 6.1.*unaffected
  • 6.6.14 to ≤ 6.6.*unaffected
  • 6.7.2 to ≤ 6.7.*unaffected
  • 6.8 to ≤ *unaffected

References