md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 144c7fd008e0072b0b565f1157eec618de54ca8a, Kernel 222cc459d59857ee28a5366dc225ab42b22f9272, Kernel 2990e2ece18dd4cca71b3109c80517ad94adb065 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.20, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <144c7fd008e0072b0b565f1157eec618de54ca8a, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <222cc459d59857ee28a5366dc225ab42b22f9272, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <2990e2ece18dd4cca71b3109c80517ad94adb065, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <34817a2441747b48e444cb0e05d84e14bc9443da, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <45fa023b3334a7ae6f6c4eb977295804222dfa28, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <b5015b97adda6a24dd3e713c63e521ecbeff25c6, >=ee37d7314a32ab6809eacc3389bad0406c69a81f <f4368a462b1f9a8ecc2fdb09a28c3d4cad302a4f | 144c7fd008e0072b0b565f1157eec618de54ca8a, 222cc459d59857ee28a5366dc225ab42b22f9272, 2990e2ece18dd4cca71b3109c80517ad94adb065, 34817a2441747b48e444cb0e05d84e14bc9443da, 45fa023b3334a7ae6f6c4eb977295804222dfa28, b5015b97adda6a24dd3e713c63e521ecbeff25c6, f4368a462b1f9a8ecc2fdb09a28c3d4cad302a4f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket