
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a buffer copy overflow vulnerability was discovered in the EROFS (Enhanced Read-Only File System) ztailpacking feature. The vulnerability is tracked as CVE-2022-49464. The issue was discovered when a KASAN (Kernel Address Sanitizer) report indicated a use-after-free condition in the z_erofs_shifted_transform function (Kernel Git).
The vulnerability occurs because the tail pcluster is not a complete filesystem block when ztailpacking is used. Specifically, the second part of an uncompressed tail pcluster may not be rq->pageofs_out. This leads to incorrect buffer size calculations and potential memory corruption. The issue was introduced by two previous commits: 'erofs: support unaligned data decompression' and 'erofs: support inline data decompression' (Kernel Git).
The vulnerability can result in a buffer overflow condition, which could potentially lead to memory corruption and system instability. The KASAN report showed a use-after-free condition with a read of size 4074 bytes, indicating potential unauthorized memory access (Kernel Git).
The vulnerability requires local access to a system running the affected Linux kernel version with EROFS filesystem support. The issue is triggered when handling compressed data with the ztailpacking feature enabled (Kernel Git).
The issue has been fixed by correcting the buffer size calculations in the z_erofs_shifted_transform function. The fix involves using the correct size (lefthalf) instead of pageofs_out when copying memory in the affected code paths. The patch has been merged into the Linux kernel (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."