Skip to main content
EPSS 0.2%top 95%

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix UAF issue in f2fs_merge_page_bio() As JY reported in bugzilla [1],… (CVE-2025-40054)

0
High
Published: 10/28/2025 (10/28/2025, 12:30:16 UTC)
Source: GCVE Database

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.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:21:59 UTC

Technical Analysis

CVE-2025-40054 is a use-after-free vulnerability in the Linux kernel's f2fs filesystem, specifically in the f2fs_merge_page_bio() function. The flaw arises from a race condition during writeback operations involving encrypted pages, where a bounced page can be freed before it is accessed in f2fs_is_cp_guarantee(). This leads to a kernel NULL pointer dereference and potential system panic. The issue was reported via Bugzilla and fixed by changing the code to avoid using the freed encrypted page after committing it to the internal ipu cache. The vulnerability has a CVSS 3.1 vector of AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local attack vector with low complexity, requiring low privileges, no user interaction, unchanged scope, and high impact on confidentiality, integrity, and availability.

Potential Impact

Exploitation of this vulnerability can cause a kernel NULL pointer dereference resulting in a system panic (crash), impacting system availability. The vulnerability affects confidentiality and integrity due to the involvement of encrypted pages, potentially allowing unauthorized access or modification of sensitive data. The attack requires local access with low privileges and no user interaction, making it a high-severity local denial-of-service and potential data compromise risk.

Mitigation Recommendations

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. Patch status is not yet confirmed in this data — verify with the vendor or kernel maintainers for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2xf6-75gh-3848
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40054"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d79c2644c7f847b4de

Added to database: 07/30/2026, 15:50:47 UTC

Last enriched: 07/30/2026, 16:21:59 UTC

Last updated: 09/10/2026, 19:38:49 UTC

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses