Vulnerability in Linux Kernel: mm: fix unexpected zeroed page mapping with zram swap
Summary
GSD-2022-1001953: mm: fix unexpected zeroed page mapping with zram swap. Affects Kernel versions >= 0bcac06f27d7528591c27ac2b093ccd71c5d0168, < 20ed94f8181a25212e7404e44958e234f407624b. 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 Linux Kernel is a critical component of the Linux operating system, responsible for managing system resources and providing a bridge between hardware and software. It is a widely used open-source package that powers numerous devices and servers. One of the features provided by the kernel is zram swap, which allows compressed swap space in RAM. This feature is utilized to improve system performance by reducing the need for disk-based swapping. However, a vulnerability has been discovered in the zram swap implementation, which could lead to unexpected zeroed page mappings.
Vulnerability Detail
The vulnerability in the zram swap implementation can result in unexpected zeroed page mappings. This means that when data is swapped out to the zram swap space, it may be zeroed out instead of being preserved. This can have various implications, including data loss, corruption, or unauthorized access to sensitive information. The vulnerability was introduced in version v4.15 of the Linux Kernel and has been fixed in version v5.10.112.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.112 or later. This can be done by obtaining the latest kernel source code from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for the target system. Alternatively, users can wait for their Linux distribution to provide an updated package containing the fixed kernel version.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by disabling the zram swap feature if it is not essential for their system's performance. This can be done by modifying the system's configuration files or kernel parameters.
Conclusion
The vulnerability in the zram swap implementation of the Linux Kernel can lead to unexpected zeroed page mappings, potentially resulting in data loss, corruption, or unauthorized access to sensitive information. It is recommended to update the Linux Kernel to version v5.10.112 or later to fix this vulnerability. Users can also consider disabling the zram swap feature if it is not essential for their system's performance. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to unexpected zeroed page mappings in the zram swap space, potentially resulting in data loss, corruption, or unauthorized access to sensitive information.
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 the Vulert Playground will analyze it for any open-source vulnerabilities, including this one.
Yes, the vulnerability has been fixed in Linux Kernel version v5.10.112. It is recommended to update to this version or a later one to mitigate the risk.
Yes, disabling the zram swap feature can help mitigate the risk. However, this may impact system performance, so it should be done only if the feature is not essential for your system.
You can refer to the vulnerability details in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001953.json) for more information about this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.