{"id":"CVE-2022-50313","summary":"erofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size\n\nAs syzbot reported [1], the root cause is that i_size field is a\nsigned type, and negative i_size is also less than EROFS_BLKSIZ.\nAs a consequence, it's handled as fast symlink unexpectedly.\n\nLet's fall back to the generic path to deal with such unusual i_size.\n\n[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com","modified":"2026-04-02T08:28:24.658261Z","published":"2025-09-15T14:46:08.357Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50313.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50313.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50313"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2"},{"fixed":"17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f"},{"fixed":"0ab621fcdff1a58ff4de51a8590fa92a0ecd34be"},{"fixed":"acc2f40b980c61a9178b72cdedd150b829064997"},{"fixed":"b6c8330f5b0f22149957a2e4977fd0f01a9db7cd"},{"fixed":"6235fb899b25fd287d5e42635ff82196395708cc"},{"fixed":"1dd73601a1cba37a0ed5f89a8662c90191df5873"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50313.json"}}],"schema_version":"1.7.5"}