7.8

CVE-2025-39677: net/sched: Fix backlog accounting in qdisc_dequeue_internal

Modified
AliasesUBUNTU-CVE-2025-39677DEBIAN-CVE-2025-39677CGA-227x-qrrg-qwmc
Published 05-09-2025Last modified 21-10-2026

Vulnerability summary

CVE-2025-39677 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 5.6% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.17%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 17 · Related 18

Timeline

  1. 05-09-2025
    PublishedVulnerability first disclosed.
  2. 21-10-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: net/sched: Fix backlog accounting in qdisc_dequeue_internal This issue applies for the following qdiscs: hhf, fq, fq_codel, and fq_pie, and occurs in their change handlers when adjusting to the new limit. The problem is the following in the values passed to the subsequent qdisc_tree_reduce_backlog call given a tbf parent: When the tbf parent runs out of tokens, skbs of these qdiscs will be placed in gso_skb. Their peek handlers are qdisc_peek_dequeued, which accounts for both qlen and backlog. However, in the case of qdisc_dequeue_internal, ONLY qlen is accounted for when pulling from gso_skb. This means that these qdiscs are missing a qdisc_qstats_backlog_dec when dropping packets to satisfy the new limit in their change handlers. One can observe this issue with the following (with tc patched to support a limit of 0): export TARGET=fq tc qdisc del dev lo root tc qdisc add dev lo root handle 1: tbf rate 8bit burst 100b latency 1ms tc qdisc replace dev lo handle 3: parent 1:1 $TARGET limit 1000 echo ''; echo 'add child'; tc -s -d qdisc show dev lo ping -I lo -f -c2 -s32 -W0.001 127.0.0.1 2>&1 >/dev/null echo ''; echo 'after ping'; tc -s -d qdisc show dev lo tc qdisc change dev lo handle 3: parent 1:1 $TARGET limit 0 echo ''; echo 'after limit drop'; tc -s -d qdisc show dev lo tc qdisc replace dev lo handle 2: parent 1:1 sfq echo ''; echo 'post graft'; tc -s -d qdisc show dev lo The second to last show command shows 0 packets but a positive number (74) of backlog bytes. The problem becomes clearer in the last show command, where qdisc_purge_queue triggers qdisc_tree_reduce_backlog with the positive backlog and causes an underflow in the tbf parent's backlog (4096 Mb instead of 0). To fix this issue, the codepath for all clients of qdisc_dequeue_internal has been simplified: codel, pie, hhf, fq, fq_pie, and fq_codel. qdisc_dequeue_internal handles the backlog adjustments for all cases that do not directly use the dequeue handler. The old fq_codel_change limit adjustment loop accumulated the arguments to the subsequent qdisc_tree_reduce_backlog call through the cstats field. However, this is confusing and error prone as fq_codel_dequeue could also potentially mutate this field (which qdisc_dequeue_internal calls in the non gso_skb case), so we have unified the code here with other qdiscs.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.17%

Chance of exploitation in the next 30 days

Percentile

6%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.14% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Ubuntu151 products
  • linuxAll versions (No fix recorded)
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded)
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
  • linux-aws-6.12< 6.12.63-r0 | < 6.12.68-r0 | < 6.12.62-r2 | < 6.12.62-r1 | < 6.12.72-r0 | < 6.12.69-r0 | < 6.12.65-r2 | < 6.12.62-r0 | < 6.12.77-r0 | < 6.12.78-r0 | < 6.12.74-r0 | < 6.12.70-r0 | < 6.12.76-r0 | < 6.12.65-r0 | < 6.12.80-r0 | < 6.12.77-r1 | < 6.12.66-r0 | < 6.12.68-r1 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.60-r4 | < 6.12.74-r1 | < 6.12.67-r0 | < 6.12.71-r0 | < 6.12.72-r1
  • linux-azure-6.12< 6.12.60-r4 | < 6.12.62-r1 | < 6.12.66-r0 | < 6.12.62-r2 | < 6.12.77-r1 | < 6.12.67-r0 | < 6.12.69-r0 | < 6.12.65-r2 | < 6.12.77-r0 | < 6.12.60-r3 | < 6.12.63-r0 | < 6.12.74-r0 | < 6.12.74-r1 | < 6.12.71-r0 | < 6.12.65-r3 | < 6.12.80-r0 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.68-r0 | < 6.12.76-r0 | < 6.12.70-r0 | < 6.12.65-r4 | < 6.12.62-r0 | < 6.12.78-r0 | < 6.12.72-r0
  • linux-gcp-6.12< 6.12.70-r0 | < 6.12.69-r0 | < 6.12.66-r0 | < 6.12.74-r0 | < 6.12.65-r2 | < 6.12.60-r4 | < 6.12.72-r0 | < 6.12.67-r0 | < 6.12.65-r0 | < 6.12.68-r1 | < 6.12.68-r0 | < 6.12.77-r2 | < 6.12.60-r3 | < 6.12.76-r0 | < 6.12.80-r0 | < 6.12.77-r1 | < 6.12.62-r0 | < 6.12.62-r2 | < 6.12.65-r1 | < 6.12.63-r0 | < 6.12.62-r1 | < 6.12.71-r0 | < 6.12.78-r0 | < 6.12.74-r1 | < 6.12.77-r0
  • linux-qemu-6.12< 6.12.65-r1 | < 6.12.76-r0 | < 6.12.77-r2 | < 6.12.69-r0 | < 6.12.74-r0 | < 6.12.70-r0 | < 6.12.77-r0 | < 6.12.68-r0 | < 6.12.77-r1 | < 6.12.74-r1 | < 6.12.65-r2 | < 6.12.72-r0 | < 6.12.71-r0 | < 6.12.78-r0 | < 6.12.66-r0 | < 6.12.80-r0 | < 6.12.67-r0
  • linux-vmware-6.12< 6.12.68-r1 | < 6.12.67-r0 | < 6.12.77-r1 | < 6.12.68-r0 | < 6.12.72-r0 | < 6.12.74-r1 | < 6.12.70-r0 | < 6.12.77-r2 | < 6.12.78-r0 | < 6.12.74-r0 | < 6.12.71-r0 | < 6.12.66-r0 | < 6.12.76-r0 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.77-r0 | < 6.12.65-r2 | < 6.12.65-r1
Linux2 products
  • linux≥ 4b549a2ef4bef9965d97cbd992ba67930cd3e0fe, < dcfed7251e23cd71d32c4ecc444ff97992087e46 | ≥ 4b549a2ef4bef9965d97cbd992ba67930cd3e0fe, < 38cdf8d1f5f3ee133f6e48dd422df4057fa9bfcb | ≥ 4b549a2ef4bef9965d97cbd992ba67930cd3e0fe, < a225f44d84b8900d679c5f5a9ea46fe9c0cc7802 | ≥ 4b549a2ef4bef9965d97cbd992ba67930cd3e0fe, < 52bf272636bda69587952b35ae97690b8dc89941 | 3.5
  • linux_kernel≥ 3.5, < 6.16.4 | 6.17:rc1 | 6.17:rc2
Debian1 product
  • linuxAll versions (No fix recorded) | < 6.16.5-1

4 vendors · 159 products

References

12 links
Show all 12 references