erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 431339ba90423a038914c6032bfd71f0ba7ef2f2 · < 1dd73601a1cba37a0ed5f89a8662c90191df5873| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
As syzbot reported [1], the root cause is that i_size field is a signed type, and negative i_size is also less than EROFS_BLKSIZ. As a consequence, it's handled as fast symlink unexpectedly.
Let's fall back to the generic path to deal with such unusual i_size.
[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com
From the CVE record · Linux
The Linux kernel's EROFS code incorrectly treats a crafted negative i_size as a fast symlink, triggering an order >= MAX_ORDER warning. The input does not specify the access, authentication, or user-interaction conditions needed to trigger it.
Engineers running Linux kernels with EROFS support should check their installations; affected versions are not specified.