# CVE-2025-21919: sched/fair: Fix potential memory corruption in child\_cfs\_rq\_on\_list

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-04-01T15:40:54.075Z
- **Modified:** 2026-11-10T13:17:39.073Z

## Who should check

- Anyone running Linux \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 5cb300dcdd27e6a351ac02541e0231261c775852; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 000c9ee43928f2ce68a156dd40bab7616256f4dd; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 9cc7f0018609f75a349e42e3aebc3b0e905ba775; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< b5741e4b9ef3567613b2351384f91d3f16e59986; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< e1dd09df30ba86716cb2ffab97dc35195c01eb8f; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 3b4035ddbfc8e4521f85569998a7569668cccf51
- Anyone running Linux 5.13

## 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.

## Affected and fixed versions

- Linux: \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 5cb300dcdd27e6a351ac02541e0231261c775852; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 000c9ee43928f2ce68a156dd40bab7616256f4dd; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 9cc7f0018609f75a349e42e3aebc3b0e905ba775; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< b5741e4b9ef3567613b2351384f91d3f16e59986; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< e1dd09df30ba86716cb2ffab97dc35195c01eb8f; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 3b4035ddbfc8e4521f85569998a7569668cccf51 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 3b4035ddbfc8e4521f85569998a7569668cccf51 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21919. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21919.md
Affected: Linux >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 5cb300dcdd27e6a351ac02541e0231261c775852; >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 000c9ee43928f2ce68a156dd40bab7616256f4dd; >= fdaba61ef8a268d4136d0a113d153f7a89eb9984, < 9cc7f0018609f75a349e42e3aebc3b0e905ba775; >= fdaba61ef8a268d4136d0a1…
Fixed in: Linux 5cb300dcdd27e6a351ac02541e0231261c775852, Linux 000c9ee43928f2ce68a156dd40bab7616256f4dd, Linux 9cc7f0018609f75a349e42e3aebc3b0e905ba775, Linux 3b4035ddbfc8e4521f85569998a7569668cccf51

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21919 being exploited?

There is no confirmed exploitation: CVE-2025-21919 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21919?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21919?

Linux \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 5cb300dcdd27e6a351ac02541e0231261c775852; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 000c9ee43928f2ce68a156dd40bab7616256f4dd; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 9cc7f0018609f75a349e42e3aebc3b0e905ba775; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< b5741e4b9ef3567613b2351384f91d3f16e59986; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< e1dd09df30ba86716cb2ffab97dc35195c01eb8f; \>= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \< 3b4035ddbfc8e4521f85569998a7569668cccf51; Linux 5.13.

### Is there a fix for CVE-2025-21919?

Yes. Fixed in Linux 5cb300dcdd27e6a351ac02541e0231261c775852, Linux 000c9ee43928f2ce68a156dd40bab7616256f4dd, Linux 9cc7f0018609f75a349e42e3aebc3b0e905ba775, Linux 3b4035ddbfc8e4521f85569998a7569668cccf51. Upgrade Linux to 3b4035ddbfc8e4521f85569998a7569668cccf51 or later.

### How do I check if I'm affected by CVE-2025-21919?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5cb300dcdd27e6a351ac02541e0231261c775852>
- patch: <https://git.kernel.org/stable/c/000c9ee43928f2ce68a156dd40bab7616256f4dd>
- patch: <https://git.kernel.org/stable/c/9cc7f0018609f75a349e42e3aebc3b0e905ba775>
- patch: <https://git.kernel.org/stable/c/b5741e4b9ef3567613b2351384f91d3f16e59986>
- patch: <https://git.kernel.org/stable/c/e1dd09df30ba86716cb2ffab97dc35195c01eb8f>
- patch: <https://git.kernel.org/stable/c/3b4035ddbfc8e4521f85569998a7569668cccf51>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21919>

HTML: <https://flawdb.com/CVE-2025-21919> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21919>
