# CVE-2023-53380: md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:25.383Z
- Modified: 2026-06-17T06:45:09.573Z
- 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/raid10: fix null-ptr-deref of mreplace in raid10_sync_request

There are two check of 'mreplace' in raid10_sync_request(). In the first
check, 'need_replace' will be set and 'mreplace' will be used later if
no-Faulty 'mreplace' exists, In the second check, 'mreplace' will be
set to NULL if it is Faulty, but 'need_replace' will not be changed
accordingly. null-ptr-deref occurs if Faulty is set between two check.

Fix it by merging two checks into one. And replace 'need_replace' with
'mreplace' because their values are always the same.

(As written by CVE List.)

## Affected

- Linux Linux: from ee37d7314a32ab6809eacc3389bad0406c69a81f before 45fa023b3334a7ae6f6c4eb977295804222dfa28; from ee37d7314a32ab6809eacc3389bad0406c69a81f before 2990e2ece18dd4cca71b3109c80517ad94adb065; from ee37d7314a32ab6809eacc3389bad0406c69a81f before f4368a462b1f9a8ecc2fdb09a28c3d4cad302a4f; from ee37d7314a32ab6809eacc3389bad0406c69a81f before 222cc459d59857ee28a5366dc225ab42b22f9272; from ee37d7314a32ab6809eacc3389bad0406c69a81f before b5015b97adda6a24dd3e713c63e521ecbeff25c6; from ee37d7314a32ab6809eacc3389bad0406c69a81f before 144c7fd008e0072b0b565f1157eec618de54ca8a; from ee37d7314a32ab6809eacc3389bad0406c69a81f before 34817a2441747b48e444cb0e05d84e14bc9443da; 4.20 (not affected: before 4.20; from 5.4.251 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 4.20 before 5.4.251; from 5.5 before 5.10.188; from 5.11 before 5.15.121; from 5.16 before 6.1.39; from 6.2 before 6.3.13; from 6.4 before 6.4.4

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/45fa023b3334a7ae6f6c4eb977295804222dfa28> (patch)
- <https://git.kernel.org/stable/c/2990e2ece18dd4cca71b3109c80517ad94adb065> (patch)
- <https://git.kernel.org/stable/c/f4368a462b1f9a8ecc2fdb09a28c3d4cad302a4f> (patch)
- <https://git.kernel.org/stable/c/222cc459d59857ee28a5366dc225ab42b22f9272> (patch)
- <https://git.kernel.org/stable/c/b5015b97adda6a24dd3e713c63e521ecbeff25c6> (patch)
- <https://git.kernel.org/stable/c/144c7fd008e0072b0b565f1157eec618de54ca8a> (patch)
- <https://git.kernel.org/stable/c/34817a2441747b48e444cb0e05d84e14bc9443da> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53380 · Whole record: https://cve.day/CVE-2023-53380.json · Rebuilt by cve.day 2026-11-25T22:58:34.859Z
