Kernel panic via F2FS unmount race
Published May 1, 2026 · Updated May 1, 2026
Use-after-free in Linux Kernel F2FS 4.19 and later allows local users to trigger a kernel panic during filesystem unmount. The f2fs_write_end_io() callback decrements the F2FS_WB_CP_DATA page count before its warm-node check, letting concurrent f2fs_put_super() release and clear sbi->node_inode before that check dereferences it. Triggering the race requires CAP_SYS_ADMIN to mount and unmount F2FS; a successful trigger crashes the kernel rather than granting data access.
Summary
What happened
Use-after-free in Linux Kernel F2FS 4.19 and later allows local users to trigger a kernel panic during filesystem unmount. The f2fs_write_end_io() callback decrements the F2FS_WB_CP_DATA page count before its warm-node check, letting concurrent f2fs_put_super() release and clear sbi->node_inode before that check dereferences it. Triggering the race requires CAP_SYS_ADMIN to mount and unmount F2FS; a successful trigger crashes the kernel rather than granting data access.
The record
- CVE
- CVE-2026-31715
- Published
- May 1, 2026
- Updated
- May 1, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-416, T1499.004
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- May 1, 2026CVE publishedPublication date reported by the CVE source.
- May 1, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.19
- Affected versionversion=50fa53eccf9f911a5b435248a2b0bd484fd82e5e <188bb65f247a7a7c62f287c9a263aee3cad96fa5
- Affected versionversion=50fa53eccf9f911a5b435248a2b0bd484fd82e5e <2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53
- Affected versionversion=50fa53eccf9f911a5b435248a2b0bd484fd82e5e <963d2e24d9d92a31e6773b0f642214f10013ebf7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo