CVE-2022-49168

btrfs: do not clean up repair bio if submit fails

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 01:55 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.10.2483.18 ≤ v < 5.10.2483.18 ≤ v < 5.15.1843.18 ≤ v < 5.16.193.18 ≤ v < 5.17.23.18 ≤ v < 5.185.11 ≤ v < 5.15.1845.16 ≤ v < 5.16.195.17 ≤ v < 5.17.23.186c387ab20db15f2bd448f7c508e2638101b16ea1
Vendor states this is fixed in 7170875083254b51fcc5d67f96640977083f481e (fixed)
Vendor states this is fixed in 8cbc3001a3264d998d6b6db3e23f935c158abd4d (fixed)
Vendor states this is fixed in d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14 (fixed)
Vendor states this is fixed in e76c78c48902dae6fa612749f59162bca0a79e0b (fixed)
Vendor states this is fixed in e7e1d15d2bd8c373cf621614ddd17971a2132713 (fixed)
Vendor states this is fixed in 3.18 (unaffected)
Vendor states this is fixed in 5.10.248 (unaffected)
Vendor states this is fixed in 5.15.184 (unaffected)
Vendor states this is fixed in 5.16.19 (unaffected)
Vendor states this is fixed in 5.17.2 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card