md/raid10: fix null ptr dereference in raid10_size()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
A failure during RAID10 startup can leave mddev->private NULL while raid10_run() reports success. A subsequent call to raid10_size() can then dereference the null pointer. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel with md/raid10 should check their installations; affected versions are not specified.