CVE-2026-139161: tls: keep TX and RX hardware offload on the same device

Published Nov 30, 2026
·
Updated

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. tlsdeviceattach() sees the existing TLS destructor and keeps ctx->netdev pointing at A. The RX driver state on B is then untracked: tlsdevresync() and tlsdevdel() are invoked on A for a context it never created, and neither socket close nor NETDEVDOWN on B calls tlsdevdel() for B, so the driver context leaks. The reverse setup order has the same problem.

Check the shared device binding under deviceoffloadlock before each tlsdevadd(). Permit the first attachment and a second direction on the same device. Reject a different device, including when the old binding was cleared by NETDEVDOWN: the TLS destructor remains installed and tlsdeviceattach() 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.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.19.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    Before each tls_dev_add(), check the shared device binding under device_offload_lock; reject a different device for the second direction and fall back to software for that direction.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via OSV·01:32 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What systems are exposed to this issue?

Systems using Linux kernel TLS hardware offload are affected when transmit and receive offload setup can be directed to different network devices. The described scenarios include route changes and changes to the usable-slave set of 802.3ad or balance-xor (layer3+4) bonds.

2

What conditions trigger the driver-context leak?

A leak can occur when one TLS direction is already offloaded on device A and setup for the other direction selects device B. This can happen in either TX-then-RX or RX-then-TX order; cleanup is then directed at A while the untracked driver state remains on B.

3

What happens after the fix when the requested direction resolves to a different device?

The kernel rejects hardware offload attachment to the different device and falls back to software processing for the requested TLS direction. It permits the initial attachment and offload of the other direction only when both use the same device.

4

Does bringing a network device down allow offload to be rebound to another device?

No. Even if NETDEV_DOWN clears the old binding, the TLS destructor remains installed, so a new binding cannot be established; offload setup for the requested direction falls back to software instead.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203