🔍 CVE-2023-53578

7.8
CVSS Score
HIGH
2025-10-04
2026-11-05 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널 net/qrtr 모듈의 qrtr_tx_resume() 함수에서 초기화되지 않은 변수에 접근하는 버그가 발견되었습니다. qrtr_endpoint_post()에서 QRTR_TYPE_RESUME_TX 패킷의 크기 검사가 누락되어, 구조체 크기보다 작은 패킷이 처리될 수 있었습니다. 이를 수정하기 위해 크기 검사를 추가했습니다.

💡 쉬운 설명

리눅스 커널의 통신 모듈에서 잘못된 크기의 데이터를 검사 없이 처리하던 문제입니다. 이로 인해 메모리의 정해지지 않은 값이 사용되어 시스템이 비정상 동작할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: qrtr: Fix an uninit variable access bug in qrtr_tx_resume() Syzbot reported a bug as following: ===================================================== BUG: KMSAN: uninit-value in qrtr_tx_resume+0x185/0x1f0 net/qrtr/af_qrtr.c:230 qrtr_tx_resume+0x185/0x1f0 net/qrtr/af_qrtr.c:230 qrtr_endpoint_post+0xf85/0x11b0 net/qrtr/af_qrtr.c:519 qrtr_tun_write_iter+0x270/0x400 net/qrtr/tun.c:108 call_write_iter include/linux/fs.h:2189 [inline] aio_write+0x63a/0x950 fs/aio.c:1600 io_submit_one+0x1d1c/0x3bf0 fs/aio.c:2019 __do_sys_io_submit fs/aio.c:2078 [inline] __se_sys_io_submit+0x293/0x770 fs/aio.c:2048 __x64_sys_io_submit+0x92/0xd0 fs/aio.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was created at: slab_post_alloc_hook mm/slab.h:766 [inline] slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x71f/0xce0 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0x114/0x3b0 mm/slab_common.c:988 kmalloc_reserve net/core/skbuff.c:492 [inline] __alloc_skb+0x3af/0x8f0 net/core/skbuff.c:565 __netdev_alloc_skb+0x120/0x7d0 net/core/skbuff.c:630 qrtr_endpoint_post+0xbd/0x11b0 net/qrtr/af_qrtr.c:446 qrtr_tun_write_iter+0x270/0x400 net/qrtr/tun.c:108 call_write_iter include/linux/fs.h:2189 [inline] aio_write+0x63a/0x950 fs/aio.c:1600 io_submit_one+0x1d1c/0x3bf0 fs/aio.c:2019 __do_sys_io_submit fs/aio.c:2078 [inline] __se_sys_io_submit+0x293/0x770 fs/aio.c:2048 __x64_sys_io_submit+0x92/0xd0 fs/aio.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd It is because that skb->len requires at least sizeof(struct qrtr_ctrl_pkt) in qrtr_tx_resume(). And skb->len equals to size in qrtr_endpoint_post(). But size is less than sizeof(struct qrtr_ctrl_pkt) when qrtr_cb->type equals to QRTR_TYPE_RESUME_TX in qrtr_endpoint_post() under the syzbot scenario. This triggers the uninit variable access bug. Add size check when qrtr_cb->type equals to QRTR_TYPE_RESUME_TX in qrtr_endpoint_post() to fix the bug.

📍 영향받는 시스템

크기 검사 수정 이전의 Linux 커널 (net/qrtr 모듈 포함 버전, 정확한 범위는 배포판 패치 정보 확인 필요)

⚔️ 공격 벡터

로컬 사용자가 qrtr tun 디바이스에 조작된 크기의 QRTR_TYPE_RESUME_TX 패킷을 기록하여 커널의 초기화되지 않은 메모리 접근을 유발

🛡️ 대응 방법

배포판 제공 최신 커널 업데이트를 적용하거나 해당 커밋이 포함된 커널로 재빌드하여 재부팅

🔧 검증 코드

커널 버전이 패치가 배포된 버전 이상인지 배포판 보안 공지와 대조하고, qrtr 모듈 로드 여부로 노출 가능성을 판단

Shell / Script
uname -r; lsmod | grep qrtr

📊 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