CVE-2022-49361: f2fs: fix to do sanity check for inline inode

Published Feb 26, 2025
·
Updated

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

f2fs: fix to do sanity check for inline inode

Yanming reported a kernel bug in Bugzilla kernel [1], which can be reproduced. The bug message is:

The kernel message is shown below:

kernel BUG at fs/inode.c:611! Call Trace: evict+0x282/0x4e0 dentrykill+0x2b2/0x4d0 dput+0x2dd/0x720 dorenameat2+0x596/0x970 x64sysrename+0x78/0x90 dosyscall64+0x3b/0x90

[1] https://bugzilla.kernel.org/showbug.cgi?id=215895

The bug is due to fuzzed inode has both inlinedata and encrypted flags. During f2fsevictinode(), as the inode was deleted by rename(), it will cause inline data conversion due to conflicting flags. The page cache will be polluted and the panic will be triggered in clearinode().

Try fixing the bug by doing more sanity checks for inline data inode in sanitycheckinode().

Affected Software

5 affected components
Linux Kernel
Linux Linux kernel>=3.8<5.10.121
Linux Linux kernel>=5.11<5.15.46
Linux Linux kernel>=5.16<5.17.14
Linux Linux kernel>=5.18<5.18.3

Event History

Feb 26, 2025
CVE Published
via MITRE·02:11 AM
Data Sourced
via MITRE·02:11 AM
Description
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49361?

CVE-2022-49361 has a severity rating that is determined by its impact on system stability and data integrity, though specific numerical values will depend on the assessment at the time.

2

How do I fix CVE-2022-49361?

To fix CVE-2022-49361, you should update your Linux kernel to a version that includes the patched code addressing the vulnerability.

3

What systems are affected by CVE-2022-49361?

CVE-2022-49361 affects multiple versions of the Linux kernel, specifically those between 3.8 to 5.10.121, 5.11 to 5.15.46, 5.16 to 5.17.14, and 5.18 to 5.18.3.

4

Who reported CVE-2022-49361?

CVE-2022-49361 was reported by a researcher named Yanming, highlighting a kernel bug in the f2fs module.

5

What impact does CVE-2022-49361 have on systems?

CVE-2022-49361 can lead to kernel panic or a system crash due to the failure of sanity checks for inline inodes.

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