ovl: fix NULL pointer dereference in copy up warning
Summary
GSD-2022-1000648: ovl: fix NULL pointer dereference in copy up warning. Affects Kernel versions >= 5b0a414d06c3ed2097e32ef7944a4abb644b89bd, < 9c7f8a35c5a83740c0e3ea540b6ad145c50d79aa. 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 ovl package is a component of the Linux Kernel, which is responsible for implementing overlay filesystems. Overlay filesystems allow multiple filesystems to be layered on top of each other, providing a unified view of the files and directories. The ovl package specifically handles copy up operations, which involve copying files from a lower layer to a higher layer in the overlay filesystem. This vulnerability in the ovl package can lead to a NULL pointer dereference, causing the system to crash or potentially allowing an attacker to execute arbitrary code.
Vulnerability Detail
The vulnerability in the ovl package arises from a NULL pointer dereference in the copy up warning mechanism. When performing a copy up operation, the ovl package checks for certain conditions and issues a warning if necessary. However, due to a programming error, a NULL pointer can be dereferenced during this warning process, leading to a system crash. This vulnerability can be exploited by an attacker with local access to the system to cause a denial of service or potentially execute arbitrary code with elevated privileges.
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
As a workaround, users can avoid the vulnerability by disabling the use of overlay filesystems or preventing untrusted users from accessing the affected system. However, these workarounds may not be feasible in all scenarios and it is strongly advised to apply the official fix by updating the Linux Kernel.
Conclusion
The ovl package in the Linux Kernel is vulnerable to a NULL pointer dereference issue in the copy up warning mechanism. This vulnerability can result in a system crash or potential code execution by an attacker. It is recommended to update the Linux Kernel to version v5.16.6 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The ovl package is a component of the Linux Kernel that handles overlay filesystems, allowing multiple filesystems to be layered on top of each other.
A NULL pointer dereference occurs when a program attempts to access or manipulate data using a pointer that points to NULL, resulting in a crash or undefined behavior.
A copy up operation in the context of overlay filesystems involves copying files from a lower layer to a higher layer, allowing modifications to be made to the copied files without affecting the original files.
This vulnerability can lead to a system crash or potentially allow an attacker to execute arbitrary code with elevated privileges, depending on how it is exploited.
To fix this vulnerability, update the Linux Kernel to version v5.16.6 or later, which includes the necessary fix for the ovl package.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.