Files
vuln-cve/data/2024/43xxx/CVE-2024-43888.json
T

188 lines
9.9 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2024-43888",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-08-17T09:11:59.288Z",
"datePublished": "2024-08-26T10:10:40.890Z",
"dateUpdated": "2026-10-21T12:35:08.851Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-21T12:35:08.851Z"
},
"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]"
}
],
"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."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"mm/list_lru.c"
],
"versions": [
{
"version": "0a97c01cd20bb96359d8c9dedad92a061ed34e0b",
"lessThan": "4589f77c18dd98b65f45617b6d1e95313cf6fcab",
"status": "affected",
"versionType": "git"
},
{
"version": "0a97c01cd20bb96359d8c9dedad92a061ed34e0b",
"lessThan": "5161b48712dcd08ec427c450399d4d1483e21dea",
"status": "affected",
"versionType": "git"
},
{
"version": "32d7120a499d475bc03e893c59611116279bcfb8",
"status": "affected",
"versionType": "git"
},
{
"version": "6.6.160",
"lessThan": "6.7",
"status": "affected",
"versionType": "semver"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"mm/list_lru.c"
],
"versions": [
{
"version": "6.8",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.8",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.10.5",
"lessThanOrEqual": "6.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.11",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"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"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/4589f77c18dd98b65f45617b6d1e95313cf6fcab"
},
{
"url": "https://git.kernel.org/stable/c/5161b48712dcd08ec427c450399d4d1483e21dea"
}
],
"title": "mm: list_lru: fix UAF for memory cgroup",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"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"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-12T17:32:58.783Z"
}
}
]
}
}