CVE-2022-50313

MediumCVSS 5.5/10Last modified Jun 17, 2026

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

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

VendorProductVersions
LinuxLinux>= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f; >= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < 0ab621fcdff1a58ff4de51a8590fa92a0ecd34be; >= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < acc2f40b980c61a9178b72cdedd150b829064997; >= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < b6c8330f5b0f22149957a2e4977fd0f01a9db7cd; >= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < 6235fb899b25fd287d5e42635ff82196395708cc; >= 431339ba90423a038914c6032bfd71f0ba7ef2f2, < 1dd73601a1cba37a0ed5f89a8662c90191df5873
LinuxLinux4.19

References

Timeline

Published
Sep 15, 2025
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2022

CVE-2022-503145.5In the Linux kernel, the following vulnerability has been resolved: nbd: Fix hung when signal interrupts nbd_start_device_ioctl() syzbot rCVE-2022-503157.8In the Linux kernel, the following vulnerability has been resolved: ata: ahci: Match EM_MAX_SLOTS with SATA_PMP_MAX_PORTS UBSAN complains CVE-2022-503165.5In the Linux kernel, the following vulnerability has been resolved: orangefs: Fix kmemleak in orangefs_sysfs_init() When insert and removeCVE-2022-503175.5In the Linux kernel, the following vulnerability has been resolved: drm/bridge: megachips: Fix a null pointer dereference bug When removinCVE-2022-503185.5In the Linux kernel, the following vulnerability has been resolved: perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sboxCVE-2022-503195.5In the Linux kernel, the following vulnerability has been resolved: coresight: trbe: remove cpuhp instance node before remove cpuhp state CVE-2022-503207.8In the Linux kernel, the following vulnerability has been resolved: ACPI: tables: FPDT: Don't call acpi_os_map_memory() on invalid phys addCVE-2022-503215.5In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix potential memory leak in brcmf_netdev_start_xmit() CVE-2022-503225.5In the Linux kernel, the following vulnerability has been resolved: rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe() WitCVE-2022-503235.5In the Linux kernel, the following vulnerability has been resolved: net: do not sense pfmemalloc status in skb_append_pagefrags() skb_appeCVE-2022-503245.5In the Linux kernel, the following vulnerability has been resolved: mtd: maps: pxa2xx-flash: fix memory leak in probe Free 'info' upon remCVE-2022-503257.8In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: avs: Fix potential RX buffer overflow If an event caused