CVE-2025-39682 tls: fix handling of zero-length records on the rx_list
tls: rx_list 에 있는 0 길이 레코드의 처리 수정 기계 번역
설명
Linux 커널에서 다음 취약점이 해결되었습니다. tls: rx_list 에 있는 0 길이 레코드의 처리 수정 각 recvmsg () 호출은 반드시 처리해야합니다. - 단지 인접한 데이터 레코드 (그들 중 어떤 수) - 1개의 비 데이타 기록 다음 레코드가 이미 처리 된 것과 다른 유형을 가진다면 우리는 주요 처리 루프에서 벗어납니다. 만약 레코드가 이미 복호화 되었다면(복호화 전까지 타입을 모르는 TLS 1.3의 경우일 수 있다), 우리는 보류 중인 레코드를 rx_list에 큐한다. 다음 recvmsg()는 거기에서 그것을 픽업할 것이다. 0-복사 복호화 후 skb를 rx_list로 큐하는 것은 가능하지 않습니다, 왜냐하면 이 경우 우리는 사용자 공간 버퍼로 직접 복호화할 수 있고 큐에 대한 skb가 없기 때문입니다 (darg.skb는 길이와 같은 메타데이터에 대한 액세스를 위해 암호문 skb를 가리킵니다). 데이터 레코드만 제로 복사가 허용되며 각 비 데이터 레코드 후에 처리 루프를 중단합니다. 그래서 우리는 절대 0으로 복사해서 기록 유형이 변한 것을 찾아내서는 안됩니다. 우리가 놓친 코너 케이스는 초기 레코드가 rx_list에서 올 때이며 길이가 0입니다.
기계 번역
원문 보기
In the Linux kernel, the following vulnerability has been resolved: tls: fix handling of zero-length records on the rx_list Each recvmsg() call must process either - only contiguous DATA records (any number of them) - one non-DATA record If the next record has different type than what has already been processed we break out of the main processing loop. If the record has already been decrypted (which may be the case for TLS 1.3 where we don't know type until decryption) we queue the pending record to the rx_list. Next recvmsg() will pick it up from there. Queuing the skb to rx_list after zero-copy decrypt is not possible, since in that case we decrypted directly to the user space buffer, and we don't have an skb to queue (darg.skb points to the ciphertext skb for access to metadata like length). Only data records are allowed zero-copy, and we break the processing loop after each non-data record. So we should never zero-copy and then find out that the record type has changed. The corner case we missed is when the initial record comes from rx_list, and it's zero length.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.0
해결 버전
- 6.0 미만
- 6.1.149 이상
- 6.6.103 이상
- 6.12.44 이상
- 6.16.4 이상