{"id":"CVE-2022-49747","published":"2025-03-27T16:42:57Z","modified":"2026-05-11T19:05:58Z","title":"erofs/zmap.c: Fix incorrect offset calculation","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->length 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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00192,"percentile":0.0873,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2144859229c1e74f52d3ea067338d314a83a8afb","tags":[]},{"url":"https://git.kernel.org/stable/c/9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c","tags":[]},{"url":"https://git.kernel.org/stable/c/6acd87d50998ef0afafc441613aeaf5a8f5c9eff","tags":[]}],"priority":{"score":1.7,"factors":[{"name":"EPSS percentile","points":1.75}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350, < 2144859229c1e74f52d3ea067338d314a83a8afb",">= eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350, < 9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c",">= eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350, < 6acd87d50998ef0afafc441613aeaf5a8f5c9eff"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2022-55176","exploited":false,"provenance":"source"}}