AZL-116785: CVE-2026-138864 affecting package kernel 6.6.161.1-1

Published Nov 30, 2026
·
Updated

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

mm/pagecounter: avoid integer overflow in effectiveprotection()

Patch series "mm/mglru: fix ineffective memory protection for non-kswapd reclaim", v4.

For MGLRU, memory.min/low is not honored during non-kswapd global reclaim (global direct reclaim and root-level memory.reclaim), because these paths shrink memcgs using stale protection (emin/elow).

Patch 2 is the actual fix. Patch 1 is a prerequisite: an integer overflow in effectiveprotection(), spotted by the sashiko review tool, which patch 2's new caller would also be exposed to.

This patch (of 2):

effectiveprotection() scales a parent's protection by a ratio of page counts, e.g. for recursive protection:

(parenteffective - siblingsprotected) (usage - protected) / (parentusage - siblingsprotected)

The multiply is done at unsigned long width before dividing. On systems with >= 16TB RAM the product can exceed 2^64 and wrap, giving a bogus protection value and silently breaking memory.min/low enforcement.

Use mulu64u64divu64() to multiply in a 128-bit intermediate. Because usage and parentusage are not read atomically (a child is charged before its parent), usage - protected can briefly exceed the divisor, making the quotient overflow 64 bits and trap (#DE on x86). Cap it so the ratio stays <= 1.

Reported by the sashiko review tool [1].

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Cap the protection ratio so it stays <= 1.

  2. Compensating control

    Use mul_u64_u64_div_u64() to multiply in a 128-bit intermediate in effective_protection(), avoiding integer overflow.

Event History

Nov 30, 2026
Advisory Published
via OSV·02:17 PM
Data Sourced
via OSV·02:17 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which systems are most likely to be affected by the overflow condition?

The described overflow requires systems with at least 16 TB of RAM, where a page-count multiplication can exceed 2^64. The impact is relevant to systems relying on memory.min or memory.low protection, including recursive protection scenarios.

2

What is the practical impact if the condition occurs?

The overflow can produce a bogus effective protection value and silently prevent correct enforcement of memory.min and memory.low. This can result in ineffective memory protection during reclaim.

3

How can I assess whether a system needs remediation?

Check whether the system is running the affected azure-linux kernel package version 6.6.161.1-1 and has at least 16 TB of RAM. Also review whether memory.min or memory.low protections are configured or relied upon for memory control groups.

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