🔍 CVE-2023-53622

7.0
CVSS Score
HIGH
2025-10-07
2026-11-05 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널 gfs2 파일시스템의 gfs2_show_options() 함수에서 gt_logd_secs 등 gfs2_tune 구조체 필드를 잠금(gt_spin) 없이 읽어 gfs2_reconfigure() 등과 동시에 실행될 때 데이터 레이스가 발생할 수 있는 문제입니다. 패치는 필드 접근 구간에 spin lock을 적용하고, seq_printf 호출 중에는 잠금을 유지하지 않도록 수정했습니다.

💡 쉬운 설명

리눅스의 GFS2 파일시스템에서 마운트 옵션을 표시하는 코드가 보호되지 않은 상태로 설정값을 읽어, 다른 작업과 동시에 실행되면 잘못된 값이 읽힐 수 있습니다. 이 문제는 읽기 전에 잠금을 걸도록 고쳐져 안정성이 개선되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix possible data races in gfs2_show_options() Some fields such as gt_logd_secs of the struct gfs2_tune are accessed without holding the lock gt_spin in gfs2_show_options(): val = sdp->sd_tune.gt_logd_secs; if (val != 30) seq_printf(s, ",commit=%d", val); And thus can cause data races when gfs2_show_options() and other functions such as gfs2_reconfigure() are concurrently executed: spin_lock(&gt->gt_spin); gt->gt_logd_secs = newargs->ar_commit; To fix these possible data races, the lock sdp->sd_tune.gt_spin is acquired before accessing the fields of gfs2_tune and released after these accesses. Further changes by Andreas: - Don't hold the spin lock over the seq_printf operations.

📍 영향받는 시스템

GFS2 파일시스템을 사용하는 Linux 커널 (수정 패치가 적용되기 전 버전)

⚔️ 공격 벡터

로컬 사용자나 권한이 있는 프로세스가 마운트 재구성과 옵션 조회를 동시에 유발해 레이스 컨디션을 일으키는 방식이며, 원격 공격 경로는 확인되지 않음

🛡️ 대응 방법

배포판이 제공하는 최신 커널 업데이트를 설치하고 재부팅하거나, 해당 upstream 수정 커밋이 포함된 커널로 업그레이드

🔧 검증 코드

커널 버전을 확인해 배포판의 수정된 패키지 버전 이상인지 비교하고, gfs2 모듈이 로드되지 않았다면 이 취약점의 영향을 받지 않는 것으로 판단합니다.

Shell / Script
uname -r && (lsmod | grep -w gfs2 || echo 'gfs2 module not loaded')

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel