{"id":"CVE-2025-21919","revision":"356eceea1f314d0abd155f9a34f4980b","records":[{"revision":"356eceea1f314d0abd155f9a34f4980b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-21919","aliases":[],"title":"sched/fair: Fix potential memory corruption in child_cfs_rq_on_list","description":"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.","state":0,"publishedAt":"2025-04-01T15:40:54.075+00:00","modifiedAt":"2026-10-15T01:05:08.963+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/sched/fair.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"5cb300dcdd27e6a351ac02541e0231261c775852\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"000c9ee43928f2ce68a156dd40bab7616256f4dd\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"9cc7f0018609f75a349e42e3aebc3b0e905ba775\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"b5741e4b9ef3567613b2351384f91d3f16e59986\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"e1dd09df30ba86716cb2ffab97dc35195c01eb8f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"fdaba61ef8a268d4136d0a113d153f7a89eb9984\",\n                            \"lessThan\": \"3b4035ddbfc8e4521f85569998a7569668cccf51\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/sched/fair.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.13\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.13\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.179\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.131\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.83\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.19\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.13.7\",\n                            \"lessThanOrEqual\": \"6.13.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.14\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/5cb300dcdd27e6a351ac02541e0231261c775852","https://git.kernel.org/stable/c/000c9ee43928f2ce68a156dd40bab7616256f4dd","https://git.kernel.org/stable/c/9cc7f0018609f75a349e42e3aebc3b0e905ba775","https://git.kernel.org/stable/c/b5741e4b9ef3567613b2351384f91d3f16e59986","https://git.kernel.org/stable/c/e1dd09df30ba86716cb2ffab97dc35195c01eb8f","https://git.kernel.org/stable/c/3b4035ddbfc8e4521f85569998a7569668cccf51"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-21919","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-21919","identifiers":["CVE-2025-21919"]},"retained":false,"historicalAffected":[]}],"coverage":[]}