# CVE-2022-50313: erofs: fix order >= MAX_ORDER warning due to crafted negative i_size

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-15T14:46:08.357Z
- Modified: 2026-06-17T05:23:12.797Z
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f; from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before 0ab621fcdff1a58ff4de51a8590fa92a0ecd34be; from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before acc2f40b980c61a9178b72cdedd150b829064997; from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before b6c8330f5b0f22149957a2e4977fd0f01a9db7cd; from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before 6235fb899b25fd287d5e42635ff82196395708cc; from 431339ba90423a038914c6032bfd71f0ba7ef2f2 before 1dd73601a1cba37a0ed5f89a8662c90191df5873; 4.19 (not affected: before 4.19; from 5.4.289 up to 5.4.*; from 5.10.233 up to 5.10.*; from 5.15.82 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 4.19 before 5.4.289; from 5.5 before 5.10.233; from 5.11 before 5.15.82; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## References

- <https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f> (patch)
- <https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be> (patch)
- <https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997> (patch)
- <https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd> (patch)
- <https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc> (patch)
- <https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873> (patch)

## Sources

- CVE List: [CVE-2022-50313](https://www.cve.org/CVERecord?id=CVE-2022-50313), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50313](https://nvd.nist.gov/vuln/detail/CVE-2022-50313), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50313 · Whole record: https://cve.day/CVE-2022-50313.json · Rebuilt by cve.day 2026-11-25T22:58:21.160Z
