{"id":"CVE-2022-49549","published":"2025-02-26T02:14:00Z","modified":"2026-05-11T19:02:05Z","title":"x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/MCE/AMD: Fix memory leak when threshold_create_bank() fails\n\nIn mce_threshold_create_device(), if threshold_create_bank() fails, the\npreviously allocated threshold banks array @bp will be leaked because\nthe call to mce_threshold_remove_device() will not free it.\n\nThis happens because mce_threshold_remove_device() fetches the pointer\nthrough the threshold_banks per-CPU variable but bp is written there\nonly after the bank creation is successful, and not before, when\nthreshold_create_bank() fails.\n\nAdd a helper which unwinds all the bank creation work previously done\nand pass into it the previously allocated threshold banks array for\nfreeing.\n\n  [ bp: Massage. ]","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00268,"percentile":0.19382,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/b4acb8e7f1594607bc9017ef0aacb40b24a003d6","tags":[]},{"url":"https://git.kernel.org/stable/c/cc0dd4456f9573bf8af9b4d8754433918e809e1e","tags":[]},{"url":"https://git.kernel.org/stable/c/9708f1956eeb70c86943e0bc62fa3b0101b59616","tags":[]},{"url":"https://git.kernel.org/stable/c/396b8e7ab2a99ddac57d3522b3da5e58cb608d37","tags":[]},{"url":"https://git.kernel.org/stable/c/e5f28623ceb103e13fc3d7bd45edf9818b227fd0","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.88},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6458de97fc15530b54477c4e2b70af653e8ac3d9, < b4acb8e7f1594607bc9017ef0aacb40b24a003d6",">= 6458de97fc15530b54477c4e2b70af653e8ac3d9, < cc0dd4456f9573bf8af9b4d8754433918e809e1e",">= 6458de97fc15530b54477c4e2b70af653e8ac3d9, < 9708f1956eeb70c86943e0bc62fa3b0101b59616",">= 6458de97fc15530b54477c4e2b70af653e8ac3d9, < 396b8e7ab2a99ddac57d3522b3da5e58cb608d37",">= 6458de97fc15530b54477c4e2b70af653e8ac3d9, < e5f28623ceb103e13fc3d7bd45edf9818b227fd0"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:37:22.894160Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54683","exploited":false,"provenance":"source"}}