{
  "id": "CVE-2025-21919",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21919",
  "published_at": "2025-04-01T15:40:54.075Z",
  "title": "sched/fair: Fix potential memory corruption in child_cfs_rq_on_list",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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-\u003eleaf_cfs_rq_list and rq-\u003eleaf_cfs_rq_list are added to the same\nleaf list. Also, rq-\u003etmp_alone_branch can be set to rq-\u003eleaf_cfs_rq_list.\n\nThis adds a check `if (prev == \u0026rq-\u003eleaf_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.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c 5cb300dcdd27e6a351ac02541e0231261c775852",
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c 000c9ee43928f2ce68a156dd40bab7616256f4dd",
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c 9cc7f0018609f75a349e42e3aebc3b0e905ba775",
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c b5741e4b9ef3567613b2351384f91d3f16e59986",
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c e1dd09df30ba86716cb2ffab97dc35195c01eb8f",
          "\u003e= fdaba61ef8a268d4136d0a113d153f7a89eb9984, \u003c 3b4035ddbfc8e4521f85569998a7569668cccf51"
        ],
        "fixed_in": [
          "5cb300dcdd27e6a351ac02541e0231261c775852",
          "000c9ee43928f2ce68a156dd40bab7616256f4dd",
          "9cc7f0018609f75a349e42e3aebc3b0e905ba775",
          "b5741e4b9ef3567613b2351384f91d3f16e59986",
          "e1dd09df30ba86716cb2ffab97dc35195c01eb8f",
          "3b4035ddbfc8e4521f85569998a7569668cccf51"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.13"
        ],
        "fixed_in": [
          "0",
          "5.15.179",
          "6.1.131",
          "6.6.83",
          "6.12.19",
          "6.13.7",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5cb300dcdd27e6a351ac02541e0231261c775852 or 000c9ee43928f2ce68a156dd40bab7616256f4dd or 9cc7f0018609f75a349e42e3aebc3b0e905ba775 or b5741e4b9ef3567613b2351384f91d3f16e59986 or e1dd09df30ba86716cb2ffab97dc35195c01eb8f or 3b4035ddbfc8e4521f85569998a7569668cccf51 or later.",
      "Upgrade Linux to 0 or 5.15.179 or 6.1.131 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
