All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-42314

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-23

Description

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.

An extent map use-after-free vulnerability was found in the Linux kernel. This issue occurs when adding pages to a compressed bio and may cause a crash.