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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-53311— nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput

CVSS 7.8 · High EPSS 0.16% · P6

Possible ATT&CK Techniques 1AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinux0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< 11afd67f1b3c28eb216e50a3ca8dbcb69bb71793affected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< a3c3b4cbf9b8554120fb230e6516e980c6277487affected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< d2c539c216cce74837a9cf5804eb205939b82227affected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< 37207240872456fbab44a110bde6640445233963affected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< 3645510cf926e6af2f4d44899370d7e5331c93bdaffected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< 7532ff6edbf5242376b24a95a2fefb59bb653e5aaffected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< 5828d5f5dc877dcfdd7b23102e978e2ecfd86d82affected
0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8< f8654743a0e6909dc634cbfad6db6816f10f3399affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2023-53311

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
nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). Previously, nilfs_evict_inode() could cause use-after-free read for nilfs_root if inodes are left in "garbage_list" and released by nilfs_dispose_list at the end of nilfs_detach_log_writer(), and this bug was fixed by commit 9b5a04ac3ad9 ("nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()"). However, it turned out that there is another possibility of UAF in the call path where mark_inode_dirty_sync() is called from iput(): nilfs_detach_log_writer() nilfs_dispose_list() iput() mark_inode_dirty_sync() __mark_inode_dirty() nilfs_dirty_inode() __nilfs_mark_inode_dirty() nilfs_load_inode_block() --> causes UAF of nilfs_root struct This can happen after commit 0ae45f63d4ef ("vfs: add support for a lazytime mount option"), which changed iput() to call mark_inode_dirty_sync() on its final reference if i_state has I_DIRTY_TIME flag and i_nlink is non-zero. This issue appears after commit 28a65b49eb53 ("nilfs2: do not write dirty data after degenerating to read-only") when using the syzbot reproducer, but the issue has potentially existed before. Fix this issue by adding a "purging flag" to the nilfs structure, setting that flag while disposing the "garbage_list" and checking it in __nilfs_mark_inode_dirty(). Unlike commit 9b5a04ac3ad9 ("nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()"), this patch does not rely on ns_writer to determine whether to skip operations, so as not to break recovery on mount. The nilfs_salvage_orphan_logs routine dirties the buffer of salvaged data before attaching the log writer, so changing __nilfs_mark_inode_dirty() to skip the operation when ns_writer is NULL will cause recovery write to fail. The purpose of using the cleanup-only flag is to allow for narrowing of such conditions.
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存在安全漏洞,该漏洞源于nilfs2文件系统中nilfs_root结构在iput操作期间被释放后重用,可能导致内存损坏。
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 0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8 ~ 11afd67f1b3c28eb216e50a3ca8dbcb69bb71793 -
LinuxLinux 4.0 -

II. Public POCs for CVE-2023-53311

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-53311

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-16 · 115 CVEs total

CVE-2022-503509.8 CRITICALscsi: target: iscsi: Fix a race condition between login_work and the login thread
CVE-2023-532978.8 HIGHBluetooth: L2CAP: fix "bad unlock balance" in l2cap_disconnect_rsp
CVE-2023-533158.8 HIGHwifi: ath11k: Fix SKB corruption in REO destination ring
CVE-2023-533058.8 HIGHBluetooth: L2CAP: Fix use-after-free
CVE-2023-533228.8 HIGHscsi: qla2xxx: Wait for io return on terminate rport
CVE-2025-398068.8 HIGHHID: multitouch: fix slab out-of-bounds access in mt_report_fixup()
CVE-2025-398268.8 HIGHnet: rose: convert 'use' field to refcount_t
CVE-2025-398278.8 HIGHnet: rose: include node references in rose_neigh refcount
CVE-2025-398098.4 HIGHHID: intel-thc-hid: intel-quicki2c: Fix ACPI dsd ICRS/ISUB length
CVE-2023-533338.2 HIGHnetfilter: conntrack: dccp: copy entire header to stack buffer, not just basic one
CVE-2022-503417.8 HIGHcifs: fix oops during encryption
CVE-2025-398107.8 HIGHbnxt_en: Fix memory corruption when FW resources change during ifdown
CVE-2025-398157.8 HIGHRISC-V: KVM: fix stack overrun when loading vlenb
CVE-2023-532867.8 HIGHRDMA/mlx5: Return the firmware result upon destroying QP/RQ
CVE-2025-398187.8 HIGHHID: intel-thc-hid: intel-thc: Fix incorrect pointer arithmetic in I2C regs save
CVE-2023-533147.8 HIGHfbdev/ep93xx-fb: Do not assign to struct fb_info.dev
CVE-2022-503397.8 HIGHBluetooth: avoid hci_dev_test_and_set_flag() in mgmt_init_hdev()
CVE-2023-532637.8 HIGHdrm/nouveau/disp: fix use-after-free in error handling of nouveau_connector_create
CVE-2023-532747.8 HIGHclk: mediatek: mt8183: Add back SSPM related clocks
CVE-2023-533317.8 HIGHpstore/ram: Check start of empty przs during init

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

IV. Related Vulnerabilities

V. Comments for CVE-2023-53311

No comments yet


Leave a comment