CVE-2022-49318: f2fs: remove WARN_ON in f2fs_is_valid_blkaddr

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

f2fs: remove WARNON in f2fsisvalidblkaddr

Syzbot triggers two WARNs in f2fsisvalidblkaddr 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 readnodepage+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.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel<5.4.198
Linux Linux kernel>=5.5<5.10.122
Linux Linux kernel>=5.11<5.15.47
Linux Linux kernel>=5.16<5.17.15
Linux Linux kernel>=5.18<5.18.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the Linux kernel f2fs codepath, remove the WARN_ON usage in f2fs_is_valid_blkaddr (for DATA_GENERIC_ENHANCE and DATA_GENERIC_ENHANCE_READ when blkaddr is out of the expected range) and replace it with dump_stack.

    Linux kernel (f2fs) WARN_ON in f2fs_is_valid_blkaddr = replace with dump_stack

Event History

Feb 26, 2025
CVE Published
via MITRE·02:10 AM
Data Sourced
via MITRE·02:10 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-49318?

CVE-2022-49318 has a medium severity rating due to potential impacts on system stability.

2

How do I fix CVE-2022-49318?

To fix CVE-2022-49318, update the Linux kernel to at least version 5.4.198 or one of the versions between 5.5 and 5.18.4.

3

What versions of the Linux kernel are affected by CVE-2022-49318?

CVE-2022-49318 affects multiple versions of the Linux kernel, specifically those below version 5.4.198 and between versions 5.5 and 5.18.4.

4

What is the nature of CVE-2022-49318?

CVE-2022-49318 involves the removal of a WARN_ON statement related to f2fs's block address validation, which could lead to unexpected behavior.

5

Is CVE-2022-49318 exploitable?

While CVE-2022-49318 is primarily a warning removal, it could indirectly affect the integrity of data management in f2fs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203