erofs: validate the extent length for uncompressed pclusters
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.0.166.1.26.2In the Linux kernel, the following vulnerability has been resolved:
erofs: validate the extent length for uncompressed pclusters
syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2
The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length.
The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity.
From the CVE record · Linux
The Linux kernel’s EROFS code did not validate the extent length of uncompressed pclusters. A fuzzed EROFS image with a logical length longer than its physical length triggered a KASAN use-after-free report. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with EROFS support should check their versions; affected versions are not specified.