In the Linux kernel, the following vulnerability has been resolved:
f2fs: remove WARNON in f2fsisvalidblkaddr
Syzbot triggers two WARNs in f2fsisvalid_blkaddr and _isbitmapvalid. For example, in f2fsisvalidblkaddr, if type is DATAGENERICENHANCE or DATAGENERICENHANCEREAD, it invokes WARNON if blkaddr is not in the right range. The call trace is as follows:
f2fsgetnodeinfo+0x45f/0x1070 readnode_page+0x577/0x1190 __getnodepage.part.0+0x9e/0x10e0 __getnodepage f2fsgetnodepage+0x109/0x180 doreadinode f2fsiget+0x2a5/0x58b0 f2fsfillsuper+0x3b39/0x7ca0
Fix these two WARNs by replacing WARNON with dumpstack.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49318.json",
"cna_assigner": "Linux"
}