CVE-2024-49872

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-49872
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49872.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-49872
Downstream
Related
Published
2024-10-21T18:15:08Z
Modified
2024-11-13T14:26:11Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

mm/gup: fix memfdpinfolios alloc race panic

If memfdpinfolios 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.

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.11.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}