CVE-2025-22122
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-22122 is a vulnerability discovered in the Linux kernel related to block device handling. The issue was disclosed on April 16, 2025, affecting the kernel's bio (block I/O) subsystem, specifically in handling large folios on certain architectures like aarch64 (NVD CVE, Red Hat CVE).

Technical details

The vulnerability occurs when handling folios larger than 4GB, particularly on architectures like aarch64 where 16GB hugepages are supported. The issue manifests in the bioaddfolionofail() function where the 'offset' of the folio cannot be properly held in an 'unsigned int' type, leading to potential overflow of the bioffset value. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Red Hat CVE).

Impact

The vulnerability can result in I/O failures and system warnings when attempting to handle large folios in the block I/O subsystem. This primarily affects systems using large hugepages, particularly on 64-bit architectures that support extended memory addressing (NVD CVE).

Mitigation and workarounds

A fix has been implemented that adjusts the 'page' handling and trims the 'offset' to prevent bi_offset overflow, ensuring folios can be added to bio successfully. The fix has been incorporated into various Linux distributions, with Red Hat Enterprise Linux 9 having deferred the fix for both standard and RT kernels (Red Hat CVE, Debian Tracker).

Additional resources


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-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

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