Advisory Published
Updated

CVE-2022-49897: fscrypt: fix keyring memory leak on mount failure

First published: Thu May 01 2025(Updated: )

In the Linux kernel, the following vulnerability has been resolved: fscrypt: fix keyring memory leak on mount failure Commit d7e7b9af104c ("fscrypt: stop using keyrings subsystem for fscrypt_master_key") moved the keyring destruction from __put_super() to generic_shutdown_super() so that the filesystem's block device(s) are still available. Unfortunately, this causes a memory leak in the case where a mount is attempted with the test_dummy_encryption mount option, but the mount fails after the option has already been processed. To fix this, attempt the keyring destruction in both places.

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

Affected SoftwareAffected VersionHow to fix
Linux Kernel

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-49897?

    CVE-2022-49897 has a low severity rating due to the nature of the memory leak affecting keyring destruction during mount failures.

  • How do I fix CVE-2022-49897?

    To fix CVE-2022-49897, update your Linux kernel to the latest version where this vulnerability has been addressed.

  • What are the potential impacts of CVE-2022-49897?

    The potential impacts of CVE-2022-49897 include memory leaks that could lead to increased memory usage in the system.

  • Which Linux kernel versions are affected by CVE-2022-49897?

    CVE-2022-49897 affects various versions of the Linux kernel prior to the fix being implemented in the latest releases.

  • Is there an exploit available for CVE-2022-49897?

    There is currently no known public exploit for CVE-2022-49897, but it is important to address the vulnerability to maintain system integrity.

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