CVE-2022-50313

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

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:46 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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/[email protected]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 5.10.2334.19 ≤ v < 5.15.824.19 ≤ v < 5.19.174.19 ≤ v < 5.4.2894.19 ≤ v < 6.0.34.19 ≤ v < 6.15.11 ≤ v < 5.15.825.16 ≤ v < 5.19.175.5 ≤ v < 5.10.2336.0 ≤ v < 6.0.34.19431339ba90423a038914c6032bfd71f0ba7ef2f2
Vendor states this is fixed in 0ab621fcdff1a58ff4de51a8590fa92a0ecd34be (fixed)
Vendor states this is fixed in 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f (fixed)
Vendor states this is fixed in 1dd73601a1cba37a0ed5f89a8662c90191df5873 (fixed)
Vendor states this is fixed in 6235fb899b25fd287d5e42635ff82196395708cc (fixed)
Vendor states this is fixed in acc2f40b980c61a9178b72cdedd150b829064997 (fixed)
Vendor states this is fixed in b6c8330f5b0f22149957a2e4977fd0f01a9db7cd (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 5.10.233 (unaffected)
Vendor states this is fixed in 5.15.82 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 5.4.289 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card