{"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-05-18T05:56:59.825637545Z","published":"2025-09-15T14:46:08.357Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50313.json","cna_assigner":"Linux"},"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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50313.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"5.4.289"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.233"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.82"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.19.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.20.0"},{"fixed":"6.0.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50313.json"}}],"schema_version":"1.7.5"}