🇰🇷 한글 설명
Linux 커널의 SMB 구현에서 netfs 전환 과정 중 발생한 회귀 결함으로, 서버가 협상한 최대 쓰기 크기가 4096의 배수가 아닐 경우 데이터 손상이 발생할 수 있습니다. 사용자가 마운트 옵션(wsize)을 통해 비표준 크기를 설정할 때도 마지막 페이지의 끝부분을 건너뛰는 문제가 발생합니다.
💡 쉬운 설명
파일을 저장할 때 데이터 덩어리 크기가 규칙(4096의 배수)에 맞지 않으면, 파일의 마지막 부분이 제대로 저장되지 않고 깨질 수 있는 문제입니다. 이는 시스템 오류나 데이터 유실로 이어질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
smb: Fix regression in writes when non-standard maximum write size negotiated
The conversion to netfs in the 6.3 kernel caused a regression when
maximum write size is set by the server to an unexpected value which is
not a multiple of 4096 (similarly if the user overrides the maximum
write size by setting mount parm "wsize", but sets it to a value that
is not a multiple of 4096). When negotiated write size is not a
multiple of 4096 the netfs code can skip the end of the final
page when doing large sequential writes, causing data corruption.
This section of code is being rewritten/removed due to a large
netfs change, but until that point (ie for the 6.3 kernel until now)
we can not support non-standard maximum write sizes.
Add a warning if a user specifies a wsize on mount that is not
a multiple of 4096 (and round down), also add a change where we
round down the maximum write size if the server negotiates a value
that is not a multiple of 4096 (we also have to check to make sure that
we do not round it down to zero).
📍 영향받는 시스템
Linux kernel 6.3 이상 버전 (netfs 도입 이후 버전)
⚔️ 공격 벡터
비표준 쓰기 크기를 사용하는 SMB 서버와의 통신 또는 잘못된 wsize 마운트 옵션 설정
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하거나, SMB 마운트 시 wsize를 4096의 배수로 설정합니다.
🔧 검증 코드
출력된 커널 버전이 6.3 이상인지 확인하고, 최신 보안 패치가 적용된 배포판 버전인지 확인합니다.