Skip to main content
CVE-2025-40054VulnerabilityPublished Updated

CVE-2025-40054: Linux kernel · f2fs: fix UAF issue in f2fs_merge_page_bio() As JY reported in bugzilla [1]

Source GCVE Database

0

Not known to be exploited · CVSS 7.8 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

A fix for this vulnerability has been applied in the Linux kernel source to avoid use-after-free conditions in f2fs_merge_page_bio(). Users and administrators should update their Linux kernel to a version that includes this patch. Since no explicit patch links or vendor advisories are provided, check the official Linux kernel repositories or distributions for the fixed kernel version.

Description

A use-after-free (UAF) vulnerability in the Linux kernel's f2fs filesystem was resolved. The issue occurs in the f2fs_merge_page_bio() function due to a race condition that can lead to a kernel NULL pointer dereference and system panic. This vulnerability affects the handling of encrypted pages during writeback operations. The vulnerability was reported and fixed to avoid accessing freed memory after committing pages to an internal cache.

References

Community reviews

Loading reviews…