CVE-2022-50300 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map use-after-free when handling missing device in read_one_chunk Store the error code before freeing the extent_map. Though it's reference counted structure, in that function it's the first and last allocation so this would lead to a potential use-after-free. The error can happen eg. when chunk is stored on a missing device and the degraded mount option is missing. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216721
A use-after-free vulnerability has been identified in the Btrfs file system component of the Linux kernel. This issue arises when the 'read_one_chunk' function processes a missing device, leading to a potential memory corruption. The vulnerability occurs because the error code is not properly stored before the 'extent_map' is freed, despite being a reference-counted structure. The problem can manifest when a chunk is located on a missing device and the 'degraded' mount option is not enabled.
Users can upgrade to the latest stable version of the Linux kernel where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/169a4cf46882974d4db6d85eb623ec898e51bbc0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1742e1c90c3da344f3bb9b1f1309b3f47482756a | kernel.org | Patch |
| https://git.kernel.org/stable/c/b8e7ed42bc3ca0d0e4191ee394d34962d3624c22 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fce3713197ebba239e1c7e02174ed216ea1ee014 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.15, < 5.15.87 >= 5.16, < 6.0.18 >= 6.1, < 6.1.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 4, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |