{"id":"CVE-2026-89578","summary":"dm-io: clone the source bio instead of copying its biovec","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-io: clone the source bio instead of copying its biovec\n\nFor DM_IO_BIO requests, do_region() built each destination bio by walking\nthe source bio's biovec and re-adding the pages one at a time, tracking\nthe remaining transfer in sectors. The vector lengths are byte granular\nand need not be sector aligned (e.g. a misaligned O_DIRECT buffer split\nacross pages), so the sector-based accounting could lose a sub-sector\nfragment: to_sector() truncated the remainder and the outer loop spun\nforever submitting empty bios, hanging the I/O.\n\nThere is no need to rebuild the biovec at all. The destination reads into\n(or writes from) exactly the same pages as the source bio, so the bio can\nsimply clone the source's biovec with bio_alloc_clone() and remap it to\nthe target device. The clone inherits the source's iterator and alignment,\nand the block layer splits it to the target's limits on submission, so the\nwhole region maps to a single cloned bio with no manual page copying or\nsector accounting.\n\nThis removes the per-page copy path (and its open-coded bvec dpages\nhelpers) for bio-backed I/O and fixes the hang on misaligned direct I/O to\na dm-mirror device. Page-list, vma and kmem sources keep the existing copy\npath.","modified":"2026-09-13T03:47:19.463558836Z","published":"2026-09-11T19:44:45.364Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89578.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/62dc37a819a5a5de5cba989ad9e96ee214b9253e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8dc48b68d7c3e6ecaae80fc1592befb0e8603d6c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9493ac67623d45b7d4671d2b0b4d0633c2bc2e51"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89578.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89578"},{"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":"5ff3f74e145adc79b49668adb8de276446acf6be"},{"fixed":"9493ac67623d45b7d4671d2b0b4d0633c2bc2e51"},{"fixed":"8dc48b68d7c3e6ecaae80fc1592befb0e8603d6c"},{"fixed":"62dc37a819a5a5de5cba989ad9e96ee214b9253e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89578.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89578.json"}}],"schema_version":"1.9.0"}