{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139683","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.947Z","datePublished":"2026-11-30T13:37:00.903Z","dateUpdated":"2026-12-01T05:43:04.368Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:04.368Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: reject v0.90 arrays with too many devices\n\nThe v0.90 superblock has room for MD_SB_DISKS device descriptors, but\nsuper_90_load() only rejects nonpositive raid_disks values. A crafted\nsuperblock can therefore copy a larger value into mddev->raid_disks. When\nmetadata is next updated, super_90_sync() walks sb->disks[] up to that\ncount and reads and writes beyond the 4 KiB superblock buffer.\n\nA checksum-valid RAID1 member advertising 64 devices can be assembled by\nmdadm --incremental --run. The first write to the array then produces\nout-of-bounds writes from super_90_sync() under KASAN.\n\nReject device counts that cannot be represented by the v0.90 format while\nloading the superblock."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The oversized sb->raid_disks comes from a v0.90 superblock that super_90_load() reads off a local member block device (a udisks loop partition or an attached disk). super_90_validate() then copies it into mddev->raid_disks. No network protocol message carries the value.\nAC:L - The attacker does every step. They write a checksum-valid 0.90 RAID1 member with raid_disks=64 and one SYNC|ACTIVE slot, so mdadm's working_disks is 1. They set set_uuid2/3=sha1(hostname or \"any\"), so Incremental issues RUN_ARRAY (RDWR). A spare-role partition's ADD_NEW_DISK then reaches add_bound_rdev(), which sets MD_SB_CHANGE_DEVS. md_update_sb()->super_90_sync() follows deterministically.\nPR:L - md_ioctl_valid() and the md sysfs stores require init capable(CAP_SYS_ADMIN). However, an active-session user can attach their own image via udisks LoopSetup (polkit allow_active=yes, partscan on). 64-md-raid-assembly.rules then runs mdadm --incremental as root on the partition add events, and mdadm's load_super0() does not bound raid_disks either.\nUI:N - No victim action is needed. The attacker's own LoopSetup call produces the uevents, and udev/mdadm assemble and start the array. The spare hot-add then makes the md thread rewrite the superblock without any write to /dev/mdX.\nS:U - The out-of-bounds access hits host kernel memory next to rdev->sb_page and stays within the host kernel's own authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - super_90_sync() ends with sb->this_disk = sb->disks[rdev->desc_nr]. For the spare (desc_nr = raid_disks = 64) that copies 108 bytes of the physically following page into the superblock, which md_super_write() stores on the attacker's own backing file. raid_disks chooses the offset, and every superblock update repeats the leak.\nI:H - sb_page is one alloc_page() and disks[] fills it exactly (disks[27] overlaps this_disk). The rdev loop writes number/major/minor/raid_disk/state at disks[desc_nr], up to 4.6KB past the page. The missing-device loop (i < raid_disks) writes i/i/0x9 into every 128-byte stride whose number and state are zero. Both are out-of-bounds writes into a neighbouring physical page.\nA:H - Corrupting whatever owns the following physical page (slab, page tables, page cache) can crash the kernel. KASAN reports the out-of-bounds write in super_90_sync() on the first metadata update, and a larger raid_disks extends the missing-device walk across more neighbouring pages."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"47a8e61493c1caa56278b91ad1a3e30770adc70d","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"4d740f67a253526bf57b9f19d01fb5fc489590c4","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"d0ef3b2a0f47681739fbf0eedce561ad12cc249d","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"bd722d5849f7cdb8b9555efaaa8dd05bcd69891d","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"5e95d1c63f7fa433599e45f9be7d62718bb55b9b","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"85769c30a466da1394d072d3c5fb64745a780a18","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"b8d33418991fa5090962bf73bda68e776bd77e40","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"1a33a379e67853d6d778e6e80b214bdf1208f6f8","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/47a8e61493c1caa56278b91ad1a3e30770adc70d"},{"url":"https://git.kernel.org/stable/c/4d740f67a253526bf57b9f19d01fb5fc489590c4"},{"url":"https://git.kernel.org/stable/c/d0ef3b2a0f47681739fbf0eedce561ad12cc249d"},{"url":"https://git.kernel.org/stable/c/bd722d5849f7cdb8b9555efaaa8dd05bcd69891d"},{"url":"https://git.kernel.org/stable/c/5e95d1c63f7fa433599e45f9be7d62718bb55b9b"},{"url":"https://git.kernel.org/stable/c/85769c30a466da1394d072d3c5fb64745a780a18"},{"url":"https://git.kernel.org/stable/c/b8d33418991fa5090962bf73bda68e776bd77e40"},{"url":"https://git.kernel.org/stable/c/1a33a379e67853d6d778e6e80b214bdf1208f6f8"}],"title":"md: reject v0.90 arrays with too many devices","x_generator":{"engine":"bippy-1.2.0"}}}}