CVE-2026-89752: mm: memcg: stop reclaim when a limit update is superseded

Published Sep 11, 2026
·
Updated

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

mm: memcg: stop reclaim when a limit update is superseded

kernfs serializes file operations only per open file, so separate open files can update the same memory.high or memory.max file concurrently. Both handlers store the new limit before synchronous reclaim, but continue to use the writer's local target in the reclaim loop. If another writer raises or removes the limit, the first writer can continue reclaiming toward a stale target.

For memory.max, this can leave the writer looping indefinitely once reclaim retries are exhausted. The OOM path sees sufficient margin under the current limit and returns true without killing, while the writer still compares usage against its stale target and records another OOM event.

Check the current limit at the start of each reclaim iteration and stop if it no longer matches the writer's target.

Reproducer:

Populate a cgroup with anonymous memory and disable swapping. Lower memory.max from one open file, then restore it to "max" through another open file after the new limit becomes visible.

Without the patch, the first writer remains blocked and repeatedly increments the OOM event counter. With the patch, it returns normally.

This was not motivated by a reported production workload. We found it through automated randomized testing for our cgroup observability work and reduced it to the reproducer above.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (mm: memcg) to a version that resolves this vulnerability.

    Patch Lower
  2. Compensating control

    Populate a cgroup with anonymous memory and disable swapping to avoid the vulnerable reclaim/OOM behavior in the described scenario.

Event History

Sep 11, 2026
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using memory cgroups where more than one open file can concurrently write to the same memory.high or memory.max control file are exposed. The affected behavior requires concurrent limit updates to the same cgroup setting.

2

What does an attacker or triggering workload need to do?

It needs the ability to perform cgroup memory-limit updates through separate open file handles. One writer lowers a limit and begins synchronous reclaim, while another raises the limit or changes memory.max to "max" after the lower limit becomes visible.

3

What happens if the issue is triggered?

The first limit writer can continue reclaiming toward its obsolete limit rather than the current one. For memory.max, it can remain blocked indefinitely after reclaim retries are exhausted and repeatedly record OOM events without an OOM kill occurring.

4

How can I tell whether a system may already be affected?

Look for a blocked writer updating memory.max after another writer has raised or removed that limit. A corresponding symptom is repeated OOM events for the cgroup even though its usage has sufficient margin under the current memory.max value.

5

What can be done before applying the fix?

Avoid concurrent writes to the same cgroup's memory.high or memory.max files, especially sequences that lower memory.max and then restore it through a separate open file. Serialize limit-management operations so the reclaiming writer's target is not superseded.

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