CVE-2022-49168 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: do not clean up repair bio if submit fails The submit helper will always run bio_endio() on the bio if it fails to submit, so cleaning up the bio just leads to a variety of use-after-free and NULL pointer dereference bugs because we race with the endio function that is cleaning up the bio. Instead just return BLK_STS_OK as the repair function has to continue to process the rest of the pages, and the endio for the repair bio will do the appropriate cleanup for the page that it was given.
A use-after-free vulnerability has been identified in the Linux kernel's Btrfs subsystem. This issue arises during the bio repair process, where the bio cleanup can interfere with the bio's end-of-IO handling. The vulnerability can lead to various bugs, including use-after-free errors and NULL pointer dereferences, by creating a race condition between the bio cleanup and the endio function that is supposed to manage the bio's lifecycle. The vulnerability affects several different versions and/or ranges of the Linux kernel.
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.
CISA-ADP
Assessed Feb 27, 2025References 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/7170875083254b51fcc5d67f96640977083f481e | kernel.org | Patch |
| https://git.kernel.org/stable/c/8cbc3001a3264d998d6b6db3e23f935c158abd4d | kernel.org | Patch |
| https://git.kernel.org/stable/c/d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e76c78c48902dae6fa612749f59162bca0a79e0b | kernel.org | Patch |
| https://git.kernel.org/stable/c/e7e1d15d2bd8c373cf621614ddd17971a2132713 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 5.10.248 >= 5.11, < 5.15.184 >= 5.16, < 5.16.19 >= 5.17, < 5.17.2 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 21, 2026 | Modified Analysis | [email protected] |
| Jan 19, 2026 | CVE Modified | kernel.org |
| Nov 18, 2025 | Modified Analysis | [email protected] |
| May 22, 2025 | CVE Modified | kernel.org |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |