🛡️ CVE-2025-21647 — kernel

🟠 CVSS 7.3 — High ✅ No Known Exploit NVD
7.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity low, availability high.

Affected software

CVE-2025-21647 is recorded against 2 packages.

  • kernel (from 6.7.0 up to 6.12.10)
  • linux-kernel

Timeline and source

Published on 19 January 2025 and last revised on 6 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

cert-portal.siemens.com (Web)
cert-portal.siemens.com (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
lists.debian.org (Web)
lists.debian.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

CVE-2025-21647 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity High
CVSS Score 7.3
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-01-19
Updated 2026-08-12
Modified 2026-08-06

Affected Packages

Software From version Fixed in
kernel 6.7.0 6.12.10
linux-kernel

References

Similar Threats

Site Security Check

Is kernel part of your stack?

CVE-2025-21647 is rated CVSS 7.3 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.