CVE-2022-50313

erofs: fix order >= MAX_ORDER warning due to crafted negative i_size

State
Published
Severity
Not scored
Published
Sep 15, 2025
Updated
May 11, 2026
Reserved
Sep 15, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291fAffected
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before 0ab621fcdff1a58ff4de51a8590fa92a0ecd34beAffected
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before acc2f40b980c61a9178b72cdedd150b829064997Affected
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before b6c8330f5b0f22149957a2e4977fd0f01a9db7cdAffected
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before 6235fb899b25fd287d5e42635ff82196395708ccAffected
  • 431339ba90423a038914c6032bfd71f0ba7ef2f2 to before 1dd73601a1cba37a0ed5f89a8662c90191df5873Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 5.4.289 through 5.4.*Not affected
  • 5.10.233 through 5.10.*Not affected
  • 5.15.82 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.