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

tls: rx: restore msg_iter before TLS 1.3 optimistic retry

tls_decrypt_sg() advances msg->msg_iter when it maps user pages for
the optimistic TLS 1.3 zero-copy path. If the decrypted record turns
out not to be unpadded application data, tls_decrypt_sw() retries into
a kernel skb, but leaves the iterator advanced.

The subsequent copy from the skb then writes decrypted bytes again at
a later point in the caller iovecs while recvmsg() reports only the
post-retry length. A TLS peer can trigger this after the receiver
enables TLS_RX_EXPECT_NO_PAD.

Revert the iterator by the number of bytes consumed by the optimistic
mapping before retrying without zero-copy.

Add a selftest which sends a TLS 1.3 control record with
TLS_RX_EXPECT_NO_PAD enabled and verifies that recvmsg() does not
overwrite later iovecs beyond the returned length.
Published: 2026-08-22
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s TLS 1.3 receive path allows an attacker to cause overwritten user‑visible data. When the kernel attempts an optimistic zero‑copy decryption and later discovers that the decrypted record is not unpadded application data, it retries using a kernel skb but leaves the message iterator advanced. The subsequent copy writes the decrypted bytes into iovec entries that lie beyond the length reported by recvmsg(), corrupting data passed to the application.

Affected Systems

Any system running a Linux kernel that contains the unpatched implementation is affected. The vulnerability applies to all distributions whose kernels include the vulnerable code prior to the commit that restores the iterator before retrying. The specific affected kernel versions are not enumerated in the advisory, so any kernel version before the patch must be considered vulnerable.

Risk and Exploitability

A remote TLS client that sends a TLS 1.3 control record while TLS_RX_EXPECT_NO_PAD is enabled can trigger the flaw. The resulting data overwrite can lead to integrity violations or application crashes. No CVSS or EPSS score is publicly available, and the flaw is not listed in CISA’s KEV catalog, but the absence of metrics does not mitigate the potential impact for unpatched systems.

Generated by OpenCVE AI on August 22, 2026 at 19:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the running kernel to a version that includes the fix from the commits referenced in the advisory.
  • If a newer kernel is not available, disable TLS_RX_EXPECT_NO_PAD in the TLS configuration to eliminate the attack vector.
  • Run the self‑test introduced by the patch to confirm recvmsg() no longer overwrites data beyond the reported length when a TLS 1.3 control record is received.

Generated by OpenCVE AI on August 22, 2026 at 19:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-120

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tls: rx: restore msg_iter before TLS 1.3 optimistic retry tls_decrypt_sg() advances msg->msg_iter when it maps user pages for the optimistic TLS 1.3 zero-copy path. If the decrypted record turns out not to be unpadded application data, tls_decrypt_sw() retries into a kernel skb, but leaves the iterator advanced. The subsequent copy from the skb then writes decrypted bytes again at a later point in the caller iovecs while recvmsg() reports only the post-retry length. A TLS peer can trigger this after the receiver enables TLS_RX_EXPECT_NO_PAD. Revert the iterator by the number of bytes consumed by the optimistic mapping before retrying without zero-copy. Add a selftest which sends a TLS 1.3 control record with TLS_RX_EXPECT_NO_PAD enabled and verifies that recvmsg() does not overwrite later iovecs beyond the returned length.
Title tls: rx: restore msg_iter before TLS 1.3 optimistic retry
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-22T15:31:57.534Z

Reserved: 2026-08-15T05:44:03.920Z

Link: CVE-2026-74611

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:33.670

Modified: 2026-08-22T16:16:33.670

Link: CVE-2026-74611

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T19:15:03Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')