{
  "id": "CVE-2025-21647",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21647",
  "published_at": "2025-01-19T10:18:04.415Z",
  "title": "sched: sch_cake: add bounds checks to host bulk flow fairness counts",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/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: sch_cake: add bounds checks to host bulk flow fairness counts\n\nEven though we fixed a logic error in the commit cited below, syzbot\nstill managed to trigger an underflow of the per-host bulk flow\ncounters, leading to an out of bounds memory access.\n\nTo avoid any such logic errors causing out of bounds memory accesses,\nthis commit factors out all accesses to the per-host bulk flow counters\nto a series of helpers that perform bounds-checking before any\nincrements and decrements. This also has the benefit of improving\nreadability by moving the conditional checks for the flow mode into\nthese helpers, instead of having them spread out throughout the\ncode (which was the cause of the original logic error).\n\nAs part of this change, the flow quantum calculation is consolidated\ninto a helper function, which means that the dithering applied to the\nost load scaling is now applied both in the DRR rotation and when a\nsparse flow's quantum is first initiated. The only user-visible effect\nof this is that the maximum packet size that can be sent while a flow\nstays sparse will now vary with +/- one byte in some cases. This should\nnot make a noticeable difference in practice, and thus it's not worth\ncomplicating the code to preserve the old behaviour.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.11:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.11:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.3,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 4a4eeefa514db570be025ab46d779af180e2c9bb, \u003c 44fe1efb4961c1a5ccab16bb579dfc6b308ad58b",
          "\u003e= 7725152b54d295b7da5e34c2f419539b30d017bd, \u003c b1a1743aaa4906c41c426eda97e2e2586f79246d",
          "\u003e= cde71a5677971f4f1b69b25e854891dbe78066a4, \u003c bb0245fa72b783cb23a9949c5048781341e91423",
          "\u003e= 549e407569e08459d16122341d332cb508024094, \u003c a777e06dfc72bed73c05dcb437d7c27ad5f90f3f",
          "\u003e= d4a9039a7b3d8005b90c7b1a55a306444f0e5447, \u003c 27202e2e8721c3b23831563c36ed5ac7818641ba",
          "\u003e= 546ea84d07e3e324644025e2aae2d12ea4c5896e, \u003c 91bb18950b88f955838ec0c1d97f74d135756dc7",
          "\u003e= 546ea84d07e3e324644025e2aae2d12ea4c5896e, \u003c 737d4d91d35b5f7fa5bb442651472277318b0bfd",
          "d7c01c0714c04431b5e18cf17a9ea68a553d1c3c",
          "\u003e= 5.4.284, \u003c 5.4.291",
          "\u003e= 5.10.226, \u003c 5.10.235",
          "\u003e= 5.15.167, \u003c 5.15.179",
          "\u003e= 6.1.110, \u003c 6.1.125",
          "\u003e= 6.6.51, \u003c 6.6.72",
          "\u003e= 6.10.10, \u003c 6.11"
        ],
        "fixed_in": [
          "44fe1efb4961c1a5ccab16bb579dfc6b308ad58b",
          "b1a1743aaa4906c41c426eda97e2e2586f79246d",
          "bb0245fa72b783cb23a9949c5048781341e91423",
          "a777e06dfc72bed73c05dcb437d7c27ad5f90f3f",
          "27202e2e8721c3b23831563c36ed5ac7818641ba",
          "91bb18950b88f955838ec0c1d97f74d135756dc7",
          "737d4d91d35b5f7fa5bb442651472277318b0bfd",
          "5.4.291",
          "5.10.235",
          "5.15.179",
          "6.1.125",
          "6.6.72",
          "6.11"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "5.4.291",
          "5.10.235",
          "5.15.179",
          "6.1.125",
          "6.6.72",
          "6.12.10",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 44fe1efb4961c1a5ccab16bb579dfc6b308ad58b or b1a1743aaa4906c41c426eda97e2e2586f79246d or bb0245fa72b783cb23a9949c5048781341e91423 or a777e06dfc72bed73c05dcb437d7c27ad5f90f3f or 27202e2e8721c3b23831563c36ed5ac7818641ba or 91bb18950b88f955838ec0c1d97f74d135756dc7 or 737d4d91d35b5f7fa5bb442651472277318b0bfd or 5.4.291 or 5.10.235 or 5.15.179 or 6.1.125 or 6.6.72 or 6.11 or later.",
      "Upgrade Linux to 0 or 5.4.291 or 5.10.235 or 5.15.179 or 6.1.125 or 6.6.72 or 6.12.10 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
