{"api_version":"1","generated_at":"2026-12-01T06:50:19+00:00","cve":"CVE-2026-139683","urls":{"html":"https://cve.report/CVE-2026-139683","api":"https://cve.report/api/cve/CVE-2026-139683.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139683","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139683"},"summary":{"title":"md: reject v0.90 arrays with too many devices","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:56","updated_at":"2026-12-01 06:17:47"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/85769c30a466da1394d072d3c5fb64745a780a18","name":"https://git.kernel.org/stable/c/85769c30a466da1394d072d3c5fb64745a780a18","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b8d33418991fa5090962bf73bda68e776bd77e40","name":"https://git.kernel.org/stable/c/b8d33418991fa5090962bf73bda68e776bd77e40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4d740f67a253526bf57b9f19d01fb5fc489590c4","name":"https://git.kernel.org/stable/c/4d740f67a253526bf57b9f19d01fb5fc489590c4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bd722d5849f7cdb8b9555efaaa8dd05bcd69891d","name":"https://git.kernel.org/stable/c/bd722d5849f7cdb8b9555efaaa8dd05bcd69891d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d0ef3b2a0f47681739fbf0eedce561ad12cc249d","name":"https://git.kernel.org/stable/c/d0ef3b2a0f47681739fbf0eedce561ad12cc249d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/47a8e61493c1caa56278b91ad1a3e30770adc70d","name":"https://git.kernel.org/stable/c/47a8e61493c1caa56278b91ad1a3e30770adc70d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5e95d1c63f7fa433599e45f9be7d62718bb55b9b","name":"https://git.kernel.org/stable/c/5e95d1c63f7fa433599e45f9be7d62718bb55b9b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1a33a379e67853d6d778e6e80b214bdf1208f6f8","name":"https://git.kernel.org/stable/c/1a33a379e67853d6d778e6e80b214bdf1208f6f8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139683","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139683","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 47a8e61493c1caa56278b91ad1a3e30770adc70d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 4d740f67a253526bf57b9f19d01fb5fc489590c4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 d0ef3b2a0f47681739fbf0eedce561ad12cc249d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 bd722d5849f7cdb8b9555efaaa8dd05bcd69891d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 5e95d1c63f7fa433599e45f9be7d62718bb55b9b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 85769c30a466da1394d072d3c5fb64745a780a18 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 b8d33418991fa5090962bf73bda68e776bd77e40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 1a33a379e67853d6d778e6e80b214bdf1208f6f8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/md/md.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"47a8e61493c1caa56278b91ad1a3e30770adc70d","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"4d740f67a253526bf57b9f19d01fb5fc489590c4","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"d0ef3b2a0f47681739fbf0eedce561ad12cc249d","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"bd722d5849f7cdb8b9555efaaa8dd05bcd69891d","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"5e95d1c63f7fa433599e45f9be7d62718bb55b9b","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"85769c30a466da1394d072d3c5fb64745a780a18","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"b8d33418991fa5090962bf73bda68e776bd77e40","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"1a33a379e67853d6d778e6e80b214bdf1208f6f8","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/md/md.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:43:04.368Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139683","datePublished":"2026-11-30T13:37:00.903Z","dateReserved":"2026-11-30T13:22:15.947Z","dateUpdated":"2026-12-01T05:43:04.368Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:56","lastModifiedDate":"2026-12-01 06:17:47","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139683","Ordinal":"1","Title":"md: reject v0.90 arrays with too many devices","CVE":"CVE-2026-139683","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139683","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"md: reject v0.90 arrays with too many devices"}]}}}