CVE-2026-46161
Received Received - Intake
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
In the Linux kernel, the following vulnerability has been resolved: md/raid10: fix divide-by-zero in setup_geo() with zero far_copies setup_geo() extracts near_copies (nc) and far_copies (fc) from the user-provided layout parameter without checking for zero. When fc=0 with the "improved" far set layout selected, 'geo->far_set_size = disks / fc' triggers a divide-by-zero. Validate nc and fc immediately after extraction, returning -1 if either is zero.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-28
Last Modified
2026-05-28
Generated
2026-05-28
AI Q&A
2026-05-28
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart