{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50313","id":"CVE-2022-50313","title":"erofs: fix order >= MAX_ORDER warning due to crafted negative i_size","description":"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.","descriptionLong":"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","published":"2025-09-15T14:46:08.357Z","updated":"2026-10-28T02:31:12.014145623Z","reserved":"2025-09-15T14:18:36.813Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f","status":"affected","versionType":"git"},{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"0ab621fcdff1a58ff4de51a8590fa92a0ecd34be","status":"affected","versionType":"git"},{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"acc2f40b980c61a9178b72cdedd150b829064997","status":"affected","versionType":"git"},{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"b6c8330f5b0f22149957a2e4977fd0f01a9db7cd","status":"affected","versionType":"git"},{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"6235fb899b25fd287d5e42635ff82196395708cc","status":"affected","versionType":"git"},{"version":"431339ba90423a038914c6032bfd71f0ba7ef2f2","lessThan":"1dd73601a1cba37a0ed5f89a8662c90191df5873","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","lessThan":"4.19","status":"unaffected","versionType":"semver"},{"version":"5.4.289","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.233","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.82","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50313.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50313","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00166,"epssPercentile":0.05976,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50313","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50313","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50313","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50313","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}