CVE-2024-49964
Last modified
CVE-2024-49964 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix memfd_pin_folios free_huge_pages leak memfd_pin_folios followed by unpin_folios fails to restore free_huge_pages if the pages were not already faulted in, because the folio refcount for pages created by memfd_alloc_folio never goes to 0. memfd_pin_folios needs another folio_put to undo the folio_try_get below: memfd_alloc_folio() alloc_hugetlb_folio_nodemask() dequeue_hugetlb_folio_nodemask() dequeue_hugetlb_folio_node_exact() folio_ref_unfreeze(folio, 1); ; adds 1 refcount folio_try_get() ; adds 1 refcount hugetlb_add_to_page_cache() ; adds 512 refcount (on x86) With the fix, after memfd_pin_folios + unpin_folios, the refcount for the (unfaulted) page is 512, which is correct, as the refcount for a faulted unpinned page is 513.. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix memfd_pin_folios free_huge_pages leak memfd_pin_folios followed by unpin_folios fails to restore free_huge_pages if the pages were not already faulted in, because the folio refcount for pages created by memfd_alloc_folio never goes to 0. memfd_pin_folios needs another folio_put to undo the folio_try_get below: memfd_alloc_folio() alloc_hugetlb_folio_nodemask() dequeue_hugetlb_folio_nodemask() dequeue_hugetlb_folio_node_exact() folio_ref_unfreeze(folio, 1); ; adds 1 refcount folio_try_get() ; adds 1 refcount hugetlb_add_to_page_cache() ; adds 512 refcount (on x86) With the fix, after memfd_pin_folios + unpin_folios, the refcount for the (unfaulted) page is 512, which is correct, as the refcount for a faulted unpinned page is 513.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.11, < 6.11.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-49964?
How severe is CVE-2024-49964?
How do I fix CVE-2024-49964?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-49959In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4996Use of a hard-coded password for a database administrator ac…9.8
- CVE-2024-49960In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49961In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49962In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49963In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49965In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49966In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49967Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-49968In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49969In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-4997The WPUpper Share Buttons plugin for WordPress is vulnerable…5.3
Are you affected by CVE-2024-49964?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
