{"id":"CVE-2025-21919","published":"2025-04-01T15:40:54Z","modified":"2026-11-10T12:35:28Z","title":"sched/fair: Fix potential memory corruption in child_cfs_rq_on_list","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/fair: Fix potential memory corruption in child_cfs_rq_on_list\n\nchild_cfs_rq_on_list attempts to convert a 'prev' pointer to a cfs_rq.\nThis 'prev' pointer can originate from struct rq's leaf_cfs_rq_list,\nmaking the conversion invalid and potentially leading to memory\ncorruption. Depending on the relative positions of leaf_cfs_rq_list and\nthe task group (tg) pointer within the struct, this can cause a memory\nfault or access garbage data.\n\nThe issue arises in list_add_leaf_cfs_rq, where both\ncfs_rq->leaf_cfs_rq_list and rq->leaf_cfs_rq_list are added to the same\nleaf list. Also, rq->tmp_alone_branch can be set to rq->leaf_cfs_rq_list.\n\nThis adds a check `if (prev == &rq->leaf_cfs_rq_list)` after the main\nconditional in child_cfs_rq_on_list. This ensures that the container_of\noperation will convert a correct cfs_rq struct.\n\nThis check is sufficient because only cfs_rqs on the same CPU are added\nto the list, so verifying the 'prev' pointer against the current rq's list\nhead is enough.\n\nFixes a potential memory corruption issue that due to current struct\nlayout might not be manifesting as a crash but could lead to unpredictable\nbehavior when the layout changes.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.16818,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://git.kernel.org/stable/c/5cb300dcdd27e6a351ac02541e0231261c775852","tags":[]},{"url":"https://git.kernel.org/stable/c/000c9ee43928f2ce68a156dd40bab7616256f4dd","tags":[]},{"url":"https://git.kernel.org/stable/c/9cc7f0018609f75a349e42e3aebc3b0e905ba775","tags":[]},{"url":"https://git.kernel.org/stable/c/b5741e4b9ef3567613b2351384f91d3f16e59986","tags":[]},{"url":"https://git.kernel.org/stable/c/e1dd09df30ba86716cb2ffab97dc35195c01eb8f","tags":[]},{"url":"https://git.kernel.org/stable/c/3b4035ddbfc8e4521f85569998a7569668cccf51","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.36},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 5cb300dcdd27e6a351ac02541e0231261c775852",">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 000c9ee43928f2ce68a156dd40bab7616256f4dd",">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 9cc7f0018609f75a349e42e3aebc3b0e905ba775",">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < b5741e4b9ef3567613b2351384f91d3f16e59986",">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < e1dd09df30ba86716cb2ffab97dc35195c01eb8f",">= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 3b4035ddbfc8e4521f85569998a7569668cccf51"]},{"vendor":"Linux","product":"Linux","versions":["5.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-01T19:23:59.713530Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-9402","exploited":false,"provenance":"source"}}