Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-21647

published high CVSS 3.1 · 7.3

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

Published
19 Jan 2025, 10:18:04 UTC
Updated
15 Oct 2026, 01:02:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux4a4eeefa514db570be025ab46d779af180e2c9bb to < 44fe1efb4961c1a5ccab16bb579dfc6b308ad58b · 7725152b54d295b7da5e34c2f419539b30d017bd to < b1a1743aaa4906c41c426eda97e2e2586f79246d · cde71a5677971f4f1b69b25e854891dbe78066a4 to < bb0245fa72b783cb23a9949c5048781341e91423 · 549e407569e08459d16122341d332cb508024094 to < a777e06dfc72bed73c05dcb437d7c27ad5f90f3f · d4a9039a7b3d8005b90c7b1a55a306444f0e5447 to < 27202e2e8721c3b23831563c36ed5ac7818641ba · 546ea84d07e3e324644025e2aae2d12ea4c5896e to < 91bb18950b88f955838ec0c1d97f74d135756dc7 · 546ea84d07e3e324644025e2aae2d12ea4c5896e to < 737d4d91d35b5f7fa5bb442651472277318b0bfd · d7c01c0714c04431b5e18cf17a9ea68a553d1c3c · 5.4.284 to < 5.4.291 · 5.10.226 to < 5.10.235 · 5.15.167 to < 5.15.179 · 6.1.110 to < 6.1.125 · 6.6.51 to < 6.6.72 · 6.10.10 to < 6.11 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 5.4.291 through 5.4.* (unaffected · semver) · 5.10.235 through 5.10.* (unaffected · semver) · 5.15.179 through 5.15.* (unaffected · semver) · 6.1.125 through 6.1.* (unaffected · semver) · 6.6.72 through 6.6.* (unaffected · semver) · 6.12.10 through 6.12.* (unaffected · semver) · 6.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC S7-1500 TM MFP - BIOS0 and later · Other versions: unknown Affected Not stated siemens-SADP
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 and later · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-085 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
Show 106 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-067 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-097 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2LIVEPATCH-2025-206 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2LIVEPATCH-2025-208 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2LIVEPATCH-2025-209 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2LIVEPATCH-2025-210 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-823 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023LIVEPATCH-2025-040 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-64k-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-devel-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-debug-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-devel-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-64k-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-cross-headers Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-devel-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-debug-uki-virt Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-devel-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-doc Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-headers Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-modules-extra-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-debug-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-64k-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-debug-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-rt-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-tools Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-tools-libs Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-tools-libs-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-uki-virt Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-uki-virt-addons Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-devel Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-devel-matched Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-modules Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-modules-core Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 kernel-zfcpdump-modules-extra Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 libperf Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 perf Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 python3-perf Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 rtla Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 10 rv Advisory build 6.12.0-124.8.1.el10_1 ALSA-2025:20095
AlmaLinux 9 kernel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

94

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Scenarios
en: AV:L - Reaching the bug requires attaching the cake qdisc via rtnetlink (`tc qdisc add ... cake`) and then driving packets through it, which is a local netlink/syscall operation. Although cake also processes remotely-originated traffic on routers, the reliable and primary attack path is local, consistent with tc/qdisc classification. AC:L - The vulnerable host-fairness accounting is active in cake's default `triple-isolate` flow mode, and the attacker fully controls the packet 5-tuples used for the set-associative hash, so filling an 8-way set and forcing the mis-targeted decrement is deterministic and repeatable. PR:L - Qdisc installation is gated by `netlink_net_capable(skb, CAP_NET_ADMIN)`, which is evaluated against the netns user namespace, so any unprivileged user can obtain it with `unshare -Urn` and then attach cake to a loopback/veth device. UI:N - The attacker performs the qdisc setup and generates the triggering traffic entirely on their own; no action by any other user or administrator is needed. S:U - The out-of-bounds read and the counter corruption are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The u16 underflow makes `quantum_div[host_load]` read up to ~128 KB beyond a 1025-entry static array, and the value is folded into `flow->deficit`, which is exported via `TCA_CAKE_STATS_DEFICIT` — repeated samples defeat the random dithering and recover out-of-bounds kernel data, with the index steerable by additional spurious decrements. I:L - The bug persistently corrupts the per-host bulk-flow counters and injects out-of-bounds data into the scheduler's deficit state, modifying kernel data the attacker should not be able to touch, but there is no out-of-bounds write and no control over the written values. A:H - The wild index trips `WARN_ON(host_load > CAKE_QUEUES)` (a panic under `panic_on_warn`) and reads far past the module's `.bss` into potentially unmapped vmalloc space, causing an oops; the qdisc state stays corrupted so the condition recurs on every dequeue.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 4a4eeefa514db570be025ab46d779af180e2c9bb to < 44fe1efb4961c1a5ccab16bb579dfc6b308ad58b (affected · git)7725152b54d295b7da5e34c2f419539b30d017bd to < b1a1743aaa4906c41c426eda97e2e2586f79246d (affected · git)cde71a5677971f4f1b69b25e854891dbe78066a4 to < bb0245fa72b783cb23a9949c5048781341e91423 (affected · git)549e407569e08459d16122341d332cb508024094 to < a777e06dfc72bed73c05dcb437d7c27ad5f90f3f (affected · git)d4a9039a7b3d8005b90c7b1a55a306444f0e5447 to < 27202e2e8721c3b23831563c36ed5ac7818641ba (affected · git)546ea84d07e3e324644025e2aae2d12ea4c5896e to < 91bb18950b88f955838ec0c1d97f74d135756dc7 (affected · git)546ea84d07e3e324644025e2aae2d12ea4c5896e to < 737d4d91d35b5f7fa5bb442651472277318b0bfd (affected · git)d7c01c0714c04431b5e18cf17a9ea68a553d1c3c (affected · git)5.4.284 to < 5.4.291 (affected · semver)5.10.226 to < 5.10.235 (affected · semver)5.15.167 to < 5.15.179 (affected · semver)6.1.110 to < 6.1.125 (affected · semver)6.6.51 to < 6.6.72 (affected · semver)6.10.10 to < 6.11 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.11 (affected)0 to < 6.11 (unaffected · semver)5.4.291 through 5.4.* (unaffected · semver)5.10.235 through 5.10.* (unaffected · semver)5.15.179 through 5.15.* (unaffected · semver)6.1.125 through 6.1.* (unaffected · semver)6.6.72 through 6.6.* (unaffected · semver)6.12.10 through 6.12.* (unaffected · semver)6.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC S7-1500 TM MFP - BIOS 0 and later (affected · custom)Default: unknown siemens-SADP · adp
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 and later (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

11

Provider assertions

3

Linux · cna

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

siemens-SADP · adp

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
22a505888507e5e7d5b1b040b745b2f177dc01007e6cc4b9d494bebf83e6bd08
Ingested
15 Oct 2026, 13:12:09 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected