CVE-2022-49896

Source
https://cve.org/CVERecord?id=CVE-2022-49896
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49896.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49896
Downstream
Published
2025-05-01T14:10:38Z
Modified
2026-08-12T03:51:48Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
cxl/pmem: Fix cxl_pmem_region and cxl_memdev leak
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49896.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
04ad63f086d1a9649b8b082748cbc7a570ade461
Fixed
f43b6bfdbab78606735ba81185cf0602b81e40b6
Fixed
4d07ae22e79ebc2d7528bbc69daa53b86981cb3a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49896.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.0.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49896.json"