md/raid10: fix divide-by-zero in setup_geo() with zero far_copies
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.88, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 0b43a70394ce492274e67463326be03e0a9897c5; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in c716ab3034f84f8a6c226814247b8c5ac9f95da1; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 553e32adfa1a96b217651139a3f8c3b92b9984ac; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 4af2e558e6fdfb972c61350653fd55d1f62b60a5; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 913d556e4bd1b56ed822815655b82c7bb54edc51; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in f9ddb621b2325eb69c95692958daf2bab4dea2c4; From 475901aff15841fb0a81e7546517407779a9b061 · fixed in 9aa6d860b0930e2f72795665c42c44252a558a0c
- Linux Linux
3.9
- KernelLinux
From 3.9.0 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.140; From 6.7.0 · fixed in 6.12.88; From 6.13.0 · fixed in 6.18.30; From 6.19.0 · fixed in 7.0.7
References 8
git.kernel.org
- stable/c/0b43a70394ce492274e67463326be03e0a9897c5
- stable/c/c716ab3034f84f8a6c226814247b8c5ac9f95da1
- stable/c/553e32adfa1a96b217651139a3f8c3b92b9984ac
- stable/c/4af2e558e6fdfb972c61350653fd55d1f62b60a5
- stable/c/9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda
- stable/c/913d556e4bd1b56ed822815655b82c7bb54edc51
- stable/c/f9ddb621b2325eb69c95692958daf2bab4dea2c4
- stable/c/9aa6d860b0930e2f72795665c42c44252a558a0c