一、 漏洞 CVE-2025-39946 基础信息
漏洞信息
                                        # TLS:确保头信息错误时中止流

## 概述

Linux 内核中修复了一个 TLS 协议处理相关的漏洞,问题出现在接收数据时对 TLS 记录头的解析逻辑上。

## 影响版本

漏洞存在于处理 TLS 记录的模块中,具体影响版本未明确提及,建议关注内核更新日志或相关公告确认。

## 细节

在正常情况下,内核等待 socket 缓冲区接收完整的 TLS 记录后再处理。但是当 socket 的缓冲区非常小时,内核会提前读取数据以防止连接卡顿。这可能导致解析不完整或非法的 TLS 记录。

漏洞的产生在于:即使在后续发现当前记录无效,内核没有立即中止处理流程,而是尝试重复解析,每次解析前会继续复制更多数据,最终可能导致 sk_buff(skb)空间溢出。

攻击者可通过特殊构造的场景实现此问题,例如通过发送 header 数据的 out-of-band(OOB)小包,使内核无法正确预判数据长度,再用一个大数据包填满接收缓冲区。

## 影响

该漏洞可能导致系统出现拒绝服务(DoS),甚至潜在的数据解析错误,从而影响 TLS 数据的安全处理流程。修复内容确保当检测到非法 TLS 记录时立即中止当前数据流处理,避免进一步操作。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
tls: make sure to abort the stream if headers are bogus
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: tls: make sure to abort the stream if headers are bogus Normally we wait for the socket to buffer up the whole record before we service it. If the socket has a tiny buffer, however, we read out the data sooner, to prevent connection stalls. Make sure that we abort the connection when we find out late that the record is actually invalid. Retrying the parsing is fine in itself but since we copy some more data each time before we parse we can overflow the allocated skb space. Constructing a scenario in which we're under pressure without enough data in the socket to parse the length upfront is quite hard. syzbot figured out a way to do this by serving us the header in small OOB sends, and then filling in the recvbuf with a large normal send. Make sure that tls_rx_msg_size() aborts strp, if we reach an invalid record there's really no way to recover.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于TLS流未在发现无效记录头时及时中止,可能导致缓冲区溢出。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-39946 的公开POC
# POC 描述 源链接 神龙链接
1 Exploit for CVE-2025-39946, a bug in the Linux kernel's net/tls subsystem. https://github.com/farazsth98/exploit-CVE-2025-39946 POC详情
三、漏洞 CVE-2025-39946 的情报信息
四、漏洞 CVE-2025-39946 的评论

暂无评论


发表评论