{"id":"CVE-2025-38451","aliases":["CVE-2025-38451"],"related":[],"kind":"vulnerability","state":"published","title":"md/md-bitmap: fix GPF in bitmap_get_stats()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: fix GPF in bitmap_get_stats()\n\nThe commit message of commit 6ec1f0239485 (\"md/md-bitmap: fix stats\ncollection for external bitmaps\") states:\n\n    Remove the external bitmap check as the statistics should be\n    available regardless of bitmap storage location.\n\n    Return -EINVAL only for invalid bitmap with no storage (neither in\n    superblock nor in external file).\n\nBut, the code does not adhere to the above, as it does only check for\na valid super-block for \"internal\" bitmaps. Hence, we observe:\n\nOops: GPF, probably for non-canonical address 0x1cd66f1f40000028\nRIP: 0010:bitmap_get_stats+0x45/0xd0\nCall Trace:\n\n seq_read_iter+0x2b9/0x46a\n seq_read+0x12f/0x180\n proc_reg_read+0x57/0xb0\n vfs_read+0xf6/0x380\n ksys_read+0x6d/0xf0\n do_syscall_64+0x8c/0x1b0\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nWe fix this by checking the existence of a super-block for both the\ninternal and external case.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: fix GPF in bitmap_get_stats()\n\nThe commit message of commit 6ec1f0239485 (\"md/md-bitmap: fix stats\ncollection for external bitmaps\") states:\n\n    Remove the external bitmap check as the statistics should be\n    available regardless of bitmap storage location.\n\n    Return -EINVAL only for invalid bitmap with no storage (neither in\n    superblock nor in external file).\n\nBut, the code does not adhere to the above, as it does only check for\na valid super-block for \"internal\" bitmaps. Hence, we observe:\n\nOops: GPF, probably for non-canonical address 0x1cd66f1f40000028\nRIP: 0010:bitmap_get_stats+0x45/0xd0\nCall Trace:\n\n seq_read_iter+0x2b9/0x46a\n seq_read+0x12f/0x180\n proc_reg_read+0x57/0xb0\n vfs_read+0xf6/0x380\n ksys_read+0x6d/0xf0\n do_syscall_64+0x8c/0x1b0\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nWe fix this by checking the existence of a super-block for both the\ninternal and external case.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: md/md-bitmap: corrección de GPF en bitmap_get_stats(). El mensaje del commit 6ec1f0239485 (\"md/md-bitmap: corrección de la recopilación de estadísticas para mapas de bits externos\") indica: Se elimina la comprobación de mapas de bits externos, ya que las estadísticas deben estar disponibles independientemente de su ubicación de almacenamiento. Se devuelve -EINVAL solo para mapas de bits no válidos sin almacenamiento (ni en superbloque ni en archivo externo). Sin embargo, el código no cumple con lo anterior, ya que solo comprueba si hay un superbloque válido para mapas de bits \"internos\". Por lo tanto, observamos: Oops: GPF, probablemente para la dirección no canónica 0x1cd66f1f40000028 RIP: 0010:bitmap_get_stats+0x45/0xd0 Rastreo de llamadas: seq_read_iter+0x2b9/0x46a seq_read+0x12f/0x180 proc_reg_read+0x57/0xb0 vfs_read+0xf6/0x380 ksys_read+0x6d/0xf0 do_syscall_64+0x8c/0x1b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e Solucionamos esto verificando la existencia de un superbloque tanto para el caso interno como para el externo.","source":"nvd"}],"published":"2025-07-25T15:27:32.045Z","modified":"2026-10-15T01:07:15.964Z","severity":{"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"},"severities":[{"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":"065f4b1cd41d03702426af44193894b925607073","fixed":"a23b16ba3274961494f5ad236345d238364349ff","status":"affected"},{"type":"git","introduced":"0b5390aeaa85eb2f15e0e2ea0731c0995285db5e","fixed":"3d82a729530bd2110ba66e4a1f73461c776edec2","status":"affected"},{"type":"git","introduced":"eeeba7f43ae27835718a5f5ad6552a8983e75201","fixed":"3e0542701b37aa25b025d8531583458e4f014c2e","status":"affected"},{"type":"git","introduced":"6ec1f0239485028445d213d91cfee5242f3211ba","fixed":"a18f9b08c70e10ea3a897058fee8a4f3b4c146ec","status":"affected"},{"type":"git","introduced":"6ec1f0239485028445d213d91cfee5242f3211ba","fixed":"c17fb542dbd1db745c9feac15617056506dd7195","status":"affected"},{"type":"git","version":"896a6fbefc9050cf940ed57947eda6dc23aa58b0","status":"affected"},{"type":"semver","introduced":"6.1.135","fixed":"6.1.146","status":"affected"},{"type":"semver","introduced":"6.6.88","fixed":"6.6.99","status":"affected"},{"type":"semver","introduced":"6.12.25","fixed":"6.12.39","status":"affected"},{"type":"semver","introduced":"6.14.4","fixed":"6.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.1.146","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.99","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.39","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.7","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","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.1.135","fixed":"6.1.146"},{"status":"affected","introduced":"6.6.88","fixed":"6.6.99"},{"status":"affected","introduced":"6.12.25","fixed":"6.12.39"},{"status":"affected","introduced":"6.14.4","fixed":"6.15"},{"status":"affected","introduced":"6.15.1","fixed":"6.15.7"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a23b16ba3274961494f5ad236345d238364349ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d82a729530bd2110ba66e4a1f73461c776edec2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e0542701b37aa25b025d8531583458e4f014c2e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a18f9b08c70e10ea3a897058fee8a4f3b4c146ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c17fb542dbd1db745c9feac15617056506dd7195","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38451","url":"https://www.cve.org/CVERecord?id=CVE-2025-38451","licence":"CVE Terms of Use","modified":"2026-10-15T01:07:15.964Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38451","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38451","licence":"Public domain","modified":"2026-06-17T09:16:52.953Z"}],"updatedAt":"2026-11-25T22:59:01.724Z","epss":{"score":0.00183,"percentile":0.08231,"date":"2026-12-01T12:00:22.000Z"}}