CVE-2026-139161

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139162In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: handle partial allocation in attr_data_get_block_locked() WhCVE-2026-139163In the Linux kernel, the following vulnerability has been resolved: bpf: Keep stack arguments in arch_bpf_timed_may_goto() The JITs pass tCVE-2026-139164In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: fix 88E6171 statistics type The 88E6171 uses the CVE-2026-139165In the Linux kernel, the following vulnerability has been resolved: ksmbd: avoid races between named-pipe operations RPC IPC replies are mCVE-2026-139166In the Linux kernel, the following vulnerability has been resolved: devlink: region: fix snapshot id leak on kernel-allocated ids When DEVCVE-2026-139167In the Linux kernel, the following vulnerability has been resolved: net-sysfs: reject a one-entry RPS flow table store_rps_dev_flow_table_CVE-2026-1391687.5In the Linux kernel, the following vulnerability has been resolved: net: microchip: fdma: fix DCB corruption under sustained load __fdma_dCVE-2026-139169In the Linux kernel, the following vulnerability has been resolved: net: lan966x: release the in-flight slot of a stale TX skb lan966x_ptpCVE-2026-139176.5Insufficient validation of untrusted input in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker who coCVE-2026-139170In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit lan966x_fCVE-2026-139171In the Linux kernel, the following vulnerability has been resolved: sched_ext: Reject scx_bpf_sub_grant/revoke() in tracing programs A traCVE-2026-139172In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix a lone IMMED task waiting behind a kept prev While disp
CVE-2026-139161: Unscored | Vulnix