Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42314
HistoryAug 17, 2024 - 9:09 a.m.

CVE-2024-42314 btrfs: fix extent map use-after-free when adding pages to compressed bio

2024-08-1709:09:23
Linux
www.cve.org
17
linux kernel
btrfs
vulnerability
fixed
extent map
use-after-free
add_ra_bio_pages

EPSS

0

Percentile

5.0%

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

btrfs: fix extent map use-after-free when adding pages to compressed bio

At add_ra_bio_pages() we are accessing the extent map to calculate
‘add_size’ after we dropped our reference on the extent map, resulting
in a use-after-free. Fix this by computing ‘add_size’ before dropping our
extent map reference.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/btrfs/compression.c"
    ],
    "versions": [
      {
        "version": "6a4049102055",
        "lessThan": "c1cc3326e27b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6a4049102055",
        "lessThan": "c205565e0f2f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6a4049102055",
        "lessThan": "b7859ff398b6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6a4049102055",
        "lessThan": "8e7860543a94",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/btrfs/compression.c"
    ],
    "versions": [
      {
        "version": "5.16",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.16",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.108",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.44",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]