btrfs: fix reservation leak in some error paths when inserting inline extent
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix reservation leak in some error paths when inserting inline extent
If we fail to allocate a path or join a transaction, we return from __cow_file_range_inline() without freeing the reserved qgroup data, resulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data() in such cases.
From the CVE record · Linux
The Linux kernel’s btrfs code can leak reserved qgroup data if allocating a path or joining a transaction fails while inserting an inline extent. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel with btrfs should check their versions; affected versions are not specified in the input.