CVE-2025-38115

net_sched: sch_sfq: fix a potential crash on gso_skb handling

State
Published
Severity
7.8 High
Published
Jul 3, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net_sched: sch_sfq: fix a potential crash on gso_skb handling

SFQ has an assumption of always being able to queue at least one packet.

However, after the blamed commit, sch->q.len can be inflated by packets in sch->gso_skb, and an enqueue() on an empty SFQ qdisc can be followed by an immediate drop.

Fix sfq_drop() to properly clear q->tail in this situation.

ip netns add lb ip link add dev to-lb type veth peer name in-lb netns lb ethtool -K to-lb tso off # force qdisc to requeue gso_skb ip netns exec lb ethtool -K in-lb gro on # enable NAPI ip link set dev to-lb up ip -netns lb link set dev in-lb up ip addr add dev to-lb 192.168.20.1/24 ip -netns lb addr add dev in-lb 192.168.20.2/24 tc qdisc replace dev to-lb root sfq limit 100

ip netns exec lb netserver

netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 &

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before c337efb20d6d9f9bbb4746f6b119917af5c886dcAffected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before b44f791f27b14c9eb6b907fbe51f2ba8bec32085Affected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before 5814a7fc3abb41f63f2d44c9d3ff9d4e62965b72Affected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before 9c19498bdd7cb9d854bd3c54260f71cf7408495eAffected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before b4e9bab6011b9559b7c157b16b91ae46d4d8c533Affected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before d1bc80da75c789f2f6830df89d91fb2f7a509943Affected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before 82448d4dcd8406dec688632a405fdcf7f170ec69Affected
  • a53851e2c3218aa30b77abd6e68cf1c371f15afe to before 82ffbe7776d0ac084031f114167712269bf3d832Affected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 5.4.295 through 5.4.*Not affected
  • 5.10.239 through 5.10.*Not affected
  • 5.15.186 through 5.15.*Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.94 through 6.6.*Not affected
  • 6.12.34 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.