{"id":"CVE-2025-22124","aliases":["CVE-2025-22124"],"related":[],"kind":"vulnerability","state":"published","title":"md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: fix wrong bitmap_limit for clustermd when write sb\n\nIn clustermd, separate write-intent-bitmaps are used for each cluster\nnode:\n\n0                    4k                     8k                    12k\n-------------------------------------------------------------------\n| idle                | md super            | bm super [0] + bits |\n| bm bits[0, contd]   | bm super[1] + bits  | bm bits[1, contd]   |\n| bm super[2] + bits  | bm bits [2, contd]  | bm super[3] + bits  |\n| bm bits [3, contd]  |                     |                     |\n\nSo in node 1, pg_index in __write_sb_page() could equal to\nbitmap->storage.file_pages. Then bitmap_limit will be calculated to\n0. md_super_write() will be called with 0 size.\nThat means the first 4k sb area of node 1 will never be updated\nthrough filemap_write_page().\nThis bug causes hang of mdadm/clustermd_tests/01r1_Grow_resize.\n\nHere use (pg_index % bitmap->storage.file_pages) to make calculation\nof bitmap_limit correct.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: fix wrong bitmap_limit for clustermd when write sb\n\nIn clustermd, separate write-intent-bitmaps are used for each cluster\nnode:\n\n0                    4k                     8k                    12k\n-------------------------------------------------------------------\n| idle                | md super            | bm super [0] + bits |\n| bm bits[0, contd]   | bm super[1] + bits  | bm bits[1, contd]   |\n| bm super[2] + bits  | bm bits [2, contd]  | bm super[3] + bits  |\n| bm bits [3, contd]  |                     |                     |\n\nSo in node 1, pg_index in __write_sb_page() could equal to\nbitmap->storage.file_pages. Then bitmap_limit will be calculated to\n0. md_super_write() will be called with 0 size.\nThat means the first 4k sb area of node 1 will never be updated\nthrough filemap_write_page().\nThis bug causes hang of mdadm/clustermd_tests/01r1_Grow_resize.\n\nHere use (pg_index % bitmap->storage.file_pages) to make calculation\nof bitmap_limit correct.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: md/md-bitmap: corrige bitmap_limit incorrecto para clustermd al escribir sb En clustermd, se usan mapas de bits de intención de escritura separados para cada nodo del clúster: 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] | | | Entonces, en el nodo 1, pg_index en __write_sb_page() podría ser igual a bitmap-&gt;storage.file_pages. Entonces, bitmap_limit se calculará como 0. md_super_write() se llamará con un tamaño de 0. Esto significa que la primera área de 4k del nodo 1 nunca se actualizará mediante filemap_write_page(). Este error provoca el bloqueo de mdadm/clustermd_tests/01r1_Grow_resize. En este caso, utilice (pg_index % bitmap-&gt;storage.file_pages) para que el cálculo de bitmap_limit sea correcto.","source":"nvd"}],"published":"2025-04-16T14:13:08.134Z","modified":"2026-10-15T22:18:15.483Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"655cc01889fa9b65441922565cddee64af49e6d6","fixed":"5eaf57fdfa37c869e61e9908e03edd707f9145b8","status":"affected"},{"type":"git","introduced":"ab99a87542f194f28e2364a42afbf9fb48b1c724","fixed":"60196f92bbc7901eb5cfa5d456651b87ea50a4a3","status":"affected"},{"type":"git","introduced":"ab99a87542f194f28e2364a42afbf9fb48b1c724","fixed":"bc3a9788961631359527763d7e1fcf26554c7cb1","status":"affected"},{"type":"git","introduced":"ab99a87542f194f28e2364a42afbf9fb48b1c724","fixed":"6130825f34d41718c98a9b1504a79a23e379701e","status":"affected"},{"type":"git","version":"5600d6013c634c2b6b6c6c55c8ecb50c3a6211f2","status":"affected"},{"type":"semver","introduced":"6.6.44","fixed":"6.6.157","status":"affected"},{"type":"semver","introduced":"6.10.3","fixed":"6.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.44","fixed":"6.7"},{"status":"affected","introduced":"6.10.3","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5eaf57fdfa37c869e61e9908e03edd707f9145b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60196f92bbc7901eb5cfa5d456651b87ea50a4a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc3a9788961631359527763d7e1fcf26554c7cb1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6130825f34d41718c98a9b1504a79a23e379701e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:44:34.243Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22124","url":"https://www.cve.org/CVERecord?id=CVE-2025-22124","licence":"CVE Terms of Use","modified":"2026-10-15T21:51:58.133Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22124","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22124","licence":"Public domain","modified":"2026-10-15T22:18:15.483Z"}],"updatedAt":"2026-11-25T22:58:56.623Z","epss":{"score":0.00202,"percentile":0.10748,"date":"2026-12-01T12:00:22.000Z"}}