{"id":"CVE-2026-46161","summary":"md/raid10: fix divide-by-zero in setup_geo() with zero far_copies","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid10: fix divide-by-zero in setup_geo() with zero far_copies\n\nsetup_geo() extracts near_copies (nc) and far_copies (fc) from the\nuser-provided layout parameter without checking for zero. When fc=0\nwith the \"improved\" far set layout selected, 'geo-\u003efar_set_size =\ndisks / fc' triggers a divide-by-zero.\n\nValidate nc and fc immediately after extraction, returning -1 if\neither is zero.","modified":"2026-07-08T08:13:39.566578952Z","published":"2026-05-28T09:36:16.428Z","related":["openSUSE-SU-2026:10954-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46161.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0b43a70394ce492274e67463326be03e0a9897c5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4af2e558e6fdfb972c61350653fd55d1f62b60a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/553e32adfa1a96b217651139a3f8c3b92b9984ac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/913d556e4bd1b56ed822815655b82c7bb54edc51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9aa6d860b0930e2f72795665c42c44252a558a0c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c716ab3034f84f8a6c226814247b8c5ac9f95da1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9ddb621b2325eb69c95692958daf2bab4dea2c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46161.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46161"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"475901aff15841fb0a81e7546517407779a9b061"},{"fixed":"0b43a70394ce492274e67463326be03e0a9897c5"},{"fixed":"c716ab3034f84f8a6c226814247b8c5ac9f95da1"},{"fixed":"553e32adfa1a96b217651139a3f8c3b92b9984ac"},{"fixed":"4af2e558e6fdfb972c61350653fd55d1f62b60a5"},{"fixed":"9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda"},{"fixed":"913d556e4bd1b56ed822815655b82c7bb54edc51"},{"fixed":"f9ddb621b2325eb69c95692958daf2bab4dea2c4"},{"fixed":"9aa6d860b0930e2f72795665c42c44252a558a0c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46161.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9.0"},{"fixed":"5.10.258"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.140"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.88"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.30"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46161.json"}}],"schema_version":"1.7.5"}