一、 漏洞 CVE-2022-49549 基础信息
漏洞标题
x86/MCE/AMD:修复threshold_create_bank()失败时的内存泄漏问题
来源:AIGC 神龙大模型
漏洞描述信息
在Linux内核中,已修复以下漏洞: x86/MCE/AMD: 当threshold_create_bank()失败时修复内存泄漏问题 在mce_threshold_create_device()中,如果threshold_create_bank()失败,之前分配的阈值银行数组@bp将会泄漏,因为调用mce_threshold_remove_device()不会释放它。 这个问题发生的原因是mce_threshold_remove_device()通过threshold_banks的每CPU变量获取指针,但bp仅在银行创建成功后写入该变量,而不是在threshold_create_bank()失败时写入。 增加一个辅助函数,用于撤销之前做过的所有银行创建工作,并传递之前分配的阈值银行数组以进行释放。 [ bp: 调整。 ]
来源:AIGC 神龙大模型
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
来源:AIGC 神龙大模型
漏洞类别
在移除最后引用时对内存的释放不恰当(内存泄露)
来源:AIGC 神龙大模型
漏洞标题
x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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. ]
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
二、漏洞 CVE-2022-49549 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2022-49549 的情报信息
  • 标题: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接

    标签:

  • 标题: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接

    标签:

  • 标题: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接

    标签:

  • 标题: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接

    标签:

  • 标题: x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接

    标签:

  • https://nvd.nist.gov/vuln/detail/CVE-2022-49549