CVE-2023-54187 f2fs: fix potential corruption when moving a directory

High 7.8 Published Updated

A flaw in the Linux kernel's F2FS filesystem can cause a crash when moving a directory, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54187?

CVE-2023-54187 is a high-severity denial of service vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix potential corruption when moving a directory

F2FS has the same issue in ext4_rename causing crash revealed by xfstests/generic/707.

See also commit 0813299c586b ("ext4: Fix possible corruption when moving a directory")

Which versions are affected by CVE-2023-54187?

How do I fix CVE-2023-54187?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-54187 being exploited?

There is no known exploitation of CVE-2023-54187 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54187, DEBIAN-CVE-2023-54187, GHSA-3h8m-mvxw-xrmm, ROOT-OS-UBUNTU-2204-CVE-2023-54187, ROOT-OS-UBUNTU-2404-CVE-2023-54187, UBUNTU-CVE-2023-54187.

Is CVE-2023-54187 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free