CVE-2022-49747

published 27 Mar 2025 · updated 11 May 2026

erofs/zmap.c: Fix incorrect offset calculation

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2144859229c1e74f52d3ea067338d314a83a8afb, Kernel 6acd87d50998ef0afafc441613aeaf5a8f5c9eff and Kernel 9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c.

In the Linux kernel, the following vulnerability has been resolved: erofs/zmap.c: Fix incorrect offset calculation Effective offset to add to length was being incorrectly calculated, which resulted in iomap->length being set to 0, triggering a WARN_ON in iomap_iter_done(). Fix that, and describe it in comments. This was reported as a crash by syzbot under an issue about a warning encountered in iomap_iter_done(), but unrelated to erofs. C reproducer: https://syzkaller.appspot.com/text?tag=ReproC&x=1037a6b2880000 Kernel config: https://syzkaller.appspot.com/text?tag=KernelConfig&x=e2021a61197ebe02 Dashboard link: https://syzkaller.appspot.com/bug?extid=a8e049cd3abd342936b6

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350 <2144859229c1e74f52d3ea067338d314a83a8afb, >=eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350 <6acd87d50998ef0afafc441613aeaf5a8f5c9eff, >=eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350 <9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c2144859229c1e74f52d3ea067338d314a83a8afb, 6acd87d50998ef0afafc441613aeaf5a8f5c9eff, 9f31d8c889d9a4e47bfcc6c4537d0c9f89fe582c

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49747 severity on Zeptric[![CVE-2022-49747](https://zeptric.io/badge/cve/CVE-2022-49747.svg)](https://zeptric.io/cve/CVE-2022-49747)