Bug 2395304 (CVE-2022-50313) - CVE-2022-50313 kernel: erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
Summary: CVE-2022-50313 kernel: erofs: fix order >= MAX_ORDER warning due to crafted n...
Keywords:
Status: NEW
Alias: CVE-2022-50313
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:06 UTC by OSIDB Bzimport
Modified: 2025-09-26 13:07 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:06:27 UTC
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


Note You need to log in before you can comment on or make changes to this bug.