Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-27007
HistoryMay 01, 2024 - 5:29 a.m.

CVE-2024-27007 userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVE

2024-05-0105:29:08
Linux
github.com
linux kernel
vulnerability resolved
userfaultfd
src_folio
uffdio_move
memory corruption

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.2%

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

userfaultfd: change src_folio after ensuring it’s unpinned in UFFDIO_MOVE

Commit d7a08838ab74 (“mm: userfaultfd: fix unexpected change to src_folio
when UFFDIO_MOVE fails”) moved the src_folio->{mapping, index} changing to
after clearing the page-table and ensuring that it’s not pinned. This
avoids failure of swapout+migration and possibly memory corruption.

However, the commit missed fixing it in the huge-page case.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "mm/huge_memory.c"
    ],
    "versions": [
      {
        "version": "adef440691ba",
        "lessThan": "df5f6e683e7f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "adef440691ba",
        "lessThan": "c0205eaf3af9",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "mm/huge_memory.c"
    ],
    "versions": [
      {
        "version": "6.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.8",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.2%