Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-64418
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-25 Jul, 2026 | 08:50
Updated At-27 Jul, 2026 | 05:00
Rejected At-
▼CVE Numbering Authority (CNA)
mm: shrinker: fix shrinker_info teardown race with expansion

In the Linux kernel, the following vulnerability has been resolved: mm: shrinker: fix shrinker_info teardown race with expansion expand_shrinker_info() iterates all visible memcgs under shrinker_mutex, including memcgs that have not finished ->css_online() yet. Once pn->shrinker_info has been published, teardown must stay serialized with expand_shrinker_info() until that memcg is either fully online or no longer visible to iteration. Today alloc_shrinker_info() breaks that rule by dropping shrinker_mutex before freeing a partially initialized shrinker_info array, which may cause the following race: CPU0 CPU1 ==== ==== css_create --> list_add_tail_rcu(&css->sibling, &parent_css->children); online_css --> mem_cgroup_css_online --> alloc_shrinker_info --> alloc node0 info rcu_assign_pointer(C->node0->shrinker_info, old0) alloc node1 info -> FAIL -> goto err mutex_unlock(shrinker_mutex) shrinker_alloc() --> shrinker_memcg_alloc --> mutex_lock(shrinker_mutex) expand_shrinker_info --> mem_cgroup_iter see the memcg expand_one_shrinker_info --> old0 = C->node0->shrinker_info memcpy(new->unit, old0->unit, ...); free_shrinker_info --> kvfree(old0); /* double free !! */ kvfree_rcu(old0, rcu); The same problem exists later in mem_cgroup_css_online(). If alloc_shrinker_info() succeeds but a subsequent objcg allocation fails, the free_objcg -> free_shrinker_info() unwind path tears down the already published pn->shrinker_info arrays without shrinker_mutex. The expand_one_shrinker_info() can race with that teardown in the same way, leading to use-after-free or double-free of the old shrinker_info. Fix this by serializing shrinker_info teardown with shrinker_mutex, and by keeping alloc_shrinker_info() error cleanup inside the locked section.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • mm/shrinker.c
Default Status
unaffected
Versions
Affected
  • From 307bececcd1205bcb67a3c0d53a69db237ccc9d4 before b9a280a9a454ed514636351d53fe2a233dc5054b (git)
  • From 307bececcd1205bcb67a3c0d53a69db237ccc9d4 before 6465ff3ce65131c774a312d450abe10f4b9f3875 (git)
  • From 307bececcd1205bcb67a3c0d53a69db237ccc9d4 before 284c267f013e45d8c89d9fb9373105dc8e6c0947 (git)
  • From 307bececcd1205bcb67a3c0d53a69db237ccc9d4 before 65476d31d8056e859c48580f82295ce159196ffe (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • mm/shrinker.c
Default Status
affected
Versions
Affected
  • 6.7
Unaffected
  • From 0 before 6.7 (semver)
  • From 6.12.96 through 6.12.* (semver)
  • From 6.18.39 through 6.18.* (semver)
  • From 7.1.4 through 7.1.* (semver)
  • From 7.2-rc3 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
3.17.8HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/b9a280a9a454ed514636351d53fe2a233dc5054b
N/A
https://git.kernel.org/stable/c/6465ff3ce65131c774a312d450abe10f4b9f3875
N/A
https://git.kernel.org/stable/c/284c267f013e45d8c89d9fb9373105dc8e6c0947
N/A
https://git.kernel.org/stable/c/65476d31d8056e859c48580f82295ce159196ffe
N/A
Hyperlink: https://git.kernel.org/stable/c/b9a280a9a454ed514636351d53fe2a233dc5054b
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/6465ff3ce65131c774a312d450abe10f4b9f3875
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/284c267f013e45d8c89d9fb9373105dc8e6c0947
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/65476d31d8056e859c48580f82295ce159196ffe
Resource: N/A
Details not found