CVE-2026-139249

tls: device: protect async RX resync state during device-down

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

tls: device: protect async RX resync state during device-down

tls_device_rx_resync_new_rec() can run in process context with the
socket lock held, but without an RCU read lock: from the strparser work
item (tls_strp_work()) and from the receive paths (tls_rx_rec_wait(),
tls_rx_rec_done()). The resync_async pointer belongs to the driver RX
context, which tls_device_down() tears down from the netdev notifier
without taking the socket lock; only the softirq entry to the parser is
implicitly inside an RCU section.

If the parser passes the TLS_RX_DEV_DEGRADED check before device-down
sets it, tls_device_down() can complete synchronize_net() and delete the
driver context before the parser accesses resync_async->req or its
record log. In the asynchronous stage the parser also writes the record
log, so this is a write to freed memory, not only a stale read. The RCU
section in tls_device_resync_rx() starts after those accesses and
therefore does not prevent the use-after-free.

Found by code inspection; not reproduced. Hitting the window requires
the parser to be preempted between the DEGRADED check and the
resync_async access across the device-down grace period and the
driver's teardown.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel’s TLS device driver. During a shutdown, the driver releases its RX context without taking the necessary socket lock or RCU protection, while the TLS parser may still hold a reference. If the parser checks the degraded flag before the device is torn down and then accesses the now‑freed resync_async structure, it writes to freed memory, a classic use‑after‑free that can corrupt kernel state.

Affected Systems

All Linux kernel builds that include the affected TLS driver code are vulnerable until the patch that guards the resync_async pointer is applied. The vendors listed are Linux:Linux, and the kernel is the affected product. Specific version ranges are not enumerated in the public data, so any distribution using a kernel with that code path requires assessment.

Risk and Exploitability

The CVSS score is not provided and no EPSS metric is available, but the defect can lead to a kernel crash that disrupts all userspace. Because the race depends on precise timing between a parser preemption and a device shutdown, exploitation is non‑trivial and may require local or privileged access to the system. The vulnerability is not yet in the CISA KEV catalog, yet operators should treat it with caution and patch promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the fix merged into tls_device_rx_resync_new_rec
  • If an update is not immediately possible, disable TLS offload on the affected network interfaces to avoid the race during device shutdown
  • Monitor system logs for kernel oops or panic events and consider applying a temporary RCU lock patch or adjusting network driver settings to reduce preemption risk

Generated by OpenCVE AI on December 1, 2026 at 07:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tls: device: protect async RX resync state during device-down tls_device_rx_resync_new_rec() can run in process context with the socket lock held, but without an RCU read lock: from the strparser work item (tls_strp_work()) and from the receive paths (tls_rx_rec_wait(), tls_rx_rec_done()). The resync_async pointer belongs to the driver RX context, which tls_device_down() tears down from the netdev notifier without taking the socket lock; only the softirq entry to the parser is implicitly inside an RCU section. If the parser passes the TLS_RX_DEV_DEGRADED check before device-down sets it, tls_device_down() can complete synchronize_net() and delete the driver context before the parser accesses resync_async->req or its record log. In the asynchronous stage the parser also writes the record log, so this is a write to freed memory, not only a stale read. The RCU section in tls_device_resync_rx() starts after those accesses and therefore does not prevent the use-after-free. Found by code inspection; not reproduced. Hitting the window requires the parser to be preempted between the DEGRADED check and the resync_async access across the device-down grace period and the driver's teardown.
Title tls: device: protect async RX resync state during device-down
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM