Advisory Published
Updated

CVE-2022-49896: cxl/pmem: Fix cxl_pmem_region and cxl_memdev leak

First published: Thu May 01 2025(Updated: )

In the Linux kernel, the following vulnerability has been resolved: cxl/pmem: Fix cxl_pmem_region and cxl_memdev leak When a cxl_nvdimm object goes through a ->remove() event (device physically removed, nvdimm-bridge disabled, or nvdimm device disabled), then any associated regions must also be disabled. As highlighted by the cxl-create-region.sh test [1], a single device may host multiple regions, but the driver was only tracking one region at a time. This leads to a situation where only the last enabled region per nvdimm device is cleaned up properly. Other regions are leaked, and this also causes cxl_memdev reference leaks. Fix the tracking by allowing cxl_nvdimm objects to track multiple region associations.

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

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel>=6.0<6.0.8
Linux Kernel=6.1-rc1
Linux Kernel=6.1-rc2
Linux Kernel=6.1-rc3

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

    The severity of CVE-2022-49896 is categorized as a moderate vulnerability in the Linux kernel.

  • How do I fix CVE-2022-49896?

    To fix CVE-2022-49896, update the Linux kernel to a version that has addressed this vulnerability.

  • What impact does CVE-2022-49896 have on affected systems?

    CVE-2022-49896 can lead to resource leaks in cxl_nvdimm objects, potentially affecting system performance.

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

    CVE-2022-49896 affects various versions of the Linux kernel prior to the patch release that addresses this issue.

  • Is CVE-2022-49896 being actively exploited in the wild?

    As of now, there are no public reports indicating that CVE-2022-49896 is being actively exploited in the wild.

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