{"id":70470,"date":"2025-09-18T20:32:13","date_gmt":"2025-09-18T17:02:13","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2023-53447-f2fs-dont-reset-unchangable-mount-option-in-f2fs_remount\/"},"modified":"2025-09-18T20:32:13","modified_gmt":"2025-09-18T17:02:13","slug":"cve-2023-53447-f2fs-dont-reset-unchangable-mount-option-in-f2fs_remount","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2023-53447-f2fs-dont-reset-unchangable-mount-option-in-f2fs_remount\/","title":{"rendered":"CVE-2023-53447 &#8211; f2fs: don&#8217;t reset unchangable mount option in f2fs_remount()"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2023-53447<br \/>\n<br \/>\n<strong>Published : <\/strong> Sept. 18, 2025, 4:15 p.m. | 45\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>f2fs: don&#8217;t reset unchangable mount option in f2fs_remount()<\/p>\n<p>syzbot reports a bug as below:<\/p>\n<p>general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 [#1] PREEMPT SMP KASAN<br \/>\nRIP: 0010:__lock_acquire+0x69\/0x2000 kernel\/locking\/lockdep.c:4942<br \/>\nCall Trace:<br \/>\n lock_acquire+0x1e3\/0x520 kernel\/locking\/lockdep.c:5691<br \/>\n __raw_write_lock include\/linux\/rwlock_api_smp.h:209 [inline]\n _raw_write_lock+0x2e\/0x40 kernel\/locking\/spinlock.c:300<br \/>\n __drop_extent_tree+0x3ac\/0x660 fs\/f2fs\/extent_cache.c:1100<br \/>\n f2fs_drop_extent_tree+0x17\/0x30 fs\/f2fs\/extent_cache.c:1116<br \/>\n f2fs_insert_range+0x2d5\/0x3c0 fs\/f2fs\/file.c:1664<br \/>\n f2fs_fallocate+0x4e4\/0x6d0 fs\/f2fs\/file.c:1838<br \/>\n vfs_fallocate+0x54b\/0x6b0 fs\/open.c:324<br \/>\n ksys_fallocate fs\/open.c:347 [inline]\n __do_sys_fallocate fs\/open.c:355 [inline]\n __se_sys_fallocate fs\/open.c:353 [inline]\n __x64_sys_fallocate+0xbd\/0x100 fs\/open.c:353<br \/>\n do_syscall_x64 arch\/x86\/entry\/common.c:50 [inline]\n do_syscall_64+0x41\/0xc0 arch\/x86\/entry\/common.c:80<br \/>\n entry_SYSCALL_64_after_hwframe+0x63\/0xcd<\/p>\n<p>The root cause is race condition as below:<br \/>\n&#8211; since it tries to remount rw filesystem, so that do_remount won&#8217;t<br \/>\ncall sb_prepare_remount_readonly to block fallocate, there may be race<br \/>\ncondition in between remount and fallocate.<br \/>\n&#8211; in f2fs_remount(), default_options() will reset mount option to default<br \/>\none, and then update it based on result of parse_options(), so there is<br \/>\na hole which race condition can happen.<\/p>\n<p>Thread A\t\t\tThread B<br \/>\n&#8211; f2fs_fill_super<br \/>\n &#8211; parse_options<br \/>\n  &#8211; clear_opt(READ_EXTENT_CACHE)<\/p>\n<p>&#8211; f2fs_remount<br \/>\n &#8211; default_options<br \/>\n  &#8211; set_opt(READ_EXTENT_CACHE)<br \/>\n\t\t\t\t&#8211; f2fs_fallocate<br \/>\n\t\t\t\t &#8211; f2fs_insert_range<br \/>\n\t\t\t\t  &#8211; f2fs_drop_extent_tree<br \/>\n\t\t\t\t   &#8211; __drop_extent_tree<br \/>\n\t\t\t\t    &#8211; __may_extent_tree<br \/>\n\t\t\t\t     &#8211; test_opt(READ_EXTENT_CACHE) return true<br \/>\n\t\t\t\t    &#8211; write_lock(&amp;et-&gt;lock) access NULL pointer<br \/>\n &#8211; parse_options<br \/>\n  &#8211; clear_opt(READ_EXTENT_CACHE)<br \/>\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2023-53447 Published : Sept. 18, 2025, 4:15 p.m. | 45\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: f2fs: don&#8217;t reset unchangable mount option in f2fs_remount() syzbot reports a bug as below: general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 [#1] PREEMPT SMP KASAN RIP: 0010:__lock_acquire+0x69\/0x2000 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-70470","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=70470"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/70470\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=70470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=70470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=70470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}