# CVE-2025-71135: md/raid5: fix possible null-pointer dereferences in raid5_store_group_thread_cnt()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-01-14T15:07:49.891Z
- Modified: 2026-11-05T22:17:37.810Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

md/raid5: fix possible null-pointer dereferences in raid5_store_group_thread_cnt()

The variable mddev->private is first assigned to conf and then checked:

  conf = mddev->private;
  if (!conf) ...

If conf is NULL, then mddev->private is also NULL. In this case,
null-pointer dereferences can occur when calling raid5_quiesce():

  raid5_quiesce(mddev, true);
  raid5_quiesce(mddev, false);

since mddev->private is assigned to conf again in raid5_quiesce(), and conf
is dereferenced in several places, for example:

  conf->quiesce = 0;
  wake_up(&conf->wait_for_quiescent);

To fix this issue, the function should unlock mddev and return before
invoking raid5_quiesce() when conf is NULL, following the existing pattern
in raid5_change_consistency_policy().

(As written by CVE List.)

## Affected

- Linux Linux: from be19e6e4339d1579d5f2fae8ce4facf9521dbbfc before 20597b7229aea8b5bc45cd92097640257c7fc33b; from fa1944bbe6220eb929e2c02e5e8706b908565711 before e5abb6af905de6b2fead8a0b3f32ab0b81468a01; from fa1944bbe6220eb929e2c02e5e8706b908565711 before 7ad6ef91d8745d04aff9cce7bdbc6320d8e05fe9; from 6.12.4 before 6.12.64; 6.13 (not affected: before 6.13; from 6.12.64 up to 6.12.*; from 6.18.4 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.12.4 before 6.12.64; from 6.13.1 before 6.18.4; 6.13; 6.19

## References

- <https://git.kernel.org/stable/c/20597b7229aea8b5bc45cd92097640257c7fc33b> (patch)
- <https://git.kernel.org/stable/c/e5abb6af905de6b2fead8a0b3f32ab0b81468a01> (patch)
- <https://git.kernel.org/stable/c/7ad6ef91d8745d04aff9cce7bdbc6320d8e05fe9> (patch)

## Sources

- CVE List: [CVE-2025-71135](https://www.cve.org/CVERecord?id=CVE-2025-71135), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-71135](https://nvd.nist.gov/vuln/detail/CVE-2025-71135), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-71135 · Whole record: https://cve.day/CVE-2025-71135.json · Rebuilt by cve.day 2026-11-25T22:59:10.626Z
