CVE-2022-49168

HIGH

Linux Kernel < 5.10.248, 5.11.0-5.15.183, 5.16.0-5.16.18, 5.17.0-5.17.1 - Use-After-Free in Btrfs Repair Bio Handling

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0027
EPSS Percentile 19.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-416
Status published
Products (17)
linux/Kernel 3.18.0 - 5.10.248linux
linux/Kernel 5.11.0 - 5.15.184linux
linux/Kernel 5.16.0 - 5.16.19linux
linux/Kernel 5.17.0 - 5.17.2linux
Linux/Linux < 3.18
Linux/Linux 3.18
Linux/Linux 5.10.248 - 5.10.*
Linux/Linux 5.15.184 - 5.15.*
Linux/Linux 5.16.19 - 5.16.*
Linux/Linux 5.17.2 - 5.17.*
... and 7 more
Published Feb 26, 2025
Tracked Since Feb 18, 2026