🔍 CVE-2023-52497

7.1
CVSS Score
HIGH
2024-03-01
2026-08-04 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 EROFS 파일 시스템에서 LZ4 인플레이스(in-place) 압축 해제 시 데이터 손상이 발생할 수 있는 취약점입니다. 특정 최신 Intel x86 프로세서의 FSRM 기능과 rep movsb 명령어가 결합될 때, 압축 데이터의 배치 순서가 불확실하여 데이터가 올바르게 복구되지 않는 문제가 확인되었습니다.

💡 쉬운 설명

파일을 압축 해제하는 과정에서 데이터의 순서가 꼬여 파일 내용이 깨지는 현상이 발생할 수 있습니다. 특히 최신 인텔 CPU를 사용하는 환경에서 데이터가 손상될 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: erofs: fix lz4 inplace decompression Currently EROFS can map another compressed buffer for inplace decompression, that was used to handle the cases that some pages of compressed data are actually not in-place I/O. However, like most simple LZ77 algorithms, LZ4 expects the compressed data is arranged at the end of the decompressed buffer and it explicitly uses memmove() to handle overlapping: __________________________________________________________ |_ direction of decompression --> ____ |_ compressed data _| Although EROFS arranges compressed data like this, it typically maps two individual virtual buffers so the relative order is uncertain. Previously, it was hardly observed since LZ4 only uses memmove() for short overlapped literals and x86/arm64 memmove implementations seem to completely cover it up and they don't have this issue. Juhyung reported that EROFS data corruption can be found on a new Intel x86 processor. After some analysis, it seems that recent x86 processors with the new FSRM feature expose this issue with "rep movsb". Let's strictly use the decompressed buffer for lz4 inplace decompression for now. Later, as an useful improvement, we could try to tie up these two buffers together in the correct order.

📍 영향받는 시스템

LZ4 인플레이스 압축 해제를 사용하는 EROFS 파일 시스템이 포함된 Linux 커널 (최신 Intel x86 프로세서 환경 포함)

⚔️ 공격 벡터

직접적인 원격 공격보다는 특정 하드웨어 환경에서 파일 시스템을 사용하는 과정에서 데이터 무결성이 파괴되는 방식

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

💻 영향받는 소프트웨어

WP Maps Pro