🇰🇷 한글 설명
Linux 커널의 rxrpc 프로토콜에서 splice()를 통해 로컬로 전송된 DATA 패킷을 제자리에서 복호화할 때 발생하는 페이지 캐시 오염 취약점입니다. 이를 해결하기 위해 데이터를 바운스 버퍼로 복사하여 복호화함으로써 원본 sk_buff를 수정하지 않도록 수정되었습니다.
💡 쉬운 설명
데이터를 암호화 해제하는 과정에서 시스템의 중요한 메모리 영역이 잘못 수정되어 데이터가 깨질 수 있는 문제입니다. 패킷을 안전한 임시 공간에 따로 복사해서 작업하도록 개선하여 시스템 안정성을 높였습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix DATA decrypt vs splice() by copying data to buffer in recvmsg
This improves the fix for CVE-2026-43500.
Fix the pagecache corruption from in-place decryption of a DATA packet
transmitted locally by splice() by getting rid of the packet sharing in the
I/O thread and unconditionally extracting the packet content into a bounce
buffer in which the buffer is decrypted. recvmsg() (or the kernel
equivalent) then copies the data from the bounce buffer to the destination
buffer. The sk_buff then remains unmodified.
This has an additional advantage in that the packet is then arranged in the
buffer with the correct alignment required for the crypto algorithms to
process directly. The performance of the crypto does seem to be a little
faster and, surprisingly, the unencrypted performance doesn't seem to
change much - possibly due to removing complexity from the I/O thread.
Yet another advantage is that the I/O thread doesn't have to copy packets
which would slow down packet distribution, ACK generation, etc..
The buffer belongs to the call and is allocated initially at 2K,
sufficiently large to hold a whole jumbo subpacket, but the buffer will be
increased in size if needed. However, to take this work, MSG_PEEK may
cause a later packet to be decrypted into the buffer, in which case the
earlier one will need re-decrypting for a subsequent recvmsg().
Note that rx_pkt_offset may legitimately see 0 as a valid offset now, so
switch to using USHRT_MAX to indicate an invalid offset.
Note also that I would generally prefer to replace the buffers of the
current sk_buff with a new kmalloc'd buffer of the right size, ditching the
old data and frags as this makes the handling of MSG_PEEK easier and
removes the re-decryption issue, but this looks like quite a complicated
thing to achieve. skb_morph() looks half way to what I want, but I don't
want to have to allocate a new sk_buff.
📍 영향받는 시스템
Linux kernel (rxrpc 프로토콜을 사용하는 시스템)
⚔️ 공격 벡터
로컬에서 splice()를 이용해 암호화된 DATA 패킷을 처리하는 과정에서 메모리 오염 유도
🛡️ 대응 방법
rxrpc 패킷 복호화 로직이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인