CVE-2026-53362 ipv6: account for fraggap on the paged allocation path
ipv6: 페이지 할당 경로의 fraggap 계정 기계 번역
설명
Linux 커널에서 다음 취약점이 해결되었습니다. ipv6: 페이지 할당 경로의 fraggap 계정 __ip6_append_data()에서 paged-allocation 브랜치가 사용될 때 (MSG_MORE / NETIF_F_SG / large fraglen), alloclen 그리고 pagedlen은 다음과 같이 계산된다. alloclen = fragheaderlen + transhdrlen; 페이지드렌 = 데이터렌 - 트랜스드렌; datalen은 이미 fraggap을 포함하고 있습니다 (datalen = length + fraggap). fraggap이 0이 아닐 때, 이것은 첫 번째 skb가 아니고 transhdrlen은 0입니다. 이전 skb에서 가져온 fraggap 바이트는 새 skb의 선형 영역에서 프래그먼트 헤더를지나 복사됩니다. 따라서 선형 영역은 fraggap 바이트로 축소되고 pagedlen은 동일한 양으로 과장되며 사본은 과거 skb-> end를 후행 skb_shared_info에 씁니다. 비특권 사용자는 UDPv6 소켓을 사용하여 이 작업을 트리거할 수 있습니다. MSG_SPLICE_PAGES와 함께 MSG_MORE를 사용하세요. 나쁜 회계는 커밋 773ba4fe9104 ("ipv6: (ZC 부분 복사본을 피하세요.) 커밋 전 ce650a166335 ("udp6: 수정) __ip6_append_data() 의 MSG_SPLICE_PAGES 처리", 음의 복사 값이 -EINVAL 반환되는 원인이 됩니다. 나중에 허용된 commit MSG_SPLICE_PAGES 이 경우 진행하여 손상이 트리거될 수 있도록 합니다. 페이지가 없는 브랜치는 alloclen을 fraglen으로 설정하는데, 이는 datalen이 이미 fraggap을 설명해주고 있기 때문이다. 페이지된 브랜치를 alloclen에 추가하여 pagedlen에서 빼서 행에 가져옵니다. 이 조정 후에는 페이지된 경로의 -fraggap으로 더 이상 복사하지 않으므로 오래된 산수를 설명하는 오래된 주석을 제거합니다. 유효한 MSG_SPLICE_PAGES 케이스에 대해 더 이상 음수 복사본이 예상되지 않으므로, 음수 복사본 검사에서 MSG_SPLICE_PAGES 예외를 제거하십시오.
기계 번역
원문 보기
In the Linux kernel, the following vulnerability has been resolved: ipv6: account for fraggap on the paged allocation path In __ip6_append_data(), when the paged-allocation branch is taken (MSG_MORE / NETIF_F_SG / large fraglen), alloclen and pagedlen are computed as alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen; datalen already includes fraggap (datalen = length + fraggap). When fraggap is non-zero, this is not the first skb and transhdrlen is zero. The fraggap bytes carried over from the previous skb are copied just past the fragment headers in the new skb's linear area. The linear area is therefore undersized by fraggap bytes while pagedlen is overstated by the same amount, and the copy writes past skb->end into the trailing skb_shared_info. An unprivileged user can trigger this via a UDPv6 socket using MSG_MORE together with MSG_SPLICE_PAGES. The bad accounting was introduced by commit 773ba4fe9104 ("ipv6: avoid partial copy for zc"). Before commit ce650a166335 ("udp6: Fix __ip6_append_data()'s handling of MSG_SPLICE_PAGES"), the negative copy value caused -EINVAL to be returned. That later commit allowed MSG_SPLICE_PAGES to proceed in this case, making the corruption triggerable. The non-paged branch sets alloclen to fraglen, which already accounts for fraggap because datalen does. Bring the paged branch in line by adding fraggap to alloclen and subtracting it from pagedlen. After this adjustment, copy no longer collapses to -fraggap on the paged path, so remove the stale comment describing that old arithmetic. Since a negative copy is no longer expected for a valid MSG_SPLICE_PAGES case, remove the MSG_SPLICE_PAGES exception from the negative copy check.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.0
해결 버전
- 6.0 미만
- 6.1.177 이상
- 6.6.144 이상
- 6.12.95 이상
- 6.18.38 이상
- 7.1.3 이상