Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability in the Linux kernel's handling of hugetlb memory management on LoongArch architecture has been addressed. The issue arose because the base address allocated from hugetlbfs was not properly aligned with the page middle directory (PMD) size, leading to a kernel error during the execution of a specific test case. This misalignment caused a kernel bug, as the unmapping of hugepages was not correctly managed, disrupting the memory handling process. The vulnerability has been resolved by ensuring that the hugetlb base address is aligned with the PMD size, allowing the test case to pass successfully.
The vulnerability could lead to a kernel bug, causing improper management of hugetlb hugepage mappings, which could disrupt memory handling processes and potentially cause system instability.
The vulnerability can be reproduced by running the Linux Test Project (LTP) test case 'hugefork02', which exercises hugetlb memory management. The test case will trigger a kernel bug due to the misalignment of the hugetlb base address with the PMD size, resulting in a dmesg error report indicating a kernel BUG at the hugetlb memory management source file.
Users should update to the latest version of the Linux kernel where this vulnerability has been addressed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.