CVE-2022-49549

MEDIUM

Linux Kernel 5.8-5.10.120, 5.11-5.15.45, 5.16-5.17.13, 5.18-5.18.2 - Use-After-Free in MCE Threshold Bank Creation

Title source: llm
STIX 2.1

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. ]

Scores

CVSS v3 5.5
EPSS 0.0025
EPSS Percentile 15.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-401
Status published
Products (17)
linux/Kernel 5.11.0 - 5.15.46linux
linux/Kernel 5.16.0 - 5.17.14linux
linux/Kernel 5.18.0 - 5.18.3linux
linux/Kernel 5.8.0 - 5.10.121linux
Linux/Linux < 5.8
Linux/Linux 5.10.121 - 5.10.*
Linux/Linux 5.15.46 - 5.15.*
Linux/Linux 5.17.14 - 5.17.*
Linux/Linux 5.18.3 - 5.18.*
Linux/Linux 5.19
... and 7 more
Published Feb 26, 2025
Tracked Since Feb 18, 2026