CVE-2025-21712

Medium

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.

Package Linux Kernel
Published 2025-02-27
Last modified 2026-06-01
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected versions

Linux kernel versions 2.6.13 and later are affected. Fixed in 5.15.209, 6.1.130, 6.6.80, 6.12.13, 6.13.2, 6.14 and their respective stable series.

Affected from
≥ 2.6.13
Fixed in
✓ 5.15.209 5.15.x ✓ 6.1.130 6.1.x ✓ 6.6.80 6.6.x ✓ 6.12.13 6.12.x ✓ 6.13.2 6.13.x ✓ 6.14

References

The following references provide additional information about CVE-2025-21712 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.

Frequently asked questions

  • What is CVE-2025-21712?

    CVE-2025-21712 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 2.6.13 onward and has been patched in 5.15.209, 6.1.130, 6.6.80 and others. CVE-2025-21712 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2025-21712?

    CVE-2025-21712 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H .

  • Is there a patch available for CVE-2025-21712?

    Yes — CVE-2025-21712 has been patched. Fixed versions include 5.15.209, 6.1.130, 6.6.80 and others. If you are running Linux kernel 2.6.13 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2025-21712 actively exploited?

    No — CVE-2025-21712 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.