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

Published Apr 16, 2025
·
Updated

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

md/md-bitmap: fix wrong bitmaplimit 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, pgindex 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 bitmaplimit correct.

Affected Software

9 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.119.3-1
Linux Linux kernel>=6.6.44<6.7
Linux Linux kernel>=6.10.3<6.12.46
Linux Linux kernel>=6.13<6.14.2
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    In the Linux kernel md/clustermd bitmap code, calculate bitmap_limit using (pg_index % bitmap->storage.file_pages) so the node 1 superblock area is updated correctly and md_super_write() is not called with a zero size.

Event History

Apr 16, 2025
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityAffected Software
Nov 5, 2025
Data Sourced
via Microsoft·01:01 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-22124?

CVE-2025-22124 is considered a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-22124?

To fix CVE-2025-22124, you should update to the latest version of the Linux kernel that includes the vulnerability resolution.

3

What type of vulnerability is CVE-2025-22124?

CVE-2025-22124 is a vulnerability related to incorrect handling of bitmap limits in the clustermd functionality of the Linux kernel.

4

Which versions of the Linux kernel are affected by CVE-2025-22124?

CVE-2025-22124 affects certain versions of the Linux kernel prior to the fix implemented in the patch.

5

What impact does CVE-2025-22124 have on systems?

CVE-2025-22124 can potentially lead to data corruption and unstable behavior in systems using clustermd with incorrect bitmap handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203