7.8

CVE-2022-49647: cgroup: Use separate src/dst nodes when preloading css_sets for migration

Analyzed
AliasesUBUNTU-CVE-2022-49647DEBIAN-CVE-2022-49647
Published 26-02-2025Last modified 05-08-2026

Vulnerability summary

CVE-2022-49647 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 21.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 9 · Related 7

Timeline

  1. 26-02-2025
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: cgroup: Use separate src/dst nodes when preloading css_sets for migration Each cset (css_set) is pinned by its tasks. When we're moving tasks around across csets for a migration, we need to hold the source and destination csets to ensure that they don't go away while we're moving tasks about. This is done by linking cset->mg_preload_node on either the mgctx->preloaded_src_csets or mgctx->preloaded_dst_csets list. Using the same cset->mg_preload_node for both the src and dst lists was deemed okay as a cset can't be both the source and destination at the same time. Unfortunately, this overloading becomes problematic when multiple tasks are involved in a migration and some of them are identity noop migrations while others are actually moving across cgroups. For example, this can happen with the following sequence on cgroup1: #1> mkdir -p /sys/fs/cgroup/misc/a/b #2> echo $$ > /sys/fs/cgroup/misc/a/cgroup.procs #3> RUN_A_COMMAND_WHICH_CREATES_MULTIPLE_THREADS & #4> PID=$! #5> echo $PID > /sys/fs/cgroup/misc/a/b/tasks #6> echo $PID > /sys/fs/cgroup/misc/a/cgroup.procs the process including the group leader back into a. In this final migration, non-leader threads would be doing identity migration while the group leader is doing an actual one. After #3, let's say the whole process was in cset A, and that after #4, the leader moves to cset B. Then, during #6, the following happens: 1. cgroup_migrate_add_src() is called on B for the leader. 2. cgroup_migrate_add_src() is called on A for the other threads. 3. cgroup_migrate_prepare_dst() is called. It scans the src list. 4. It notices that B wants to migrate to A, so it tries to A to the dst list but realizes that its ->mg_preload_node is already busy. 5. and then it notices A wants to migrate to A as it's an identity migration, it culls it by list_del_init()'ing its ->mg_preload_node and putting references accordingly. 6. The rest of migration takes place with B on the src list but nothing on the dst list. This means that A isn't held while migration is in progress. If all tasks leave A before the migration finishes and the incoming task pins it, the cset will be destroyed leading to use-after-free. This is caused by overloading cset->mg_preload_node for both src and dst preload lists. We wanted to exclude the cset from the src list but ended up inadvertently excluding it from the dst list too. This patch fixes the issue by separating out cset->mg_preload_node into ->mg_src_preload_node and ->mg_dst_preload_node, so that the src and dst preloadings don't interfere with each other.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

22%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.29% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu111 products
  • linuxAll versions (No fix recorded) | < 4.15.0-194.205 | < 5.4.0-128.144 | < 5.15.0-50.56
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 4.15.0-1142.154 | < 5.4.0-1086.93 | < 5.15.0-1021.25
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ f817de98513d060023be4fa1d061b29a6515273e, < 05f7658210d1d331e8dd4cb6e7bbbe3df5f5ac27 | ≥ f817de98513d060023be4fa1d061b29a6515273e, < cec2bbdcc14fbaa6b95ee15a7c423b05d97038be | ≥ f817de98513d060023be4fa1d061b29a6515273e, < ad44e05f3e016bdcb1ad25af35ade5b5f41ccd68 | ≥ f817de98513d060023be4fa1d061b29a6515273e, < 7657e3958535d101a24ab4400f9b8062b9107cc4 | ≥ f817de98513d060023be4fa1d061b29a6515273e, < 54aee4e5ce8c21555286a6333e46c1713880cf93 | ≥ f817de98513d060023be4fa1d061b29a6515273e, < 0e41774b564befa6d271e8d5086bf870d617a4e6 | ≥ f817de98513d060023be4fa1d061b29a6515273e, < 07fd5b6cdf3cc30bfde8fe0f644771688be04447 | 3.16
  • linux_kernel≥ 3.16, < 4.14.289 | ≥ 4.15, < 4.19.253 | ≥ 4.20, < 5.4.207 | ≥ 5.5, < 5.10.132 | ≥ 5.11, < 5.15.56 | ≥ 5.16, < 5.18.13 | 5.19:rc1 | 5.19:rc2 | 5.19:rc3 | 5.19:rc4 | 5.19:rc5 | 5.19:rc6
Debian1 product
  • linux< 5.18.14-1

3 vendors · 114 products

References

11 links
Show all 11 references