CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's memory reservation functionality, specifically in the kho_preserved_memory_reserve() method, which improperly calculates the size of memory preservation, allowing for undefined behavior when attempting to reserve memory larger than 2 GiB. This flaw could potentially lead to system instability or crashes if exploited, particularly in environments that require large memory allocations. Organizations utilizing the Linux kernel, especially those managing high-memory applications, should prioritize addressing this issue to ensure system reliability and prevent potential exploitation.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: kho: fix size calculation in kho_preserved_memory_reserve() kho_preserved_memory_reserve() calculates the size of a preservation by doing 1 << (order + PAGE_SHIFT). Since the '1' is a 32-bit integer, it can only be shifted by 31. That is, it will only work for preservations up to 2 GiB. Larger preservations will trigger undefined behaviour. While preservations larger than 2 GiB can't be obtained via folios currently, they can be obtained via kho_preserve_pages(). For example, memblock reserve_mem uses kho_preserve_pages(). Reservations larger than 2 GiB are valid and will trigger this bug if properly aligned. Fix it by using 1UL for shifting.