# CVE-2024-50109: md/raid10: fix null ptr dereference in raid10_size()

- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-11-05T17:10:42.689Z
- Modified: 2026-06-17T08:03:36.637Z
- 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 dereference in raid10_size()

In raid10_run() if raid10_set_queue_limits() succeed, the return value
is set to zero, and if following procedures failed raid10_run() will
return zero while mddev->private is still NULL, causing null ptr
dereference in raid10_size().

Fix the problem by only overwrite the return value if
raid10_set_queue_limits() failed.

(As written by CVE List.)

## Affected

- Linux Linux: from 3d8466ba68d444f5528dcbff106e8bf5c7d51aa0 before b3054db2fd2d35f2eb3b4b5fb1407792f465391c; from 3d8466ba68d444f5528dcbff106e8bf5c7d51aa0 before 825711e00117fc686ab89ac36a9a7b252dc349c6; 6.9 (not affected: before 6.9; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.9 before 6.11.6; 6.12

## 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/b3054db2fd2d35f2eb3b4b5fb1407792f465391c> (patch)
- <https://git.kernel.org/stable/c/825711e00117fc686ab89ac36a9a7b252dc349c6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-50109 · Whole record: https://cve.day/CVE-2024-50109.json · Rebuilt by cve.day 2026-11-25T22:58:47.779Z
