🔍 CVE-2026-31580

7.8
CVSS Score
HIGH
2026-04-24
2026-10-15 02:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 bcache 구성 요소에서 cached_dev.sb_bio 구조체에 대한 Use-After-Free 취약점이 발견되었습니다. 장치가 중지되는 과정에서 슈퍼블록 쓰기 작업이 완료되기 전에 메모리가 해제되어 시스템 충돌이나 예기치 않은 동작을 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 저장 장치를 관리하는 프로그램이 데이터를 저장하는 도중에 관리용 메모리를 먼저 지워버려서 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bcache: fix cached_dev.sb_bio use-after-free and crash In our production environment, we have received multiple crash reports regarding libceph, which have caught our attention: ``` [6888366.280350] Call Trace: [6888366.280452] blk_update_request+0x14e/0x370 [6888366.280561] blk_mq_end_request+0x1a/0x130 [6888366.280671] rbd_img_handle_request+0x1a0/0x1b0 [rbd] [6888366.280792] rbd_obj_handle_request+0x32/0x40 [rbd] [6888366.280903] __complete_request+0x22/0x70 [libceph] [6888366.281032] osd_dispatch+0x15e/0xb40 [libceph] [6888366.281164] ? inet_recvmsg+0x5b/0xd0 [6888366.281272] ? ceph_tcp_recvmsg+0x6f/0xa0 [libceph] [6888366.281405] ceph_con_process_message+0x79/0x140 [libceph] [6888366.281534] ceph_con_v1_try_read+0x5d7/0xf30 [libceph] [6888366.281661] ceph_con_workfn+0x329/0x680 [libceph] ``` After analyzing the coredump file, we found that the address of dc->sb_bio has been freed. We know that cached_dev is only freed when it is stopped. Since sb_bio is a part of struct cached_dev, rather than an alloc every time. If the device is stopped while writing to the superblock, the released address will be accessed at endio. This patch hopes to wait for sb_write to complete in cached_dev_free. It should be noted that we analyzed the cause of the problem, then tell all details to the QWEN and adopted the modifications it made.

📍 영향받는 시스템

Linux Kernel (bcache 모듈을 사용하는 시스템)

⚔️ 공격 벡터

로컬 공격자가 장치 중지 프로세스를 유도하여 메모리 오류를 발생시킴 (Local)

🛡️ 대응 방법

bcache의 sb_write 완료를 보장하도록 수정된 최신 Linux 커널 패치를 적용하십시오.

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel