CVE-2026-46161
Linux kernel md/raid10 divide-by-zero in setup_geo
Publication date: 2026-05-28
Last updated on: 2026-05-28
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's md/raid10 module, specifically in the setup_geo() function. The function extracts two parameters, near_copies (nc) and far_copies (fc), from a user-provided layout without checking if either is zero. When far_copies (fc) is zero and the "improved" far set layout is selected, a divide-by-zero error occurs because the code attempts to divide by fc.
The fix involves validating nc and fc immediately after extraction and returning an error (-1) if either is zero, preventing the divide-by-zero condition.
How can this vulnerability impact me? :
This vulnerability can cause a divide-by-zero error in the Linux kernel's RAID10 setup process, which may lead to a kernel crash or system instability. Such a crash could result in denial of service, potentially disrupting system operations or data availability.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is caused by a divide-by-zero error in the Linux kernel's md/raid10 setup_geo() function when far_copies is zero. To mitigate this vulnerability, you should update your Linux kernel to a version where this issue is fixed.
The fix involves validating the near_copies and far_copies parameters immediately after extraction and returning an error if either is zero, preventing the divide-by-zero condition.