CVE-2022-49168

published 26 Feb 2025 · updated 5 Aug 2026

btrfs: do not clean up repair bio if submit fails

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7170875083254b51fcc5d67f96640977083f481e, Kernel 8cbc3001a3264d998d6b6db3e23f935c158abd4d, Kernel d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.18, >=6c387ab20db15f2bd448f7c508e2638101b16ea1 <7170875083254b51fcc5d67f96640977083f481e, >=6c387ab20db15f2bd448f7c508e2638101b16ea1 <8cbc3001a3264d998d6b6db3e23f935c158abd4d, >=6c387ab20db15f2bd448f7c508e2638101b16ea1 <d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14, >=6c387ab20db15f2bd448f7c508e2638101b16ea1 <e76c78c48902dae6fa612749f59162bca0a79e0b, >=6c387ab20db15f2bd448f7c508e2638101b16ea1 <e7e1d15d2bd8c373cf621614ddd17971a21327137170875083254b51fcc5d67f96640977083f481e, 8cbc3001a3264d998d6b6db3e23f935c158abd4d, d1cb11fb45ebbb1e7dfe5e9038b32ea72c184b14, e76c78c48902dae6fa612749f59162bca0a79e0b, e7e1d15d2bd8c373cf621614ddd17971a2132713

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49168 severity on Zeptric[![CVE-2022-49168](https://zeptric.io/badge/cve/CVE-2022-49168.svg)](https://zeptric.io/cve/CVE-2022-49168)