CVE-2025-22124

Source
https://cve.org/CVERecord?id=CVE-2025-22124
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22124.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22124
Downstream
Related
Published
2025-04-16T14:13:08.134Z
Modified
2026-03-11T07:45:31.196969Z
Summary
md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb
Details

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

md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb

In clustermd, separate write-intent-bitmaps are used for each cluster node:

0 4k 8k 12k

| idle | md super | bm super [0] + bits | | bm bits[0, contd] | bm super[1] + bits | bm bits[1, contd] | | bm super[2] + bits | bm bits [2, contd] | bm super[3] + bits | | bm bits [3, contd] | | |

So in node 1, pg_index in _writesbpage() could equal to bitmap->storage.filepages. Then bitmaplimit will be calculated to 0. mdsuperwrite() will be called with 0 size. That means the first 4k sb area of node 1 will never be updated through filemapwritepage(). This bug causes hang of mdadm/clustermdtests/01r1Growresize.

Here use (pgindex % bitmap->storage.filepages) to make calculation of bitmap_limit correct.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22124.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ab99a87542f194f28e2364a42afbf9fb48b1c724
Fixed
60196f92bbc7901eb5cfa5d456651b87ea50a4a3
Fixed
bc3a9788961631359527763d7e1fcf26554c7cb1
Fixed
6130825f34d41718c98a9b1504a79a23e379701e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
655cc01889fa9b65441922565cddee64af49e6d6
Last affected
5600d6013c634c2b6b6c6c55c8ecb50c3a6211f2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22124.json"