Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26632
HistoryMar 18, 2024 - 10:07 a.m.

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

2024-03-1810:07:48
Linux
www.cve.org
linux kernel
vulnerability resolved
block fix
bio_for_each_folio_all
bio data
page_folio
null pointer
error case

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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]

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/bio.h"
    ],
    "versions": [
      {
        "version": "640d1930bef4",
        "lessThan": "c6350b5cb78e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "640d1930bef4",
        "lessThan": "a6bd8182137a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "640d1930bef4",
        "lessThan": "ca3ede3f5893",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "640d1930bef4",
        "lessThan": "7bed6f3d08b7",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/bio.h"
    ],
    "versions": [
      {
        "version": "5.17",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.17",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.75",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.14",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.2",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%