btrfs: fix extent map use-after-free when adding pages to compressed bio
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's btrfs add_ra_bio_pages() function can access an extent map after releasing its reference, causing a use-after-free when adding pages to a compressed bio. The input does not specify how an attacker could trigger this issue, what they could achieve, or whether access or user interaction is required.
Engineers running Linux systems that use btrfs should check their kernel versions; affected versions are not specified.