CVE-2022-49317: f2fs: avoid infinite loop to flush node pages

Published Feb 26, 2025
·
Updated

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

f2fs: avoid infinite loop to flush node pages

xfstests/generic/475 can give EIO all the time which give an infinite loop to flush node page like below. Let's avoid it.

[16418.518551] Call Trace: [16418.518553] ? dmsubmitbio+0x48/0x400 [16418.518574] ? submitbiochecks+0x1ac/0x5a0 [16418.525207] submitbio+0x1a9/0x230 [16418.525210] ? kmemcachealloc+0x29e/0x3c0 [16418.525223] submitbionoacct+0xa8/0x2b0 [16418.525226] submitbio+0x4d/0x130 [16418.525238] submitbio+0x49/0x310 [f2fs] [16418.525339] ? bioaddpage+0x6a/0x90 [16418.525344] f2fssubmitpagebio+0x134/0x1f0 [f2fs] [16418.525365] readnodepage+0x125/0x1b0 [f2fs] [16418.525388] getnodepage.part.0+0x58/0x3f0 [f2fs] [16418.525409] getnodepage+0x2f/0x60 [f2fs] [16418.525431] f2fsgetdnodeofdata+0x423/0x860 [f2fs] [16418.525452] ? asmsysvecapictimerinterrupt+0x12/0x20 [16418.525458] ? modmemcgstate.part.0+0x2a/0x30 [16418.525465] ? modmemcglruvecstate+0x27/0x40 [16418.525467] ? xasetmark+0x57/0x70 [16418.525472] f2fsdowritedatapage+0x10e/0x7b0 [f2fs] [16418.525493] f2fswritesingledatapage+0x555/0x830 [f2fs] [16418.525514] ? sysvecapictimerinterrupt+0x4e/0x90 [16418.525518] ? asmsysvecapictimerinterrupt+0x12/0x20 [16418.525523] f2fswritecachepages+0x303/0x880 [f2fs] [16418.525545] ? blkflushpluglist+0x47/0x100 [16418.525548] f2fswritedatapages+0xfd/0x320 [f2fs] [16418.525569] dowritepages+0xd5/0x210 [16418.525648] filemapfdatawritewbc+0x7d/0xc0 [16418.525655] filemapfdatawrite+0x50/0x70 [16418.525658] f2fssyncdirtyinodes+0xa4/0x230 [f2fs] [16418.525679] f2fswritecheckpoint+0x16d/0x1720 [f2fs] [16418.525699] ? ttwudowakeup+0x1c/0x160 [16418.525709] ? ttwudoactivate+0x6d/0xd0 [16418.525711] ? waitforcommon+0x11d/0x150 [16418.525715] killf2fssuper+0xca/0x100 [f2fs] [16418.525733] deactivatelockedsuper+0x3b/0xb0 [16418.525739] deactivatesuper+0x40/0x50 [16418.525741] cleanupmnt+0x139/0x190 [16418.525747] cleanupmnt+0x12/0x20 [16418.525749] taskworkrun+0x6d/0xa0 [16418.525765] exittousermodeprepare+0x1ad/0x1b0 [16418.525771] syscallexittousermode+0x27/0x50 [16418.525774] dosyscall64+0x48/0xc0 [16418.525776] entrySYSCALL64afterhwframe+0x44/0xae

Affected Software

3 affected components
Linux Linux kernel<5.18.4
Linux Kernel
Linux f2fs

Event History

Feb 26, 2025
CVE Published
via MITRE·02:10 AM
Data Sourced
via MITRE·02:10 AM
Description
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-49317?

The severity of CVE-2022-49317 is considered high due to the potential for an infinite loop affecting the flushing of node pages in the f2fs filesystem.

2

How do I fix CVE-2022-49317?

To fix CVE-2022-49317, you should upgrade to a patched version of the Linux Kernel that addresses this vulnerability.

3

What software is affected by CVE-2022-49317?

CVE-2022-49317 affects the Linux Kernel and specifically impacts the f2fs filesystem.

4

What are the symptoms of CVE-2022-49317?

The main symptom of CVE-2022-49317 is the occurrence of infinite loops when flushing node pages, which can lead to system hang or unresponsiveness.

5

Is CVE-2022-49317 exploitable remotely?

CVE-2022-49317 is not considered to be remotely exploitable as it primarily affects local file operations in the f2fs filesystem.

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