CVE-2025-38115: net_sched: sch_sfq: fix a potential crash on gso_skb handling
In the Linux kernel, the following vulnerability has been resolved:
netsched: schsfq: fix a potential crash on gsoskb 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->gsoskb, and an enqueue() on an empty SFQ qdisc can be followed by an immediate drop.
Fix sfqdrop() 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 gsoskb 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 &
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38115?
CVE-2025-38115 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2025-38115?
To fix CVE-2025-38115, you need to update your Linux kernel to the latest stable version where this vulnerability has been addressed.
What systems are affected by CVE-2025-38115?
CVE-2025-38115 affects various versions of the Linux kernel that include the sch_sfq module.
What kind of impact does CVE-2025-38115 have on system performance?
CVE-2025-38115 may lead to a potential crash when handling gso_skb in the sch_sfq module, impacting system stability.
Is CVE-2025-38115 a remote exploit vulnerability?
CVE-2025-38115 is not categorized as a remote exploit vulnerability, as it requires local access to the affected system.