CVE-2025-40077 f2fs: fix to avoid overflow while left shift operation

Not scored Published Updated

An integer overflow in the Linux kernel f2fs filesystem can lead to denial of service, requiring local access to exploit.

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

What is CVE-2025-40077?

CVE-2025-40077 is a vulnerability in Linux, published on 28 Oct 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 to avoid overflow while left shift operation

Should cast type of folio->index from pgoff_t to loff_t to avoid overflow while left shift operation.

Which versions are affected by CVE-2025-40077?

How do I fix CVE-2025-40077?

Apply the vendor's patch.

Is CVE-2025-40077 being exploited?

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

Sources

Also known as BELL-CVE-2025-40077, DEBIAN-CVE-2025-40077, GHSA-4hvf-57gh-hgxp, ROOT-OS-DEBIAN-11-CVE-2025-40077, ROOT-OS-DEBIAN-12-CVE-2025-40077, ROOT-OS-DEBIAN-13-CVE-2025-40077 and 3 more.

Is CVE-2025-40077 in your software?

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

Check your SBOMs for free