CVE-2026-139006: md/raid5: track disks array size to fix extra_page leak on error paths

Published Nov 30, 2026
·
Updated

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

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

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

1. setupconf() early abort: poolsize is 0 (not yet set by growstripes) but conf->disks has maxdisks entries with extrapage allocated. The loop iterates 0 times, leaking all pages.

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

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

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

Affected Software

12 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.10.0<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3
6.12.117-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  8. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  9. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  10. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  11. Compensating control

    In Linux kernel md/raid5, add a dedicated disks_cnt field for the actual conf->disks array size, set it immediately after each allocation, and use it in free_conf() instead of pool_size.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description
Data Sourced
via OSV·01:27 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux kernel systems using md/raid5 are relevant when RAID5 setup or stripe resizing encounters an error path. The described leak depends on a mismatch between the allocated disks array size and pool_size.

2

When can the page leak occur?

It can occur when setup_conf() aborts before pool_size is set, or when resize_stripes() fails at Step 4 after replacing conf->disks with a larger array. In both cases, free_conf() may free fewer extra_page allocations than were created.

3

What does the fix change during cleanup?

The fix adds a disks_cnt field that records the actual number of conf->disks entries immediately after allocation or replacement. free_conf() uses this count for cleanup while leaving pool_size behavior unchanged for reshape retry handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203