{"id":"CVE-2024-43888","state":"PUBLISHED","title":"mm: list_lru: fix UAF for memory cgroup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: list_lru: fix UAF for memory cgroup\n\nThe mem_cgroup_from_slab_obj() is supposed to be called under rcu lock or\ncgroup_mutex or others which could prevent returned memcg from being\nfreed.  Fix it by adding missing rcu read lock.\n\nFound by code inspection.\n\n[songmuchun@bytedance.com: only grab rcu lock when necessary, per Vlastimil]","publishedAt":"2024-08-26T10:10:40.890Z","updatedAt":"2026-10-21T12:35:08.851Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0a97c01cd20bb96359d8c9dedad92a061ed34e0b","status":"affected","lessThan":"4589f77c18dd98b65f45617b6d1e95313cf6fcab","versionType":"git"},{"version":"0a97c01cd20bb96359d8c9dedad92a061ed34e0b","status":"affected","lessThan":"5161b48712dcd08ec427c450399d4d1483e21dea","versionType":"git"},{"version":"32d7120a499d475bc03e893c59611116279bcfb8","status":"affected","versionType":"git"},{"version":"6.6.160","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/list_lru.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.10.5","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/list_lru.c"]}],"references":["https://git.kernel.org/stable/c/4589f77c18dd98b65f45617b6d1e95313cf6fcab","https://git.kernel.org/stable/c/5161b48712dcd08ec427c450399d4d1483e21dea"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43888.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-43888","state":"PUBLISHED","datePublished":"2024-08-26T10:10:40.890Z","dateUpdated":"2026-10-21T12:35:08.851Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-17T09:11:59.288Z"},"containers":{"cna":{"title":"mm: list_lru: fix UAF for memory cgroup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: list_lru: fix UAF for memory cgroup\n\nThe mem_cgroup_from_slab_obj() is supposed to be called under rcu lock or\ncgroup_mutex or others which could prevent returned memcg from being\nfreed.  Fix it by adding missing rcu read lock.\n\nFound by code inspection.\n\n[songmuchun@bytedance.com: only grab rcu lock when necessary, per Vlastimil]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0a97c01cd20bb96359d8c9dedad92a061ed34e0b","status":"affected","lessThan":"4589f77c18dd98b65f45617b6d1e95313cf6fcab","versionType":"git"},{"version":"0a97c01cd20bb96359d8c9dedad92a061ed34e0b","status":"affected","lessThan":"5161b48712dcd08ec427c450399d4d1483e21dea","versionType":"git"},{"version":"32d7120a499d475bc03e893c59611116279bcfb8","status":"affected","versionType":"git"},{"version":"6.6.160","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/list_lru.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.10.5","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/list_lru.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4589f77c18dd98b65f45617b6d1e95313cf6fcab"},{"url":"https://git.kernel.org/stable/c/5161b48712dcd08ec427c450399d4d1483e21dea"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached through ordinary filesystem syscalls (open/stat/close/unlink driving d_lru_add/d_lru_del and inode LRU add/del) plus local cgroup manipulation to trigger the memcg teardown. No network peer can drive the memcg-free side of the race, so this requires local system access.\nAC:L - The attacker controls both sides of the race — one thread rmdirs a cgroup it created to force memcg offline and RCU-deferred free, while another thread loops dentry/inode LRU operations on objects charged to that memcg — and can retry indefinitely. On CONFIG_PREEMPT and especially PREEMPT_RT kernels (where list_lru_add's spin_lock is a sleeping rtmutex) the window between reading objcg->memcg and dereferencing it is readily hit.\nPR:L - Only an unprivileged local account is needed: the LRU paths are hit by unprivileged file operations with no capability check, and cgroup creation/removal is available to normal users via systemd's delegated user slice or to any container tenant. No real root is required anywhere on the path.\nUI:N - The attacker's own threads perform every step — populating a cgroup, tearing it down, and hammering the dentry/inode LRU paths. No victim action is involved.\nS:U - The use-after-free corrupts kernel memory managed by the same kernel security authority; there is no VM, IOMMU, or hypervisor boundary crossed.\nC:H - Reading memcg->kmemcg_id from freed memory steers list_lru_from_memcg_idx() into another cgroup's LRU, exposing and cross-linking objects across memcg boundaries, and a groomed reallocation of the freed mem_cgroup gives the attacker control over the pointer chain, which is leverageable for arbitrary kernel memory disclosure.\nI:H - set_shrinker_bit() performs set_bit() through memcg->nodeinfo[nid]->shrinker_info read from the freed object, so a reallocated and attacker-controlled mem_cgroup turns this into a write primitive at a chosen address; the wrong-index list_add_tail()/list_del_init() also corrupt live list_lru state.\nA:H - A garbage kmemcg_id makes xa_load() return NULL and list_add_tail() dereference it, producing an immediate kernel oops, and the resulting list_lru list corruption and nr_items underflow crash the shrinker later — a repeatable panic on core dcache/icache paths."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:35:08.851Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.10.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.160"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-43888","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:31:59.160632Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:32:58.783Z"}}]}}}