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)
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.
AI Analysis
Technical Summary
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.
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)
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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.