Skip to main content
Network Thinking Solutions Logo

CVE-2025-21647

Linux kernel: sched: sch_cake: add bounds checks to host bulk flow fairness counts

All CVEs
CVE-2025-21647Published 1/19/2025

Linux kernel: sched: sch_cake: add bounds checks to host bulk flow fairness counts

Vendor advisory
CVSS7.3High

Overview

In the Linux kernel, the following vulnerability has been resolved: sched: sch_cake: add bounds checks to host bulk flow fairness counts Even though we fixed a logic error in the commit cited below, syzbot still managed to trigger an underflow of the per-host bulk flow counters, leading to an out of bounds memory access. To avoid any such logic errors causing out of bounds memory accesses, this commit factors out all accesses to the per-host bulk flow counters to a series of helpers that perform bounds-checking before any increments and decrements. This also has the benefit of improving readability by moving the conditional checks for the flow mode into these helpers, instead of having them spread out throughout the code (which was the cause of the original logic error). As part of this change, the flow quantum calculation is consolidated into a helper function, which means that the dithering applied to the ost load scaling is now applied both in the DRR rotation and when a sparse flow's quantum is first initiated. The only user-visible effect of this is that the maximum packet size that can be sent while a flow stays sparse will now vary with +/- one byte in some cases. This should not make a noticeable difference in practice, and thus it's not worth complicating the code to preserve the old behaviour.

Published
1/19/2025
Last modified
7/30/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.4.284, < 5.4.291

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 5.10.226, < 5.10.235

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 5.15.167, < 5.15.179

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 6.1.110, < 6.1.125

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 6.6.51, < 6.6.72

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 6.10.10, < 6.11

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
≥ 6.11.1, < 6.12.10

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
6.11

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
linux kernel
linux
6.11

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
linux kernel
linux
6.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 4a4eeefa514db570be025ab46d779af180e2c9bb, < 44fe1efb4961c1a5ccab16bb579dfc6b308ad58b

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 7725152b54d295b7da5e34c2f419539b30d017bd, < b1a1743aaa4906c41c426eda97e2e2586f79246d

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ cde71a5677971f4f1b69b25e854891dbe78066a4, < bb0245fa72b783cb23a9949c5048781341e91423

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 549e407569e08459d16122341d332cb508024094, < a777e06dfc72bed73c05dcb437d7c27ad5f90f3f

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ d4a9039a7b3d8005b90c7b1a55a306444f0e5447, < 27202e2e8721c3b23831563c36ed5ac7818641ba

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 546ea84d07e3e324644025e2aae2d12ea4c5896e, < 91bb18950b88f955838ec0c1d97f74d135756dc7

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 546ea84d07e3e324644025e2aae2d12ea4c5896e, < 737d4d91d35b5f7fa5bb442651472277318b0bfd

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
d7c01c0714c04431b5e18cf17a9ea68a553d1c3c

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 5.4.284, < 5.4.291

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 5.10.226, < 5.10.235

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 5.15.167, < 5.15.179

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 6.1.110, < 6.1.125

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 6.6.51, < 6.6.72

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
≥ 6.10.10, < 6.11

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
Linux
Linux
6.11

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
SIMATIC S7-1500 TM MFP - BIOS
Siemens
< *

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Siemens
< *

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.