CVE-2026-139161
tls: keep TX and RX hardware offload on the same device
Check your servers for CVE-2026-139161
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139161 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
tls: keep TX and RX hardware offload on the same device
After TX is offloaded on device A, a route change, or a change in the usable-slave set of an 802.3ad or balance-xor (layer3+4) bond, can make RX setup program device B. tls_device_attach() sees the existing TLS destructor and keeps ctx->netdev pointing at A. The RX driver state on B is then untracked: tls_dev_resync() and tls_dev_del() are invoked on A for a context it never created, and neither socket close nor NETDEV_DOWN on B calls tls_dev_del() for B, so the driver context leaks. The reverse setup order has the same problem.
Check the shared device binding under device_offload_lock before each tls_dev_add(). Permit the first attachment and a second direction on the same device. Reject a different device, including when the old binding was cleared by NETDEV_DOWN: the TLS destructor remains installed and tls_device_attach() cannot establish a new binding. Setup then falls back to software for the requested direction.
The RX check precedes allocation and software setup. TX uses its existing resource unwind path without calling the driver. Document the shared binding and clarify that fallback is per direction.
This issue was discovered during code review and subsequently reproduced on hardware using mlx5 and TLS 1.2 AES-GCM-128.
Changing the route between TX and RX setup installed the second direction on a different device. Driver traces showed successful adds on both devices, but both deletes at socket close targeted the first device, leaving an orphaned context on the second. Both setup orders reproduced the leak, even though all current core TLS context counters returned to zero. No crash was observed.
With the fix, the same tests correctly fall back to software for the second direction and leave no orphaned hardware context.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4799ac81e52a72a6404827bf2738337bb581a174, before a2b9316a40f20a79e460bf31c4f036c17cc9c512 affected from 4799ac81e52a72a6404827bf2738337bb581a174, before afd3039627d97a959214d544c660390cf28d6527 affected from 4799ac81e52a72a6404827bf2738337bb581a174, before d1a31f1523543513da5b285d82598977303011c7 affected from 4799ac81e52a72a6404827bf2738337bb581a174, before 1c8a70075235cd733095532a97f2405037c52a7b
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 6.12.120 up to and including 6.12.* unaffected from 6.18.66 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139161 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139161
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139161
trivy image --scanners vuln IMAGE | grep CVE-2026-139161
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a2b9316a40f20a79e460bf31c4f036c17cc9c512 git.kernel.org
- https://git.kernel.org/stable/c/afd3039627d97a959214d544c660390cf28d6527 git.kernel.org
- https://git.kernel.org/stable/c/d1a31f1523543513da5b285d82598977303011c7 git.kernel.org
- https://git.kernel.org/stable/c/1c8a70075235cd733095532a97f2405037c52a7b git.kernel.org
Source: the record CVE-2026-139161 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse