Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability related to the handling of shared PMD tables in the hugetlb memory management system of the Linux kernel has been addressed. The issue was that the function 'hugetlb_pmd_shared()' was not correctly detecting shared PMD tables, which could lead to improper accounting of memory usage and management of shared resources. This vulnerability was present in the Linux kernel's stable tree.
The vulnerability could cause incorrect accounting of shared memory in the 'smaps' interface, misrepresenting shared folios as private. This could lead to improper management of memory-mapped resources, particularly in applications that rely on accurate memory sharing information.
The vulnerability can be reproduced by migrating folios mapped into shared PMD tables using the 'mbind()' or 'migrate_pages()' functions. This will demonstrate the incorrect accounting of shared folios as private, highlighting the flaw in the 'hugetlb_pmd_shared()' function's detection of PMD table sharing.
Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability. The specific commit that resolves the issue is 'ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216', which can be downloaded as part of the Linux kernel source.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.