Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139682

published

md/raid5: don't BUG() on an inconsistent reshape state from the superblock

Published
30 Nov 2026, 13:37:00 UTC
Updated
30 Nov 2026, 13:37:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux91adb56473febeeb3ef657bb5147ddd355465700 to < 996c0df409b1cf2d4e9bb0dce0cb4ba0c1f50ed7 · 91adb56473febeeb3ef657bb5147ddd355465700 to < c093f0dd9119bee681facb5af2efbe476945666c · 91adb56473febeeb3ef657bb5147ddd355465700 to < ef2a78ba818d0cd046c2f1614aebd200a26e01d6 · 91adb56473febeeb3ef657bb5147ddd355465700 to < 50485f1be262c2085443662b4a8be084fa958b9d · 91adb56473febeeb3ef657bb5147ddd355465700 to < 136a221544d919896a0f1bff8802eb51d0dff496 · 91adb56473febeeb3ef657bb5147ddd355465700 to < 57926a227a2d610f586b99de2638a02b72e99762 · 91adb56473febeeb3ef657bb5147ddd355465700 to < fa4122799a5bff6902848eafa00dc8e245ba261f · 91adb56473febeeb3ef657bb5147ddd355465700 to < 0669c7dbd1d375f279e607a24addc2f1dae2d4f3 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.30 (affected) · 0 to < 2.6.30 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: md/raid5: don't BUG() on an inconsistent reshape state from the superblock raid5_run() branches on mddev->reshape_position. When it is MaxSector -- no reshape in progress -- the else branch asserts that nothing else describes one: BUG_ON(mddev->level != mddev->new_level); BUG_ON(mddev->layout != mddev->new_layout); BUG_ON(mddev->chunk_sectors != mddev->new_chunk_sectors); BUG_ON(mddev->delta_disks != 0); Nothing enforces that invariant. Both superblock validators copy the reshape fields straight off disk without cross-checking them against each other: super_1_validate() takes reshape_position, delta_disks, new_level, new_layout and new_chunk from the superblock whenever MD_FEATURE_RESHAPE_ACTIVE is set, and super_90_validate() does the same for minor version 91. A superblock that sets the reshape feature while leaving reshape_position at the MaxSector sentinel therefore reaches the else branch with a non-zero delta_disks, and assembling the array takes the machine down: kernel BUG at drivers/md/raid5.c:8117! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:raid5_run+0x11a7/0x1670 drivers/md/raid5.c:8117 Call Trace: md_run+0xc2f/0x2510 drivers/md/md.c:6779 do_md_run+0x36/0x660 drivers/md/md.c:6880 array_state_store+0x9c5/0xcf0 drivers/md/md.c:4765 md_attr_store+0x1c5/0x330 drivers/md/md.c:6158 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 This is reachable by anyone who can present an md superblock, so BUG() is the wrong response. Refuse to start the array instead, the way the reshape_position != MaxSector branch a few lines above already refuses a reshape it cannot resume. Nothing has been allocated at this point -- the journal-and-bitmap check just above returns -EINVAL the same way -- so there is nothing to unwind.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 91adb56473febeeb3ef657bb5147ddd355465700 to < 996c0df409b1cf2d4e9bb0dce0cb4ba0c1f50ed7 (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < c093f0dd9119bee681facb5af2efbe476945666c (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < ef2a78ba818d0cd046c2f1614aebd200a26e01d6 (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < 50485f1be262c2085443662b4a8be084fa958b9d (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < 136a221544d919896a0f1bff8802eb51d0dff496 (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < 57926a227a2d610f586b99de2638a02b72e99762 (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < fa4122799a5bff6902848eafa00dc8e245ba261f (affected · git)91adb56473febeeb3ef657bb5147ddd355465700 to < 0669c7dbd1d375f279e607a24addc2f1dae2d4f3 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.30 (affected)0 to < 2.6.30 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

md/raid5: don't BUG() on an inconsistent reshape state from the superblock

Provenance

Schema
5.2
Searchable
yes
Content hash
1342946169b4b7c0ffd8171378a4d726a948f34c9e736ddb8899fe42350b6d12
Ingested
30 Nov 2026, 13:43:49 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected