CVE-2026-139006
md/raid5: track disks array size to fix extra_page leak on error paths
Check your servers for CVE-2026-139006
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139006 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before e88c6ccee75ccb1334df0648843e2bc500ce90d0 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before 8e1fa4e1e542ea25cf14e1d7a18b438c51eac6d6 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before 006ff293b34060e15ddfa50cbb2778a2446116ab affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before 6a5408c6be7c3867221e0c692fc0c4f065c14f38 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before fa1f5f15514c52936e12c77c6f719af6ec51a152 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before e4e9104f9ce463b6876144bae6d1e4484ceb3325 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before a0401d7e0aa3f36501a868ec8b1e6bcfaa7dcd35 affected from d7bd398e97f236a2353689eca5e8950f67cd34d5, before 5028ceee173bfcf844469cfb0d1c151d3f6d0296
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139006 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139006
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139006
trivy image --scanners vuln IMAGE | grep CVE-2026-139006
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e88c6ccee75ccb1334df0648843e2bc500ce90d0 git.kernel.org
- https://git.kernel.org/stable/c/8e1fa4e1e542ea25cf14e1d7a18b438c51eac6d6 git.kernel.org
- https://git.kernel.org/stable/c/006ff293b34060e15ddfa50cbb2778a2446116ab git.kernel.org
- https://git.kernel.org/stable/c/6a5408c6be7c3867221e0c692fc0c4f065c14f38 git.kernel.org
- https://git.kernel.org/stable/c/fa1f5f15514c52936e12c77c6f719af6ec51a152 git.kernel.org
- https://git.kernel.org/stable/c/e4e9104f9ce463b6876144bae6d1e4484ceb3325 git.kernel.org
- https://git.kernel.org/stable/c/a0401d7e0aa3f36501a868ec8b1e6bcfaa7dcd35 git.kernel.org
- https://git.kernel.org/stable/c/5028ceee173bfcf844469cfb0d1c151d3f6d0296 git.kernel.org
Source: the record CVE-2026-139006 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse