Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-54068— f2fs: compress: fix to call f2fs_wait_on_page_writeback() in f2fs_write_raw_pages()

CVSS 7.8 · High EPSS 0.15% · P5

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 14

VendorProductVersion RangeStatus
LinuxLinux4c8ff7095bef64fc47e996a938f7d57f9e077da3< a8226a45b2a9ce83ba7a167a387a00fecc319e71affected
4c8ff7095bef64fc47e996a938f7d57f9e077da3< 169134da419cb8ffbe3b0743bc24573e16952ea9affected
4c8ff7095bef64fc47e996a938f7d57f9e077da3< 6604df2a9d07ba8f8fb1ac14046c2c83776faa4faffected
4c8ff7095bef64fc47e996a938f7d57f9e077da3< 9940877c4fe752923a53f0f7372f2f152b6eccf0affected
4c8ff7095bef64fc47e996a938f7d57f9e077da3< ad31eed06c3b4d63b2d38322a271d4009aee4bb3affected
4c8ff7095bef64fc47e996a938f7d57f9e077da3< babedcbac164cec970872b8097401ca913a80e61affected
5.6affected
< 5.6unaffected
… +6 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2023-54068

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
f2fs: compress: fix to call f2fs_wait_on_page_writeback() in f2fs_write_raw_pages()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix to call f2fs_wait_on_page_writeback() in f2fs_write_raw_pages() BUG_ON() will be triggered when writing files concurrently, because the same page is writtenback multiple times. 1597 void folio_end_writeback(struct folio *folio) 1598 { ...... 1618 if (!__folio_end_writeback(folio)) 1619 BUG(); ...... 1625 } kernel BUG at mm/filemap.c:1619! Call Trace: <TASK> f2fs_write_end_io+0x1a0/0x370 blk_update_request+0x6c/0x410 blk_mq_end_request+0x15/0x130 blk_complete_reqs+0x3c/0x50 __do_softirq+0xb8/0x29b ? sort_range+0x20/0x20 run_ksoftirqd+0x19/0x20 smpboot_thread_fn+0x10b/0x1d0 kthread+0xde/0x110 ? kthread_complete_and_exit+0x20/0x20 ret_from_fork+0x22/0x30 </TASK> Below is the concurrency scenario: [Process A] [Process B] [Process C] f2fs_write_raw_pages() - redirty_page_for_writepage() - unlock page() f2fs_do_write_data_page() - lock_page() - clear_page_dirty_for_io() - set_page_writeback() [1st writeback] ..... - unlock page() generic_perform_write() - f2fs_write_begin() - wait_for_stable_page() - f2fs_write_end() - set_page_dirty() - lock_page() - f2fs_do_write_data_page() - set_page_writeback() [2st writeback] This problem was introduced by the previous commit 7377e853967b ("f2fs: compress: fix potential deadlock of compress file"). All pagelocks were released in f2fs_write_raw_pages(), but whether the page was in the writeback state was ignored in the subsequent writing process. Let's fix it by waiting for the page to writeback before writing.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未等待页面回写完成,可能导致同一页面多次回写并触发BUG_ON。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 4c8ff7095bef64fc47e996a938f7d57f9e077da3 ~ a8226a45b2a9ce83ba7a167a387a00fecc319e71 -
LinuxLinux 5.6 -

II. Public POCs for CVE-2023-54068

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-54068

登录查看更多情报信息。

Other References for CVE-2023-54068 (4)

Same Patch Batch · Linux · 2025-12-24 · 322 CVEs total

CVE-2025-687419.8 CRITICALscsi: qla2xxx: Fix improper freeing of purex item
CVE-2023-538679.8 CRITICALceph: fix potential use-after-free bug when trimming caps
CVE-2025-687269.8 CRITICALcrypto: aead - Fix reqsize handling
CVE-2025-687459.8 CRITICALscsi: qla2xxx: Clear cmds after chip reset
CVE-2023-540949.8 CRITICALnet: prevent skb corruption on frag list segmentation
CVE-2023-540909.8 CRITICALixgbe: Fix panic during XDP_TX with > 64 CPUs
CVE-2022-507179.8 CRITICALnvmet-tcp: add bounds check on Transfer Tag
CVE-2023-540769.8 CRITICALsmb: client: fix missed ses refcounting
CVE-2025-683599.8 CRITICALbtrfs: fix double free of qgroup record after failure to add delayed ref head
CVE-2023-539969.3 CRITICALx86/sev: Make enc_dec_hypercall() accept a size instead of npages
CVE-2023-540718.8 HIGHwifi: rtw88: use work to update rate to avoid RCU warning
CVE-2023-541208.8 HIGHBluetooth: Fix race condition in hidp_session_thread
CVE-2023-540438.8 HIGHiommufd: Do not add the same hwpt to the ioas->hwpt_list twice
CVE-2022-507328.8 HIGHstaging: rtl8192u: Fix use after free in ieee80211_rx()
CVE-2023-540928.8 HIGHKVM: s390: pv: fix index value of replaced ASCE
CVE-2023-540608.8 HIGHiommufd: Set end correctly when doing batch carry
CVE-2023-540408.8 HIGHice: fix wrong fallback logic for FDIR
CVE-2025-687368.8 HIGHlandlock: Fix handling of disconnected directories
CVE-2023-539868.6 HIGHmips: bmips: BCM6358: disable RAC flush for TP1
CVE-2022-507468.4 HIGHerofs: validate the extent length for uncompressed pclusters

Showing top 20 of 322 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-54068

No comments yet


Leave a comment