7.8
CWE
416 476
Advisory Published
Updated

CVE-2022-49168: btrfs: do not clean up repair bio if submit fails

First published: Wed Feb 26 2025(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel<5.16.19
Linux Kernel>=5.17<5.17.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-49168?

    CVE-2022-49168 has a severity rating that can lead to potential use-after-free and NULL pointer dereference vulnerabilities in the Linux kernel.

  • How do I fix CVE-2022-49168?

    To fix CVE-2022-49168, update your Linux kernel to version 5.17 or later.

  • What are the affected versions in CVE-2022-49168?

    CVE-2022-49168 affects Linux kernel versions prior to 5.17 and versions between 5.16.19 and 5.17.2.

  • What is the impact of CVE-2022-49168?

    The impact of CVE-2022-49168 could lead to system instability and potential exploitation by malicious actors.

  • Is CVE-2022-49168 related to file systems in Linux?

    Yes, CVE-2022-49168 specifically relates to the Btrfs file system implementation in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203