🔍 CVE-2024-41014

7.1
CVSS Score
HIGH
2024-07-29
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 XFS 파일 시스템에서 xlog_recover_process_data 함수 내 xlog_op_header의 고정 멤버 크기에 대한 경계 검사가 누락된 취약점입니다. 공격자가 조작된 XFS 이미지를 사용하여 경계 외 읽기(Out-of-bounds read)를 유발할 수 있습니다.

💡 쉬운 설명

파일 시스템의 기록을 복구하는 과정에서 데이터의 크기를 제대로 확인하지 않아 발생하는 문제입니다. 악의적으로 만들어진 파일을 사용하면 시스템이 허용되지 않은 메모리 영역을 읽어 오류를 일으킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xfs: add bounds checking to xlog_recover_process_data There is a lack of verification of the space occupied by fixed members of xlog_op_header in the xlog_recover_process_data. We can create a crafted image to trigger an out of bounds read by following these steps: 1) Mount an image of xfs, and do some file operations to leave records 2) Before umounting, copy the image for subsequent steps to simulate abnormal exit. Because umount will ensure that tail_blk and head_blk are the same, which will result in the inability to enter xlog_recover_process_data 3) Write a tool to parse and modify the copied image in step 2 4) Make the end of the xlog_op_header entries only 1 byte away from xlog_rec_header->h_size 5) xlog_rec_header->h_num_logops++ 6) Modify xlog_rec_header->h_crc Fix: Add a check to make sure there is sufficient space to access fixed members of xlog_op_header.

📍 영향받는 시스템

XFS 파일 시스템을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

조작된 XFS 파일 시스템 이미지를 마운트하여 경계 외 읽기 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 XFS 경계 검사 패치가 적용된 최신 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel