{"id":"CVE-2022-49747","summary":"erofs/zmap.c: Fix incorrect offset calculation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs/zmap.c: Fix incorrect offset calculation\n\nEffective offset to add to length was being incorrectly calculated,\nwhich resulted in iomap-\u003elength being set to 0, triggering a WARN_ON\nin iomap_iter_done().\n\nFix that, and describe it in comments.\n\nThis was reported as a crash by syzbot under an issue about a warning\nencountered in iomap_iter_done(), but unrelated to erofs.\n\nC reproducer: https://syzkaller.appspot.com/text?tag=ReproC&x=1037a6b2880000\nKernel config: https://syzkaller.appspot.com/text?tag=KernelConfig&x=e2021a61197ebe02\nDashboard link: https://syzkaller.appspot.com/bug?extid=a8e049cd3abd342936b6","modified":"2026-03-20T11:47:11.659795Z","published":"2025-03-27T16:42:57.094Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49747.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2144859229c1e74f52d3ea067338d314a83a8afb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6acd87d50998ef0afafc441613aeaf5a8f5c9eff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49747.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49747"},{"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":"eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350"},{"fixed":"2144859229c1e74f52d3ea067338d314a83a8afb"},{"fixed":"9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c"},{"fixed":"6acd87d50998ef0afafc441613aeaf5a8f5c9eff"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49747.json"}}],"schema_version":"1.7.5"}