CVE-2026-139006

Source
https://cve.org/CVERecord?id=CVE-2026-139006
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139006.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139006
Downstream
Published
2026-11-30T13:27:00Z
Modified
2026-11-30T15:01:44Z
Summary
md/raid5: track disks array size to fix extra_page leak on error paths
Details

In the Linux kernel, the following vulnerability has been resolved:

md/raid5: track disks array size to fix extra_page leak on error paths

free_conf() iterates conf->pool_size entries to free extra_page allocations, but pool_size may not reflect the actual size of the conf->disks array. Two scenarios cause a mismatch:

  1. setup_conf() early abort: pool_size is 0 (not yet set by grow_stripes) but conf->disks has max_disks entries with extra_page allocated. The loop iterates 0 times, leaking all pages.

  2. resize_stripes() Step 4 failure: conf->disks was replaced with a newsize-entry array in Step 3, but pool_size is only updated on success. The loop iterates pool_size (old, smaller value) times, leaking (newsize - pool_size) pages.

Add a dedicated disks_cnt field to track the actual number of entries in conf->disks. Set it immediately after each allocation or replacement (in setup_conf and resize_stripes Step 3, where the array is safely stalled with no concurrent access), and use it in free_conf() instead of pool_size.

This leaves pool_size untouched, preserving the check_reshape() retry behavior that depends on pool_size only being updated on full success.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139006.json"
}
References

Affected packages

Git / 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
d7bd398e97f236a2353689eca5e8950f67cd34d5
Fixed
e88c6ccee75ccb1334df0648843e2bc500ce90d0
Fixed
8e1fa4e1e542ea25cf14e1d7a18b438c51eac6d6
Fixed
006ff293b34060e15ddfa50cbb2778a2446116ab
Fixed
6a5408c6be7c3867221e0c692fc0c4f065c14f38
Fixed
fa1f5f15514c52936e12c77c6f719af6ec51a152
Fixed
e4e9104f9ce463b6876144bae6d1e4484ceb3325
Fixed
a0401d7e0aa3f36501a868ec8b1e6bcfaa7dcd35
Fixed
5028ceee173bfcf844469cfb0d1c151d3f6d0296

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139006.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139006.json"