CVE-2025-21712 (GCVE-0-2025-21712)

Vulnerability from cvelistv5 – Published: 2025-02-27 02:07 – Updated: 2026-10-15 21:51
VLAI
Title
md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime
Summary
In the Linux kernel, the following vulnerability has been resolved: md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime After commit ec6bb299c7c3 ("md/md-bitmap: add 'sync_size' into struct md_bitmap_stats"), following panic is reported: Oops: general protection fault, probably for non-canonical address RIP: 0010:bitmap_get_stats+0x2b/0xa0 Call Trace: <TASK> md_seq_show+0x2d2/0x5b0 seq_read_iter+0x2b9/0x470 seq_read+0x12f/0x180 proc_reg_read+0x57/0xb0 vfs_read+0xf6/0x380 ksys_read+0x6c/0xf0 do_syscall_64+0x82/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Root cause is that bitmap_get_stats() can be called at anytime if mddev is still there, even if bitmap is destroyed, or not fully initialized. Deferenceing bitmap in this case can crash the kernel. Meanwhile, the above commit start to deferencing bitmap->storage, make the problem easier to trigger. Fix the problem by protecting bitmap_get_stats() with bitmap_info.mutex.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-10-15 21:42 UTC
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428 (git)
Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < 032fa54f486eac5507976e7e31f079a767bc13a8 (git)
Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < 52848a095b55a302af92f52ca0de5b3112059bb8 (git)
Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18 (git)
Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < 4e9316eee3885bfb311b4759513f2ccf37891c09 (git)
Affected: 32a7627cf3a35396a8e834faf34e38ae9f3b1309 , < 8d28d0ddb986f56920ac97ae704cc3340a699a30 (git)
Create a notification for this product.
Linux Linux Affected: 2.6.13
Unaffected: 0 , < 2.6.13 (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.130 , ≤ 6.1.* (semver)
Unaffected: 6.6.80 , ≤ 6.6.* (semver)
Unaffected: 6.12.13 , ≤ 6.12.* (semver)
Unaffected: 6.13.2 , ≤ 6.13.* (semver)
Unaffected: 6.14 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP Affected: V3.1.5 , < * (custom)
Create a notification for this product.
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP Affected: V3.1.5 , < * (custom)
Create a notification for this product.
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP Affected: V3.1.5 , < * (custom)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T19:36:06.587Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "affected": [
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "*",
                "status": "affected",
                "version": "V3.1.5",
                "versionType": "custom"
              }
            ]
          },
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "*",
                "status": "affected",
                "version": "V3.1.5",
                "versionType": "custom"
              }
            ]
          },
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "*",
                "status": "affected",
                "version": "V3.1.5",
                "versionType": "custom"
              }
            ]
          },
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "*",
                "status": "affected",
                "version": "V3.1.5",
                "versionType": "custom"
              }
            ]
          },
          {
            "defaultStatus": "unknown",
            "product": "SIPLUS S7-1500 CPU 1518-4 PN/DP MFP",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "*",
                "status": "affected",
                "version": "V3.1.5",
                "versionType": "custom"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T01:03:35.797Z",
          "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
          "shortName": "siemens-SADP"
        },
        "references": [
          {
            "url": "https://cert-portal.siemens.com/productcert/html/ssa-082556.html"
          }
        ],
        "x_adpType": "supplier"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-21712",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T21:42:45.422375Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T21:51:52.411Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/md-bitmap.c",
            "drivers/md/md.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "eb2f9d98cd3e94a79fbf8fb90637c5b12e805428",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            },
            {
              "lessThan": "032fa54f486eac5507976e7e31f079a767bc13a8",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            },
            {
              "lessThan": "52848a095b55a302af92f52ca0de5b3112059bb8",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            },
            {
              "lessThan": "237e19519c8ff6949f0ef57c4a0243f5b2b0fa18",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            },
            {
              "lessThan": "4e9316eee3885bfb311b4759513f2ccf37891c09",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            },
            {
              "lessThan": "8d28d0ddb986f56920ac97ae704cc3340a699a30",
              "status": "affected",
              "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/md-bitmap.c",
            "drivers/md/md.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.13"
            },
            {
              "lessThan": "2.6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.130",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.80",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.130",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.80",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.13",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.2",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "2.6.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime\n\nAfter commit ec6bb299c7c3 (\"md/md-bitmap: add \u0027sync_size\u0027 into struct\nmd_bitmap_stats\"), following panic is reported:\n\nOops: general protection fault, probably for non-canonical address\nRIP: 0010:bitmap_get_stats+0x2b/0xa0\nCall Trace:\n \u003cTASK\u003e\n md_seq_show+0x2d2/0x5b0\n seq_read_iter+0x2b9/0x470\n seq_read+0x12f/0x180\n proc_reg_read+0x57/0xb0\n vfs_read+0xf6/0x380\n ksys_read+0x6c/0xf0\n do_syscall_64+0x82/0x170\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nRoot cause is that bitmap_get_stats() can be called at anytime if mddev\nis still there, even if bitmap is destroyed, or not fully initialized.\nDeferenceing bitmap in this case can crash the kernel. Meanwhile, the\nabove commit start to deferencing bitmap-\u003estorage, make the problem\neasier to trigger.\n\nFix the problem by protecting bitmap_get_stats() with bitmap_info.mutex."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerability is reached by a plain read(2) on /proc/mdstat, a local procfs file; no network or adjacent-network exposure exists. Any local process on the machine can reach bitmap_get_stats() through seq_read \u2192 md_seq_show \u2192 md_bitmap_status.\nAC:L - On an array with an external-metadata bitmap (IMSM/DDF via mdmon), storage.sb_page is permanently NULL, so a single unconditional `cat /proc/mdstat` deterministically faults \u2014 no race to win. The lifetime-race variant is likewise attacker-driven, since the attacker can spin on /proc/mdstat reads at arbitrary rate to hit the resize/load/destroy window.\nPR:L - /proc/mdstat is world-readable (S_IRUGO) with no capability check in md_seq_open() or md_seq_show(), so only an ordinary unprivileged local account is needed. The vulnerable array configuration is an environmental precondition set by the administrator or mdmon, not a privilege the attacker must hold.\nUI:N - The attacker triggers the bug entirely on its own by reading /proc/mdstat; no victim action, mount, or file open by another user is required. Existing md arrays are enumerated automatically by the seq_file iterator.\nS:U - The corruption and its consequences stay within the kernel\u0027s own security authority on the same host, with no crossing of a VM, IOMMU, or sandbox boundary. This is a standard in-kernel memory-safety defect.\nC:H - The unsynchronized access dereferences bitmap storage that concurrent __bitmap_resize()/bitmap_load()/bitmap_destroy() may have freed, kmapping a stale struct page and passing a dangling struct file to seq_file_path(), whose result is printed into the attacker-read /proc/mdstat. A groomed reallocation of the freed object turns this into a kernel-memory read primitive with the data disclosed to userspace.\nI:H - This is a use-after-free/lifetime defect on the bitmap and its storage, and a stale sb_page pointer controlled via heap reallocation is handed to kmap_local_page(), letting attacker-influenced kernel state drive subsequent memory accesses. Consistent with kernel UAF scoring, the corrupted-object dereference is treated as exploitable for control over kernel data.\nA:H - The reported and reproducible outcome is a general protection fault on a non-canonical address in bitmap_get_stats(), i.e. a kernel oops (panic with panic_on_oops), triggerable at will by any local user. Worse, the fault occurs while spin_lock(\u0026mddev-\u003elock) is held, leaking the spinlock and deadlocking all further md activity on that array."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:53:50.562Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/eb2f9d98cd3e94a79fbf8fb90637c5b12e805428"
        },
        {
          "url": "https://git.kernel.org/stable/c/032fa54f486eac5507976e7e31f079a767bc13a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/52848a095b55a302af92f52ca0de5b3112059bb8"
        },
        {
          "url": "https://git.kernel.org/stable/c/237e19519c8ff6949f0ef57c4a0243f5b2b0fa18"
        },
        {
          "url": "https://git.kernel.org/stable/c/4e9316eee3885bfb311b4759513f2ccf37891c09"
        },
        {
          "url": "https://git.kernel.org/stable/c/8d28d0ddb986f56920ac97ae704cc3340a699a30"
        }
      ],
      "title": "md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-21712",
    "datePublished": "2025-02-27T02:07:24.354Z",
    "dateReserved": "2024-12-29T08:45:45.752Z",
    "dateUpdated": "2026-10-15T21:51:52.411Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-21712",
      "date": "2026-11-19",
      "epss": "0.00222",
      "percentile": "0.12925"
    },
    "microsoft_vex": {
      "current_release_date": "2026-09-23T02:13:45.000Z",
      "cve": "CVE-2025-21712",
      "id": "msrc_CVE-2025-21712",
      "initial_release_date": "2025-10-25T01:02:06.000Z",
      "product_status:known_affected": "5",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-21712.json",
      "version": "5"
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-07T10:40:30+00:00",
      "cve": "CVE-2025-21712",
      "id": "CVE-2025-21712",
      "initial_release_date": "2025-02-27T00:00:00+00:00",
      "product_status:known_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21712.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2025-11-03T19:36:06.587Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "affected": [
              {
                "defaultStatus": "unknown",
                "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
                "vendor": "Siemens",
                "versions": [
                  {
                    "lessThan": "*",
                    "status": "affected",
                    "version": "V3.1.5",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "defaultStatus": "unknown",
                "product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
                "vendor": "Siemens",
                "versions": [
                  {
                    "lessThan": "*",
                    "status": "affected",
                    "version": "V3.1.5",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "defaultStatus": "unknown",
                "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
                "vendor": "Siemens",
                "versions": [
                  {
                    "lessThan": "*",
                    "status": "affected",
                    "version": "V3.1.5",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "defaultStatus": "unknown",
                "product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
                "vendor": "Siemens",
                "versions": [
                  {
                    "lessThan": "*",
                    "status": "affected",
                    "version": "V3.1.5",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "defaultStatus": "unknown",
                "product": "SIPLUS S7-1500 CPU 1518-4 PN/DP MFP",
                "vendor": "Siemens",
                "versions": [
                  {
                    "lessThan": "*",
                    "status": "affected",
                    "version": "V3.1.5",
                    "versionType": "custom"
                  }
                ]
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-10-15T01:03:35.797Z",
              "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
              "shortName": "siemens-SADP"
            },
            "references": [
              {
                "url": "https://cert-portal.siemens.com/productcert/html/ssa-082556.html"
              }
            ],
            "x_adpType": "supplier"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-21712",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-10-15T21:42:45.422375Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-10-15T21:42:46.223Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "drivers/md/md-bitmap.c",
                "drivers/md/md.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "eb2f9d98cd3e94a79fbf8fb90637c5b12e805428",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                },
                {
                  "lessThan": "032fa54f486eac5507976e7e31f079a767bc13a8",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                },
                {
                  "lessThan": "52848a095b55a302af92f52ca0de5b3112059bb8",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                },
                {
                  "lessThan": "237e19519c8ff6949f0ef57c4a0243f5b2b0fa18",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                },
                {
                  "lessThan": "4e9316eee3885bfb311b4759513f2ccf37891c09",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                },
                {
                  "lessThan": "8d28d0ddb986f56920ac97ae704cc3340a699a30",
                  "status": "affected",
                  "version": "32a7627cf3a35396a8e834faf34e38ae9f3b1309",
                  "versionType": "git"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "drivers/md/md-bitmap.c",
                "drivers/md/md.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "2.6.13"
                },
                {
                  "lessThan": "2.6.13",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.15.*",
                  "status": "unaffected",
                  "version": "5.15.209",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.1.*",
                  "status": "unaffected",
                  "version": "6.1.130",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.6.*",
                  "status": "unaffected",
                  "version": "6.6.80",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.12.*",
                  "status": "unaffected",
                  "version": "6.12.13",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.13.*",
                  "status": "unaffected",
                  "version": "6.13.2",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "*",
                  "status": "unaffected",
                  "version": "6.14",
                  "versionType": "original_commit_for_fix"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.15.209",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.1.130",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.6.80",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.12.13",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.13.2",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.14",
                      "versionStartIncluding": "2.6.13",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime\n\nAfter commit ec6bb299c7c3 (\"md/md-bitmap: add \u0027sync_size\u0027 into struct\nmd_bitmap_stats\"), following panic is reported:\n\nOops: general protection fault, probably for non-canonical address\nRIP: 0010:bitmap_get_stats+0x2b/0xa0\nCall Trace:\n \u003cTASK\u003e\n md_seq_show+0x2d2/0x5b0\n seq_read_iter+0x2b9/0x470\n seq_read+0x12f/0x180\n proc_reg_read+0x57/0xb0\n vfs_read+0xf6/0x380\n ksys_read+0x6c/0xf0\n do_syscall_64+0x82/0x170\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nRoot cause is that bitmap_get_stats() can be called at anytime if mddev\nis still there, even if bitmap is destroyed, or not fully initialized.\nDeferenceing bitmap in this case can crash the kernel. Meanwhile, the\nabove commit start to deferencing bitmap-\u003estorage, make the problem\neasier to trigger.\n\nFix the problem by protecting bitmap_get_stats() with bitmap_info.mutex."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "scenarios": [
                {
                  "lang": "en",
                  "value": "AV:L - The vulnerability is reached by a plain read(2) on /proc/mdstat, a local procfs file; no network or adjacent-network exposure exists. Any local process on the machine can reach bitmap_get_stats() through seq_read \u2192 md_seq_show \u2192 md_bitmap_status.\nAC:L - On an array with an external-metadata bitmap (IMSM/DDF via mdmon), storage.sb_page is permanently NULL, so a single unconditional `cat /proc/mdstat` deterministically faults \u2014 no race to win. The lifetime-race variant is likewise attacker-driven, since the attacker can spin on /proc/mdstat reads at arbitrary rate to hit the resize/load/destroy window.\nPR:L - /proc/mdstat is world-readable (S_IRUGO) with no capability check in md_seq_open() or md_seq_show(), so only an ordinary unprivileged local account is needed. The vulnerable array configuration is an environmental precondition set by the administrator or mdmon, not a privilege the attacker must hold.\nUI:N - The attacker triggers the bug entirely on its own by reading /proc/mdstat; no victim action, mount, or file open by another user is required. Existing md arrays are enumerated automatically by the seq_file iterator.\nS:U - The corruption and its consequences stay within the kernel\u0027s own security authority on the same host, with no crossing of a VM, IOMMU, or sandbox boundary. This is a standard in-kernel memory-safety defect.\nC:H - The unsynchronized access dereferences bitmap storage that concurrent __bitmap_resize()/bitmap_load()/bitmap_destroy() may have freed, kmapping a stale struct page and passing a dangling struct file to seq_file_path(), whose result is printed into the attacker-read /proc/mdstat. A groomed reallocation of the freed object turns this into a kernel-memory read primitive with the data disclosed to userspace.\nI:H - This is a use-after-free/lifetime defect on the bitmap and its storage, and a stale sb_page pointer controlled via heap reallocation is handed to kmap_local_page(), letting attacker-influenced kernel state drive subsequent memory accesses. Consistent with kernel UAF scoring, the corrupted-object dereference is treated as exploitable for control over kernel data.\nA:H - The reported and reproducible outcome is a general protection fault on a non-canonical address in bitmap_get_stats(), i.e. a kernel oops (panic with panic_on_oops), triggerable at will by any local user. Worse, the fault occurs while spin_lock(\u0026mddev-\u003elock) is held, leaking the spinlock and deadlocking all further md activity on that array."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-08-05T11:53:50.562Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/eb2f9d98cd3e94a79fbf8fb90637c5b12e805428"
            },
            {
              "url": "https://git.kernel.org/stable/c/032fa54f486eac5507976e7e31f079a767bc13a8"
            },
            {
              "url": "https://git.kernel.org/stable/c/52848a095b55a302af92f52ca0de5b3112059bb8"
            },
            {
              "url": "https://git.kernel.org/stable/c/237e19519c8ff6949f0ef57c4a0243f5b2b0fa18"
            },
            {
              "url": "https://git.kernel.org/stable/c/4e9316eee3885bfb311b4759513f2ccf37891c09"
            },
            {
              "url": "https://git.kernel.org/stable/c/8d28d0ddb986f56920ac97ae704cc3340a699a30"
            }
          ],
          "title": "md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2025-21712",
        "datePublished": "2025-02-27T02:07:24.354Z",
        "dateReserved": "2024-12-29T08:45:45.752Z",
        "dateUpdated": "2026-10-15T21:51:52.411Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.