All reports
Medium

kernel: sunrpc: fix client side handling of tls alerts

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-38571

Probability of exploitation in the next 30 days: 0.37%

FIRST EPSS · 2026-11-19

Description

In the Linux kernel, the following vulnerability has been resolved: sunrpc: fix client side handling of tls alerts A security exploit was discovered in NFS over TLS in tls_alert_recv due to its assumption that there is valid data in the msghdr's iterator's kvec. Instead, this patch proposes the rework how control messages are setup and used by sock_recvmsg(). If no control message structure is setup, kTLS layer will read and process TLS data record types. As soon as it encounters a TLS control message, it would return an error. At that point, NFS can setup a kvec backed control buffer and read in the control message such as a TLS alert. Scott found that a msg iterator can advance the kvec pointer as a part of the copy process thus we need to revert the iterator before calling into the tls_alert_recv.

A flaw was found in the Linux kernel's SUNRPC subsystem when Network File System (NFS) over Transport Layer Security (TLS) is enabled. When processing TLS control alerts, the client fails to properly handle message buffer pointers. A remote attacker controlling an NFS server or session could send a crafted TLS alert to trigger a kernel crash, resulting in a Denial of Service (DoS) on the client system.