CVE-2022-49549 Details
Description
In the Linux kernel, the following vulnerability has been resolved: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails In mce_threshold_create_device(), if threshold_create_bank() fails, the previously allocated threshold banks array @bp will be leaked because the call to mce_threshold_remove_device() will not free it. This happens because mce_threshold_remove_device() fetches the pointer through the threshold_banks per-CPU variable but bp is written there only after the bank creation is successful, and not before, when threshold_create_bank() fails. Add a helper which unwinds all the bank creation work previously done and pass into it the previously allocated threshold banks array for freeing. [ bp: Massage. ]
A memory leak vulnerability has been identified in the Linux kernel within the x86/MCE/AMD component. This issue arises in the 'mce_threshold_create_device()' function when 'threshold_create_bank()' fails. The failure prevents the proper deallocation of a previously allocated array, leading to a memory leak. The problem occurs because the cleanup function 'mce_threshold_remove_device()' can only access the pointer through a per-CPU variable after a bank has been successfully created. To address this, a new helper function has been added to properly unwind the bank creation process and free the allocated resources.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/396b8e7ab2a99ddac57d3522b3da5e58cb608d37 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9708f1956eeb70c86943e0bc62fa3b0101b59616 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b4acb8e7f1594607bc9017ef0aacb40b24a003d6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cc0dd4456f9573bf8af9b4d8754433918e809e1e | kernel.org | Patch |
| https://git.kernel.org/stable/c/e5f28623ceb103e13fc3d7bd45edf9818b227fd0 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
| CWE-401 | Missing Release of Memory after Effective Lifetime | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.8, < 5.10.121 >= 5.11, < 5.15.46 >= 5.16, < 5.17.14 >= 5.18, < 5.18.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 10, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |