{"id":"CVE-2026-143017","state":"PUBLISHED","title":"dm zoned: do not reclaim a random zone into another random zone","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm zoned: do not reclaim a random zone into another random zone\n\ndmz_reclaim_rnd_data() falls back to a random destination zone when no\nfree sequential zone is available and the target has cache zones. When\nthe target is idle and the cache zone list is empty,\ndmz_get_rnd_zone_for_reclaim() selects random zones of the zoned device\nas well, so a random zone is then copied into another random zone. That\nfrees nothing: the next pass picks the next random zone and copies it\nagain, for as long as the target stays idle.\n\nSeen on a two-device target (256 GiB regular cache device plus a 27 TB\nhost-managed drive) used as an md RAID5 member: after a full rebuild\nevery chunk was mapped and no sequential zone was free, and the idle\ndrive kept reading and writing while the free zone counters\nin \"dmsetup status\" did not change.\n\nOnly switch to a random destination zone when the zone being reclaimed\nis a cache zone: moving it to the zoned device still frees cache space.\n\nThis depends on \"dm zoned: back off when reclaim cannot make progress\":\nwithout it, dmz_reclaim_work() would retry the resulting -ENOSPC at\nonce, and run dmz_check_dev(), for as long as the target stays idle.\n\nTested on 7.4-rc1 together with the previous patch, on a two-device\ntarget (a 512 MiB RAM-backed regular cache device plus a 1 GiB\nscsi_debug host-managed drive) filled until no sequential zone was\nfree, then idle for 60 seconds: the stock module made 877\nrandom-to-random copies; with this series it made none, and each pass\nfailed with -ENOSPC once per DMZ_IDLE_PERIOD without a device check.","publishedAt":"2026-12-03T09:17:51.872Z","updatedAt":"2026-12-03T09:17:51.872Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"d5434e57b9dda8dbb9a8151fbcf8822f72afde26","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"4f035aceb6dc9c8704b9e5da1758cbe0f457199c","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"2d15a7484f36605d1d9e4519ddf2877de7f39d53","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"bde66db4cb6acf7a5327896c6cca1d36e132ab5a","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"fb49cab7623693db1652f1dc9ba7a8321b414f5e","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"dab527d83462a618d99bfc96370ce45ae3428706","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-zoned-reclaim.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-zoned-reclaim.c"]}],"references":["https://git.kernel.org/stable/c/d5434e57b9dda8dbb9a8151fbcf8822f72afde26","https://git.kernel.org/stable/c/4f035aceb6dc9c8704b9e5da1758cbe0f457199c","https://git.kernel.org/stable/c/2d15a7484f36605d1d9e4519ddf2877de7f39d53","https://git.kernel.org/stable/c/bde66db4cb6acf7a5327896c6cca1d36e132ab5a","https://git.kernel.org/stable/c/fb49cab7623693db1652f1dc9ba7a8321b414f5e","https://git.kernel.org/stable/c/dab527d83462a618d99bfc96370ce45ae3428706"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143017.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143017","state":"PUBLISHED","datePublished":"2026-12-03T09:17:51.872Z","dateUpdated":"2026-12-03T09:17:51.872Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.343Z"},"containers":{"cna":{"title":"dm zoned: do not reclaim a random zone into another random zone","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm zoned: do not reclaim a random zone into another random zone\n\ndmz_reclaim_rnd_data() falls back to a random destination zone when no\nfree sequential zone is available and the target has cache zones. When\nthe target is idle and the cache zone list is empty,\ndmz_get_rnd_zone_for_reclaim() selects random zones of the zoned device\nas well, so a random zone is then copied into another random zone. That\nfrees nothing: the next pass picks the next random zone and copies it\nagain, for as long as the target stays idle.\n\nSeen on a two-device target (256 GiB regular cache device plus a 27 TB\nhost-managed drive) used as an md RAID5 member: after a full rebuild\nevery chunk was mapped and no sequential zone was free, and the idle\ndrive kept reading and writing while the free zone counters\nin \"dmsetup status\" did not change.\n\nOnly switch to a random destination zone when the zone being reclaimed\nis a cache zone: moving it to the zoned device still frees cache space.\n\nThis depends on \"dm zoned: back off when reclaim cannot make progress\":\nwithout it, dmz_reclaim_work() would retry the resulting -ENOSPC at\nonce, and run dmz_check_dev(), for as long as the target stays idle.\n\nTested on 7.4-rc1 together with the previous patch, on a two-device\ntarget (a 512 MiB RAM-backed regular cache device plus a 1 GiB\nscsi_debug host-managed drive) filled until no sequential zone was\nfree, then idle for 60 seconds: the stock module made 877\nrandom-to-random copies; with this series it made none, and each pass\nfailed with -ENOSPC once per DMZ_IDLE_PERIOD without a device check."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"d5434e57b9dda8dbb9a8151fbcf8822f72afde26","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"4f035aceb6dc9c8704b9e5da1758cbe0f457199c","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"2d15a7484f36605d1d9e4519ddf2877de7f39d53","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"bde66db4cb6acf7a5327896c6cca1d36e132ab5a","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"fb49cab7623693db1652f1dc9ba7a8321b414f5e","versionType":"git"},{"version":"c5c7885952927384837a070793698d996cb0fbf3","status":"affected","lessThan":"dab527d83462a618d99bfc96370ce45ae3428706","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-zoned-reclaim.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-zoned-reclaim.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d5434e57b9dda8dbb9a8151fbcf8822f72afde26"},{"url":"https://git.kernel.org/stable/c/4f035aceb6dc9c8704b9e5da1758cbe0f457199c"},{"url":"https://git.kernel.org/stable/c/2d15a7484f36605d1d9e4519ddf2877de7f39d53"},{"url":"https://git.kernel.org/stable/c/bde66db4cb6acf7a5327896c6cca1d36e132ab5a"},{"url":"https://git.kernel.org/stable/c/fb49cab7623693db1652f1dc9ba7a8321b414f5e"},{"url":"https://git.kernel.org/stable/c/dab527d83462a618d99bfc96370ce45ae3428706"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:17:51.872Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}