CVE-2025-38627: f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

Published Aug 22, 2025
·
Updated

f2fs: compress: fix UAF of f2fsinodeinfo in f2fsfreedic

Affected Software

7 affected components
Linux Kernel
Linux Linux kernel>=6.0<6.16.1
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.112.1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (f2fs) to a version that resolves this vulnerability.

    Patch f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic
  2. Configuration

    Ensure the fix is implemented so that the free_dic work is queued to post_read_wq (instead of being released asynchronously such that inode can be evicted/RCU-freed before use), preventing use of read(dic->inode)->i_compress_algorithm after inode free.

    F2FS post_read_wq (use free_dic work item scheduling) = add free_dic work to post_read_wq

Event History

Aug 22, 2025
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 3, 2025
Data Sourced
via Microsoft·10:29 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·10:29 PM
Affected Software
Updated
via Microsoft·10:29 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-38627?

CVE-2025-38627 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-38627?

To fix CVE-2025-38627, update your Linux kernel to the latest version that includes the security patch.

3

What does CVE-2025-38627 affect?

CVE-2025-38627 affects the f2fs file system in the Linux kernel where a use-after-free condition may occur.

4

What are the potential consequences of CVE-2025-38627?

The consequences of CVE-2025-38627 could include data corruption or a potential denial of service.

5

Is CVE-2025-38627 exploitable remotely?

CVE-2025-38627 is not considered a remote vulnerability as it requires local access to exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203