md/raid10: fix divide-by-zero in setup_geo() with zero far_copies

Summary

CVECVE-2026-46161
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-28 10:16:31 UTC
Updated2026-06-01 17:17:29 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.000180000 probability, percentile 0.050770000 (date 2026-06-01)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 0b43a70394ce492274e67463326be03e0a9897c5 git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 c716ab3034f84f8a6c226814247b8c5ac9f95da1 git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 553e32adfa1a96b217651139a3f8c3b92b9984ac git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 4af2e558e6fdfb972c61350653fd55d1f62b60a5 git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 913d556e4bd1b56ed822815655b82c7bb54edc51 git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 f9ddb621b2325eb69c95692958daf2bab4dea2c4 git Not specified
CNA Linux Linux affected 475901aff15841fb0a81e7546517407779a9b061 9aa6d860b0930e2f72795665c42c44252a558a0c git Not specified
CNA Linux Linux affected 3.9 Not specified
CNA Linux Linux unaffected 3.9 semver Not specified
CNA Linux Linux unaffected 5.10.258 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.209 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.175 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.140 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.88 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.30 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.7 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/913d556e4bd1b56ed822815655b82c7bb54edc51 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0b43a70394ce492274e67463326be03e0a9897c5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9aa6d860b0930e2f72795665c42c44252a558a0c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/553e32adfa1a96b217651139a3f8c3b92b9984ac 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4af2e558e6fdfb972c61350653fd55d1f62b60a5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f9ddb621b2325eb69c95692958daf2bab4dea2c4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c716ab3034f84f8a6c226814247b8c5ac9f95da1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report