---
id: CVE-2024-26632
title: |-
  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
summary: |-
  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.  Mov…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.17, < 6.1.75'
  - 'linux_kernel >= 6.2, < 6.6.14'
  - 'linux_kernel >= 6.7, < 6.7.2'
patched:
  - linux_kernel 6.7.2
published: '2024-03-18'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-26632'
references:
  - url: 'https://git.kernel.org/stable/c/7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a6bd8182137a12d22d3f2cee463271bdcb491659'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c6350b5cb78e9024c49eaee6fdb914ad2903a5fe'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ca3ede3f5893e2d26d4dbdef1eec28a8487fafde'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/a6bd8182137a12d22d3f2cee463271bdcb491659'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c6350b5cb78e9024c49eaee6fdb914ad2903a5fe'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/ca3ede3f5893e2d26d4dbdef1eec28a8487fafde'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00236
epssPercentile: 0.12983
ingestedAt: '2026-08-05T10:46:47.313Z'
---

## Overview

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

- `linux_kernel >= 5.17, < 6.1.75`
- `linux_kernel >= 6.2, < 6.6.14`
- `linux_kernel >= 6.7, < 6.7.2`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.7.2`
