{"id":"CVE-2022-50313","aliases":["CVE-2022-50313"],"related":[],"kind":"vulnerability","state":"published","title":"erofs: fix order >= MAX_ORDER warning due to crafted negative i_size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix order >= 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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix order >= 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","source":"cvelist"}],"published":"2025-09-15T14:46:08.357Z","modified":"2026-06-17T05:23:12.797Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f","status":"affected"},{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"0ab621fcdff1a58ff4de51a8590fa92a0ecd34be","status":"affected"},{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"acc2f40b980c61a9178b72cdedd150b829064997","status":"affected"},{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"b6c8330f5b0f22149957a2e4977fd0f01a9db7cd","status":"affected"},{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"6235fb899b25fd287d5e42635ff82196395708cc","status":"affected"},{"type":"git","introduced":"431339ba90423a038914c6032bfd71f0ba7ef2f2","fixed":"1dd73601a1cba37a0ed5f89a8662c90191df5873","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.4.289","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.233","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.82","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"5.4.289"},{"status":"affected","introduced":"5.5","fixed":"5.10.233"},{"status":"affected","introduced":"5.11","fixed":"5.15.82"},{"status":"affected","introduced":"5.16","fixed":"5.19.17"},{"status":"affected","introduced":"6.0","fixed":"6.0.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50313","url":"https://www.cve.org/CVERecord?id=CVE-2022-50313","licence":"CVE Terms of Use","modified":"2026-05-11T19:16:53.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50313","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50313","licence":"Public domain","modified":"2026-06-17T05:23:12.797Z"}],"updatedAt":"2026-11-25T22:58:21.160Z","epss":{"score":0.00166,"percentile":0.06146,"date":"2026-12-02T12:00:21.000Z"}}