Buffer Copy Overflow in erofs ztailpacking Feature
Summary
GSD-2022-1002744: erofs: fix buffer copy overflow of ztailpacking feature. Affects Kernel versions >= ab749badf9f41f32509cd103391b81ea7e684b76, < 6b59e1907f58cf877c563dcf013159eb9f994b64. 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 erofs is a file system used in the Linux Kernel. It is designed to provide high compression ratios and low memory footprint. The ztailpacking feature in erofs allows tail-packing of small files to improve compression efficiency. However, a buffer copy overflow vulnerability has been discovered in this feature.
Vulnerability Detail
The buffer copy overflow vulnerability in the erofs ztailpacking feature allows an attacker to overwrite adjacent memory beyond the bounds of the buffer. This can lead to various consequences, including remote code execution, privilege escalation, or denial of service. The vulnerability was introduced in Linux Kernel version v5.17 and has been fixed in version v5.18.3.
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.18.3 or later. This can be done by obtaining the latest kernel source code from the official Linux Kernel repository and compiling it for the target system. Alternatively, users can wait for their Linux distribution to release an updated kernel package.
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 essential to apply the fix by updating the Linux Kernel.
Conclusion
The buffer copy overflow vulnerability in the erofs ztailpacking feature can have severe security implications. It is crucial to update the Linux Kernel to the latest version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
erofs is a file system used in the Linux Kernel, known for its high compression ratios and low memory footprint.
The ztailpacking feature in erofs allows tail-packing of small files to improve compression efficiency.
A buffer copy overflow vulnerability occurs when data is copied into a buffer without proper bounds checking, leading to overwriting adjacent memory.
The buffer copy overflow vulnerability in erofs ztailpacking can result in remote code execution, privilege escalation, or denial of service.
To fix this vulnerability, update the Linux Kernel to version v5.18.3 or later.
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.