CVE-2025-21919 sched/fair: Fix potential memory corruption in child_cfs_rq_on_list
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
sched/fair: Fix potential memory corruption in child_cfs_rq_on_list
child_cfs_rq_on_list attempts to convert a 'prev' pointer to a cfs_rq.
This 'prev' pointer can originate from struct rq's leaf_cfs_rq_list,
making the conversion invalid and potentially leading to memory
corruption. Depending on the relative positions of leaf_cfs_rq_list and
the task group (tg) pointer within the struct, this can cause a memory
fault or access garbage data.
The issue arises in list_add_leaf_cfs_rq, where both
cfs_rq->leaf_cfs_rq_list and rq->leaf_cfs_rq_list are added to the same
leaf list. Also, rq->tmp_alone_branch can be set to rq->leaf_cfs_rq_list.
This adds a check if (prev == &rq->leaf_cfs_rq_list) after the main
conditional in child_cfs_rq_on_list. This ensures that the container_of
operation will convert a correct cfs_rq struct.
This check is sufficient because only cfs_rqs on the same CPU are added
to the list, so verifying the 'prev' pointer against the current rq's list
head is enough.
Fixes a potential memory corruption issue that due to current struct
layout might not be manifesting as a crash but could lead to unpredictable
behavior when the layout changes.
Upgrade path
16 packages: 11 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| azure linux kernel(Azure Linux 3.0) | < 6.6.85.1-2 | 6.6.85.1-2 | Fixed |
| cbl-mariner kernel(CBL-Mariner 2.0) | < 5.15.180.1-1 | 5.15.180.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.133-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +33 more | 6.1.133-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.19-1 | 6.12.19-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.19-1 | 6.12.19-1 | Fixed |
| Linux kernel | < 5.15.179; < 6.1.131; < 6.6.83; < 6.12.19 +19 more | 000c9ee43928f2ce68a156dd40bab7616256f4dd, 3b4035ddbfc8e4521f85569998a7569668cccf51, 5.15.179, 5cb300dcdd27e6a351ac02541e0231261c775852, 6.1.131, 6.6.83, 6.12.19, 6.13.7, 6.14, 9cc7f0018609f75a349e42e3aebc3b0e905ba775, b5741e4b9ef3567613b2351384f91d3f16e59986, e1dd09df30ba86716cb2ffab97dc35195c01eb8f | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-140.150 | 5.15.0-140.150 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-84.84 | 6.8.0-84.84 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1080.85 | 5.15.0-1080.85 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1078.81 | 5.15.0-1078.81 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | < 5.15.180.1-1 | 5.15.180.1-1 |
| azure linux kernel(Azure Linux:3.0) | < 6.6.85.1-2 | 6.6.85.1-2 |
| debian/linux(Debian:12) | < 6.1.133-1 | 6.1.133-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
Show 54 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.19-1 | 6.12.19-1 |
| debian/linux(Debian:14) | < 6.12.19-1 | 6.12.19-1 |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 5cb300dcdd27e6a351ac02541e0231261c775852 | 5cb300dcdd27e6a351ac02541e0231261c775852 |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 000c9ee43928f2ce68a156dd40bab7616256f4dd | 000c9ee43928f2ce68a156dd40bab7616256f4dd |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 9cc7f0018609f75a349e42e3aebc3b0e905ba775 | 9cc7f0018609f75a349e42e3aebc3b0e905ba775 |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < b5741e4b9ef3567613b2351384f91d3f16e59986 | b5741e4b9ef3567613b2351384f91d3f16e59986 |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < e1dd09df30ba86716cb2ffab97dc35195c01eb8f | e1dd09df30ba86716cb2ffab97dc35195c01eb8f |
| Linux kernel | >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 3b4035ddbfc8e4521f85569998a7569668cccf51 | 3b4035ddbfc8e4521f85569998a7569668cccf51 |
| Linux kernel | = 5.13 | No fix listed |
| Linux kernel | < 5.15.179 | 5.15.179 |
| Linux kernel | < 6.1.131 | 6.1.131 |
| Linux kernel | < 6.6.83 | 6.6.83 |
| Linux kernel | < 6.12.19 | 6.12.19 |
| Linux kernel | < 6.13.7 | 6.13.7 |
| Linux kernel | < 6.14 | 6.14 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-140.150 | 5.15.0-140.150 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1080.85 | 5.15.0-1080.85 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1078.81 | 5.15.0-1078.81 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-84.84 | 6.8.0-84.84 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1039.43 | 6.8.0-1039.43 |
| Linux kernel | >= 5.13, < 5.15.179 | 5.15.179 |
| Linux kernel | >= 5.16, < 6.1.131 | 6.1.131 |
| Linux kernel | >= 6.2, < 6.6.83 | 6.6.83 |
| Linux kernel | >= 6.7, < 6.12.19 | 6.12.19 |
| Linux kernel | >= 6.13, < 6.13.7 | 6.13.7 |
| Linux kernel | = 6.14-rc1 | No fix listed |
| Linux kernel | = 6.14-rc2 | No fix listed |
| Linux kernel | = 6.14-rc3 | No fix listed |
| Linux kernel | = 6.14-rc4 | No fix listed |
| Linux kernel | = 6.14-rc5 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-21919 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-7510-1 vendor-advisory
- USN-7510-2 vendor-advisory
- USN-7511-1 vendor-advisory
- USN-7511-2 vendor-advisory
- USN-7512-1 vendor-advisory
- USN-7510-3 vendor-advisory
- USN-7510-4 vendor-advisory
- USN-7510-5 vendor-advisory
- USN-7511-3 vendor-advisory
- USN-7510-6 vendor-advisory
- USN-7510-7 vendor-advisory
- USN-7510-8 vendor-advisory
- USN-7593-1 vendor-advisory
- USN-7602-1 vendor-advisory
- USN-7605-1 vendor-advisory
- USN-7606-1 vendor-advisory
- USN-7605-2 vendor-advisory
- USN-7628-1 vendor-advisory
- USN-7764-1 vendor-advisory
- USN-7765-1 vendor-advisory
- USN-7766-1 vendor-advisory
- USN-7767-1 vendor-advisory
- USN-7779-1 vendor-advisory
- USN-7767-2 vendor-advisory
- USN-7764-2 vendor-advisory
- USN-7790-1 vendor-advisory
- USN-7800-1 vendor-advisory
- USN-7801-1 vendor-advisory
- USN-7802-1 vendor-advisory
- USN-7801-2 vendor-advisory
- USN-7809-1 vendor-advisory
- USN-7801-3 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-9402 third-party-advisory