# CVE-2024-43892: memcg: protect concurrent access to mem\_cgroup\_idr

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **Published:** 2024-08-26T10:10:46.612Z
- **Modified:** 2026-08-05T11:37:02.011Z

## Who should check

- Anyone running Linux \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 912736a0435ef40e6a4ae78197ccb5553cb80b05; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< e6cc9ff2ac0b5df9f25eb790934c3104f6710278; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 37a060b64ae83b76600d187d76591ce488ab836b; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 51c0b1bb7541f8893ec1accba59eb04361a70946; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 9972605a238339b85bd16b084eed5f18414d22db; 8627c7750a66a46d56d3564e1e881aa53764497c; db70cd18d3da727a3a59694de428a9e41c620de7; \>= 4.4.18, \< 4.5; \>= 4.6.6, \< 4.7
- Anyone running Linux 4.7

## Description

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

memcg: protect concurrent access to mem\_cgroup\_idr

Commit 73f576c04b94 ("mm: memcontrol: fix cgroup creation failure after
many small jobs") decoupled the memcg IDs from the CSS ID space to fix the
cgroup creation failures.  It introduced IDR to maintain the memcg ID
space.  The IDR depends on external synchronization mechanisms for
modifications.  For the mem\_cgroup\_idr, the idr\_alloc() and idr\_replace()
happen within css callback and thus are protected through cgroup\_mutex
from concurrent modifications.  However idr\_remove() for mem\_cgroup\_idr
was not protected against concurrency and can be run concurrently for
different memcgs when they hit their refcnt to zero.  Fix that.

We have been seeing list\_lru based kernel crashes at a low frequency in
our fleet for a long time.  These crashes were in different part of
list\_lru code including list\_lru\_add(), list\_lru\_del() and reparenting
code.  Upon further inspection, it looked like for a given object (dentry
and inode), the super\_block's list\_lru didn't have list\_lru\_one for the
memcg of that object.  The initial suspicions were either the object is
not allocated through kmem\_cache\_alloc\_lru() or somehow
memcg\_list\_lru\_alloc() failed to allocate list\_lru\_one() for a memcg but
returned success.  No evidence were found for these cases.

Looking more deeply, we started seeing situations where valid memcg's id
is not present in mem\_cgroup\_idr and in some cases multiple valid memcgs
have same id and mem\_cgroup\_idr is pointing to one of them.  So, the most
reasonable explanation is that these situations can happen due to race
between multiple idr\_remove() calls or race between
idr\_alloc()/idr\_replace() and idr\_remove().  These races are causing
multiple memcgs to acquire the same ID and then offlining of one of them
would cleanup list\_lrus on the system for all of them.  Later access from
other memcgs to the list\_lru cause crashes due to missing list\_lru\_one.

## Affected and fixed versions

- Linux: \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 912736a0435ef40e6a4ae78197ccb5553cb80b05; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< e6cc9ff2ac0b5df9f25eb790934c3104f6710278; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 37a060b64ae83b76600d187d76591ce488ab836b; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 51c0b1bb7541f8893ec1accba59eb04361a70946; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 9972605a238339b85bd16b084eed5f18414d22db; 8627c7750a66a46d56d3564e1e881aa53764497c; db70cd18d3da727a3a59694de428a9e41c620de7; \>= 4.4.18, \< 4.5; \>= 4.6.6, \< 4.7 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 4.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-43892. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43892.md
Affected: Linux >= 73f576c04b9410ed19660f74f97521bee6e1c546, < 912736a0435ef40e6a4ae78197ccb5553cb80b05; >= 73f576c04b9410ed19660f74f97521bee6e1c546, < e6cc9ff2ac0b5df9f25eb790934c3104f6710278; >= 73f576c04b9410ed19660f74f97521bee6e1c546, < 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb; >= 73f576c04b9410ed19660f7…
Fixed in: Linux 912736a0435ef40e6a4ae78197ccb5553cb80b05, Linux 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb, Linux 37a060b64ae83b76600d187d76591ce488ab836b, Linux 51c0b1bb7541f8893ec1accba59eb04361a70946, Linux 9972605a238339b85bd16b084eed5f18414d22db, Linux 4.5, Linux 4.7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-43892 being exploited?

There is no confirmed exploitation: CVE-2024-43892 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-43892?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-43892?

Linux \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 912736a0435ef40e6a4ae78197ccb5553cb80b05; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< e6cc9ff2ac0b5df9f25eb790934c3104f6710278; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 37a060b64ae83b76600d187d76591ce488ab836b; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 51c0b1bb7541f8893ec1accba59eb04361a70946; \>= 73f576c04b9410ed19660f74f97521bee6e1c546, \< 9972605a238339b85bd16b084eed5f18414d22db; 8627c7750a66a46d56d3564e1e881aa53764497c; db70cd18d3da727a3a59694de428a9e41c620de7; \>= 4.4.18, \< 4.5; \>= 4.6.6, \< 4.7; Linux 4.7.

### Is there a fix for CVE-2024-43892?

Yes. Fixed in Linux 912736a0435ef40e6a4ae78197ccb5553cb80b05, Linux 56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb, Linux 37a060b64ae83b76600d187d76591ce488ab836b, Linux 51c0b1bb7541f8893ec1accba59eb04361a70946, Linux 9972605a238339b85bd16b084eed5f18414d22db, Linux 4.5, Linux 4.7. Upgrade Linux to 4.7 or later.

### How do I check if I'm affected by CVE-2024-43892?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/37a060b64ae83b76600d187d76591ce488ab836b>
- patch: <https://git.kernel.org/stable/c/51c0b1bb7541f8893ec1accba59eb04361a70946>
- patch: <https://git.kernel.org/stable/c/9972605a238339b85bd16b084eed5f18414d22db>
- other: <https://git.kernel.org/stable/c/912736a0435ef40e6a4ae78197ccb5553cb80b05>
- other: <https://git.kernel.org/stable/c/e6cc9ff2ac0b5df9f25eb790934c3104f6710278>
- other: <https://git.kernel.org/stable/c/56fd70f4aa8b82199dbe7e99366b1fd7a04d86fb>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-43892>

HTML: <https://flawdb.com/CVE-2024-43892> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-43892>
