CVE-2025-22124
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/04/2025
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb<br />
<br />
In clustermd, separate write-intent-bitmaps are used for each cluster<br />
node:<br />
<br />
0 4k 8k 12k<br />
-------------------------------------------------------------------<br />
| idle | md super | bm super [0] + bits |<br />
| bm bits[0, contd] | bm super[1] + bits | bm bits[1, contd] |<br />
| bm super[2] + bits | bm bits [2, contd] | bm super[3] + bits |<br />
| bm bits [3, contd] | | |<br />
<br />
So in node 1, pg_index in __write_sb_page() could equal to<br />
bitmap->storage.file_pages. Then bitmap_limit will be calculated to<br />
0. md_super_write() will be called with 0 size.<br />
That means the first 4k sb area of node 1 will never be updated<br />
through filemap_write_page().<br />
This bug causes hang of mdadm/clustermd_tests/01r1_Grow_resize.<br />
<br />
Here use (pg_index % bitmap->storage.file_pages) to make calculation<br />
of bitmap_limit correct.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.44 (including) | 6.7 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.10.3 (including) | 6.12.46 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.14.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



