CVE-2025-22122 block: fix adding folio to bio

Medium 5.5 Published Updated

An integer overflow in the Linux kernel block layer can cause I/O failures when handling large folios on architectures supporting hugepages.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22122?

CVE-2025-22122 is a medium-severity vulnerability in Linux kernel, published on 16 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

block: fix adding folio to bio

>4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage is supported, then 'offset' of folio can't be held in 'unsigned int', cause warning in bio_add_folio_nofail() and IO failure.

Fix it by adjusting 'page' & trimming 'offset' so that `->bi_offset` won't be overflow, and folio can be added to bio successfully.

Which versions are affected by CVE-2025-22122?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22122?

Apply the vendor's patch.

Is CVE-2025-22122 being exploited?

There is no known exploitation of CVE-2025-22122 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22122, DEBIAN-CVE-2025-22122, GHSA-cjw9-x8qr-5wpf, UBUNTU-CVE-2025-22122.

Is CVE-2025-22122 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free