CVE-2025-22127
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-22127 is a vulnerability discovered in the Linux kernel's F2FS (Flash-Friendly File System) implementation, specifically in the prepare_compress_overwrite() function. The vulnerability was reported by Jan Prusakowski and disclosed on April 16, 2025. The issue affects Linux kernel versions 6.14.0-rc3 and 6.12, particularly impacting systems using F2FS with compression enabled (NVD, RedHat).

Technical details

The vulnerability manifests as a potential deadloop in the prepare_compress_overwrite() function of F2FS. When encountering IO errors while reading compressed cluster pages, the function enters a loop while holding the .writepages lock, which can block all other writeback tasks. The issue has been assigned a CVSS 3.1 score of 5.5 with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating a local attack vector with low attack complexity (RedHat).

Impact

The vulnerability can cause a kernel hang condition where the fsstress process becomes blocked in __f2fs_write_data_pages(), leading to system unavailability. This primarily affects the system's availability by blocking writeback tasks, which can result in significant system performance degradation (NVD).

Exploitability

The vulnerability requires local access and can be triggered when running with specific F2FS mount options, particularly when compression is enabled. The exploit conditions include using compression, extra attributes, and project quota options on the affected filesystem (RedHat).

Mitigation and workarounds

The issue has been resolved through two main fixes: adding f2fs_handle_page_eio() in prepare_compress_overwrite() to detect IO errors, and implementing earlier detection of cp_error in f2fs_read_multi_pages(). These patches have been incorporated into the Linux kernel (NVD).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Affected

sid

linux: 6.16.3-1

Fixed

trixie

linux

Affected

Ubuntu

Affected

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux-hwe-5.15

Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-7.0
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-riscv-7.0
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-aws-5.15
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-riscv-5.15
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management