CVE-2023-52444

f2fs: fix to avoid dirent corruption

HIGH
7.8
CVSS Score
Published: February 22, 2024 at 04:21 PM UTC
Updated: October 15, 2026 at 01:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid dirent corruption As Al reported in link[1]: f2fs_rename() ... if (old_dir != new_dir && !whiteout) f2fs_set_link(old_inode, old_dir_entry, old_dir_page, new_dir); else f2fs_put_page(old_dir_page, 0); You want correct inumber in the ".." link. And cross-directory rename does move the source to new parent, even if you'd been asked to leave a whiteout in the old place. [1] https://lore.kernel.org/all/20231017055040.GN800259@ZenIV/ With below testcase, it may cause dirent corruption, due to it missed to call f2fs_set_link() to update ".." link to new directory. - mkdir -p dir/foo - renameat2 -w dir/foo bar [ASSERT] (__chk_dots_dentries:1421) --> Bad inode number[0x4] for '..', parent parent ino is [0x3] [FSCK] other corrupted bugs [Fail]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.2.0 ≤ v < 4.19.3064.20 ≤ v < 5.4.2685.11.0 ≤ v < 5.15.1485.16.0 ≤ v < 6.1.755.5.0 ≤ v < 5.10.2096.2.0 ≤ v < 6.6.146.7.0 ≤ v < 6.7.24.27e01e7ad746bc8198a8b46163ddc73a1c7d22339
Vendor states this is fixed in 02160112e6d45c2610b049df6eb693d7a2e57b46 (fixed)
Vendor states this is fixed in 2fb4867f4405aea8c0519d7d188207f232a57862 (fixed)
Vendor states this is fixed in 53edb549565f55ccd0bdf43be3d66ce4c2d48b28 (fixed)
Vendor states this is fixed in 5624a3c1b1ebc8991318e1cce2aa719542991024 (fixed)
Vendor states this is fixed in 6f866885e147d33efc497f1095f35b2ee5ec7310 (fixed)
Vendor states this is fixed in d3c0b49aaa12a61d560528f5d605029ab57f0728 (fixed)
Vendor states this is fixed in f0145860c20be6bae6785c7a2249577674702ac7 (fixed)
Vendor states this is fixed in f100ba617d8be6c98a68f3744ef7617082975b77 (fixed)
Vendor states this is fixed in 4.19.306 (unaffected)
Vendor states this is fixed in 4.2 (unaffected)
Vendor states this is fixed in 5.10.209 (unaffected)
Vendor states this is fixed in 5.15.148 (unaffected)
Vendor states this is fixed in 5.4.268 (unaffected)
Vendor states this is fixed in 6.1.75 (unaffected)
Vendor states this is fixed in 6.6.14 (unaffected)
Vendor states this is fixed in 6.7.2 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02160112e6d45c2610b049df6eb693d7a2e57b46
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2fb4867f4405aea8c0519d7d188207f232a57862
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/53edb549565f55ccd0bdf43be3d66ce4c2d48b28
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5624a3c1b1ebc8991318e1cce2aa719542991024
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6f866885e147d33efc497f1095f35b2ee5ec7310
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d3c0b49aaa12a61d560528f5d605029ab57f0728
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f0145860c20be6bae6785c7a2249577674702ac7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f100ba617d8be6c98a68f3744ef7617082975b77

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-119

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card