CVE-2023-52444

f2fs: fix to avoid dirent corruption

7.8 high EPSS 0.25%

Published 22 Feb 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2023-52444

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52444 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.8% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 26 Feb 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before 02160112e6d45c2610b049df6eb693d7a2e57b46
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before 5624a3c1b1ebc8991318e1cce2aa719542991024
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before 6f866885e147d33efc497f1095f35b2ee5ec7310
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before f100ba617d8be6c98a68f3744ef7617082975b77
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before f0145860c20be6bae6785c7a2249577674702ac7
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before d3c0b49aaa12a61d560528f5d605029ab57f0728
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before 2fb4867f4405aea8c0519d7d188207f232a57862
affected from 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, before 53edb549565f55ccd0bdf43be3d66ce4c2d48b28
Other versions: unaffected
Linux
affected 4.2
unaffected before 4.2
unaffected from 4.19.306 up to and including 4.19.*
unaffected from 5.4.268 up to and including 5.4.*
unaffected from 5.10.209 up to and including 5.10.*
unaffected from 5.15.148 up to and including 5.15.*
unaffected from 6.1.75 up to and including 6.1.*
unaffected from 6.6.14 up to and including 6.6.*
unaffected from 6.7.2 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52444 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52444

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-52444
trivy image --scanners vuln IMAGE | grep CVE-2023-52444

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-52444 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.