CVE-2024-50109

md/raid10: fix null ptr dereference in raid10_size()

State
Published
Severity
5.5 Medium
Published
Nov 5, 2024
Updated
May 11, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 3d8466ba68d444f5528dcbff106e8bf5c7d51aa0 to before b3054db2fd2d35f2eb3b4b5fb1407792f465391cAffected
  • 3d8466ba68d444f5528dcbff106e8bf5c7d51aa0 to before 825711e00117fc686ab89ac36a9a7b252dc349c6Affected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.11.6 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.