Vulnerability in Kernel: mm, compaction: fast_find_migrateblock() should return pfn in the target zone
Summary
GSD-2022-1003306: mm, compaction: fast_find_migrateblock() should return pfn in the target zone. Affects Kernel versions >= 70b44595eafe9c7c235f076d653a268ca1ab9fdb, < 20e6ec76aed47c65ee2dd7636f4911396c9396c7. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Kernel is a critical component of the Linux operating system that manages system resources and provides an interface between hardware and software. It is responsible for memory management, process scheduling, device drivers, and other essential functions. The mm subsystem within the Kernel handles memory management, including memory allocation and deallocation. The compaction module within mm is responsible for optimizing memory usage by rearranging memory pages. This vulnerability affects the fast_find_migrateblock() function within the compaction module.
Vulnerability Detail
The fast_find_migrateblock() function in the compaction module of the Kernel's mm subsystem has a flaw that causes it to return the wrong page frame number (pfn) when searching for a suitable migration target. This can lead to incorrect memory migration decisions and potential memory corruption. An attacker could potentially exploit this vulnerability to manipulate memory mappings, escalate privileges, or cause a denial-of-service condition. The vulnerability was introduced in version v5.1 of the Linux Kernel and is fixed in version v5.15.46.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel as mentioned in the 'how_to_fix' section.
Conclusion
The vulnerability in the Kernel's mm compaction module can lead to memory corruption and potential security risks. It is crucial to update the Linux Kernel to version v5.15.46 or later to fix this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially be exploited by an attacker to manipulate memory mappings, escalate privileges, or cause a denial-of-service condition.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will analyze the dependencies for any known vulnerabilities.
Yes, a patch is available in version v5.15.46 of the Linux Kernel. It is recommended to update to this version or later to fix the vulnerability.
There are no known exploits for this vulnerability at the time of writing. However, it is important to apply the fix as soon as possible to mitigate any potential risks.
Exploiting this vulnerability typically requires local access to the system. However, if an attacker already has access to the system, they may be able to exploit this vulnerability to escalate privileges or manipulate memory mappings.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.