erofs: fix interlaced ztailpacking pclusters
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fdffc091e6f94602558bba712b51bc16f79fd6d5 · < 862427ebb81d1f6abbf74d799790e1694b37b187| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix interlaced ztailpacking pclusters
On-disk sizes of interlaced pclusters should be block-aligned, and ztailpacking interlaced pclusters should be invalid at all.
Currently, mkfs.erofs won't generate any interlaced pcluster with ztailpacking enabled, so this doesn't affect any existing valid filesystems.
However, crafted images can contain invalid interlaced ztailpacking pclusters, resulting in an out-of-bounds read from a kmap'd page and copying irrelevant kernel memory into userspace-visible page cache.
From the CVE record · Linux
The Linux kernel's erofs code can read beyond a mapped page when processing a crafted filesystem image containing an invalid interlaced ztailpacking pcluster. This can copy unrelated kernel memory into the userspace-visible page cache. The input does not specify whether authentication or user interaction is required; valid filesystems are unaffected.
Engineers running Linux kernels that process erofs filesystem images should check whether their kernel is affected; affected versions are not specified.