erofs: fix interlaced plain identification for encoded extents
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.166.19.67.0In the Linux kernel, the following vulnerability has been resolved:
erofs: fix interlaced plain identification for encoded extents
Only plain data whose start position and on-disk physical length are both aligned to the block size should be classified as interlaced plain extents. Otherwise, it must be treated as shifted plain extents.
This issue was found by syzbot using a crafted compressed image containing plain extents with unaligned physical lengths, which can cause OOB read in z_erofs_transform_plain().
From the CVE record · Linux
The Linux kernel’s EROFS code can misclassify plain extents with unaligned physical lengths in a crafted compressed image. Processing that image can cause an out-of-bounds read in z_erofs_transform_plain(); the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with EROFS support should check whether their kernel includes this fix; affected versions are not specified.