CVE-2025-22124

CVE-2025-22124

High · published April 16, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
9.1
In the wild
Unconfirmed
What it is

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 __write_sb_page() could equal to

bitmap->storage.file_pages. Then bitmap_limit will be calculated to

0. md_super_write() will be called with 0 size.

That means the first 4k sb area of node 1 will never be updated

through filemap_write_page().

This bug causes hang of mdadm/clustermd_tests/01r1_Grow_resize.

Here use (pg_index % bitmap->storage.file_pages) to make calculation

of bitmap_limit correct.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00198 · 9.1th percentile
Published
2025-04-16T19:16Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.6.44, < 6.76.7
linux/linux_kernel≥ 6.10.3, < 6.12.466.12.46
linux/linux_kernel≥ 6.13, < 6.14.26.14.2
References (4)
EPSS history
Timeline
  • 16 APR 14:13Z
    md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb
    cvelistv5