• 公告ID (KylinSec-SA-2024-4243)

摘要:

In the Linux kernel, the following vulnerability has been resolved:

mm/gup: fix memfd_pin_folios alloc race panic

If memfd_pin_folios tries to create a hugetlb page, but someone else
already did, then folio gets the value -EEXIST here:

folio = memfd_alloc_folio(memfd, start_idx);
if (IS_ERR(folio)) {
ret = PTR_ERR(folio);
if (ret != -EEXIST)
goto err;

then on the next trip through the "while start_idx" loop we panic here:

if (folio) {
folio_put(folio);

To fix, set the folio to NULL on error.

安全等级: Low

公告ID: KylinSec-SA-2024-4243

发布日期: 2024年12月8日

关联CVE: CVE-2024-49872  

  • 详细介绍

1. 漏洞描述

   

In the Linux kernel, the following vulnerability has been resolved:

mm/gup: fix memfd_pin_folios alloc race panic

If memfd_pin_folios tries to create a hugetlb page, but someone else
already did, then folio gets the value -EEXIST here:

folio = memfd_alloc_folio(memfd, start_idx);
if (IS_ERR(folio)) {
ret = PTR_ERR(folio);
if (ret != -EEXIST)
goto err;

then on the next trip through the "while start_idx" loop we panic here:

if (folio) {
folio_put(folio);

To fix, set the folio to NULL on error.

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2024-49872 KY3.4-5 kernel Unaffected
CVE-2024-49872 KY3.5.3 kernel Unaffected
CVE-2024-49872 V6 kernel Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2024-4242 下一篇:KylinSec-SA-2024-4244