Skip to content

CVE-2025-38331 net: ethernet: cortina: Use TOE/TSO on all TCP

MediumCVSS 5.5 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
Technology
Linux KernelUbuntuDebian

Description

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

net: ethernet: cortina: Use TOE/TSO on all TCP

It is desireable to push the hardware accelerator to also
process non-segmented TCP frames: we pass the skb->len
to the "TOE/TSO" offloader and it will handle them.

Without this quirk the driver becomes unstable and lock
up and and crash.

I do not know exactly why, but it is probably due to the
TOE (TCP offload engine) feature that is coupled with the
segmentation feature - it is not possible to turn one
part off and not the other, either both TOE and TSO are
active, or neither of them.

Not having the TOE part active seems detrimental, as if
that hardware feature is not really supposed to be turned
off.

The datasheet says:

"Based on packet parsing and TCP connection/NAT table
lookup results, the NetEngine puts the packets
belonging to the same TCP connection to the same queue
for the software to process. The NetEngine puts
incoming packets to the buffer or series of buffers
for a jumbo packet. With this hardware acceleration,
IP/TCP header parsing, checksum validation and
connection lookup are offloaded from the software
processing."

After numerous tests with the hardware locking up after
something between minutes and hours depending on load
using iperf3 I have concluded this is necessary to stabilize
the hardware.

Upgrade path

13 packages: 7 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner kernel(CBL-Mariner 2.0) All versions No fix listed No fix yet
Microsoft cbl2 kernel 5.15.202.1-1 All versions No fix listed No fix yet
ubuntu/linux(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/linux-kvm(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/linux-raspi(Ubuntu 22.04) All versions No fix listed No fix yet
azure linux kernel(Azure Linux 3.0) < 6.6.96.1-1 6.6.96.1-1 Fixed
debian/linux(Debian 12) < 6.1.147-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +38 more 6.1.147-1 Fixed
debian/linux(Debian 13) < 6.12.35-1 6.12.35-1 Fixed
debian/linux(Debian 14) < 6.12.35-1 6.12.35-1 Fixed
Linux kernel < 6.1.142; < 6.6.95; < 6.12.35; < 6.15.4 +11 more 1b503b790109d19710ec83c589c3ee59e95347ec, 2bd434bb0eeb680c2b3dd6c68ca319b30cb8d47f, 6.1.142, 6.6.95, 6.12.35, 6.15.4, 6.16, 6a07e3af4973402fa199a80036c10060b922c92c, a37888a435b0737128d2d9c6f67b8d608f83df7a, ebe12e232f1d58ebb4b53b6d9149962b707bed91 Fixed
ubuntu/linux(Ubuntu 24.04) < 6.8.0-100.100 6.8.0-100.100 Fixed
ubuntu/linux-raspi(Ubuntu 24.04) < 6.8.0-1047.51 6.8.0-1047.51 Fixed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
azure linux kernel(Azure Linux:3.0) < 6.6.96.1-1 6.6.96.1-1
cbl-mariner kernel(CBL-Mariner:2.0) All versions No fix listed
Microsoft cbl2 kernel 5.15.202.1-1 All versions No fix listed
debian/linux(Debian:12) < 6.1.147-1 6.1.147-1
debian/linux(Debian:12) = 6.1.106-1 No fix listed
debian/linux(Debian:12) = 6.1.106-2 No fix listed
debian/linux(Debian:12) = 6.1.106-3 No fix listed
debian/linux(Debian:12) = 6.1.112-1 No fix listed
debian/linux(Debian:12) = 6.1.115-1 No fix listed
debian/linux(Debian:12) = 6.1.119-1 No fix listed
debian/linux(Debian:12) = 6.1.123-1 No fix listed
debian/linux(Debian:12) = 6.1.124-1 No fix listed
debian/linux(Debian:12) = 6.1.128-1 No fix listed
debian/linux(Debian:12) = 6.1.129-1 No fix listed
debian/linux(Debian:12) = 6.1.133-1 No fix listed
debian/linux(Debian:12) = 6.1.135-1 No fix listed
debian/linux(Debian:12) = 6.1.137-1 No fix listed
debian/linux(Debian:12) = 6.1.139-1 No fix listed
debian/linux(Debian:12) = 6.1.140-1 No fix listed
debian/linux(Debian:12) = 6.1.27-1 No fix listed
debian/linux(Debian:12) = 6.1.37-1 No fix listed
debian/linux(Debian:12) = 6.1.38-1 No fix listed
debian/linux(Debian:12) = 6.1.38-2 No fix listed
debian/linux(Debian:12) = 6.1.38-2~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.38-3 No fix listed
Show 43 more
ProductAffected versionsFixed in
debian/linux(Debian:12) = 6.1.38-4 No fix listed
debian/linux(Debian:12) = 6.1.38-4~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.52-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.64-1 No fix listed
debian/linux(Debian:12) = 6.1.66-1 No fix listed
debian/linux(Debian:12) = 6.1.67-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.76-1 No fix listed
debian/linux(Debian:12) = 6.1.76-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.82-1 No fix listed
debian/linux(Debian:12) = 6.1.85-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.94-1 No fix listed
debian/linux(Debian:12) = 6.1.94-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.98-1 No fix listed
debian/linux(Debian:12) = 6.1.99-1 No fix listed
debian/linux(Debian:13) < 6.12.35-1 6.12.35-1
debian/linux(Debian:14) < 6.12.35-1 6.12.35-1
Linux kernel >= 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88, < 1b503b790109d19710ec83c589c3ee59e95347ec 1b503b790109d19710ec83c589c3ee59e95347ec
Linux kernel >= 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88, < a37888a435b0737128d2d9c6f67b8d608f83df7a a37888a435b0737128d2d9c6f67b8d608f83df7a
Linux kernel >= 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88, < 2bd434bb0eeb680c2b3dd6c68ca319b30cb8d47f 2bd434bb0eeb680c2b3dd6c68ca319b30cb8d47f
Linux kernel >= 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88, < ebe12e232f1d58ebb4b53b6d9149962b707bed91 ebe12e232f1d58ebb4b53b6d9149962b707bed91
Linux kernel >= 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88, < 6a07e3af4973402fa199a80036c10060b922c92c 6a07e3af4973402fa199a80036c10060b922c92c
Linux kernel = 4.16 No fix listed
Linux kernel < 6.1.142 6.1.142
Linux kernel < 6.6.95 6.6.95
Linux kernel < 6.12.35 6.12.35
Linux kernel < 6.15.4 6.15.4
Linux kernel < 6.16 6.16
ubuntu/linux(Ubuntu:22.04) All versions No fix listed
ubuntu/linux-kvm(Ubuntu:22.04) All versions No fix listed
ubuntu/linux-raspi(Ubuntu:22.04) All versions No fix listed
ubuntu/linux(Ubuntu:24.04) < 6.8.0-100.100 6.8.0-100.100
ubuntu/linux-raspi(Ubuntu:24.04) < 6.8.0-1047.51 6.8.0-1047.51
Linux kernel >= 4.16, < 6.1.142 6.1.142
Linux kernel >= 6.2, < 6.6.95 6.6.95
Linux kernel >= 6.7, < 6.12.35 6.12.35
Linux kernel >= 6.13, < 6.15.4 6.15.4
debian linux = 11.0 No fix listed

References