CVE-2023-52973
- 공개
- 2025년 3월 28일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Analyzed
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
After a call to console_unlock() in vcs_read() the vc_data struct can be freed by vc_deallocate(). Because of that, the struct vc_data pointer load must be done at the top of while loop in vcs_read() to avoid a UAF when vcs_size() is called.
Syzkaller reported a UAF in vcs_size().
BUG: KASAN: use-after-free in vcs_size (drivers/tty/vt/vc_screen.c:215) Read of size 4 at addr ffff8881137479a8 by task 4a005ed81e27e65/1537
CPU: 0 PID: 1537 Comm: 4a005ed81e27e65 Not tainted 6.2.0-rc5 #1 Hardware name: Red Hat KVM, BIOS 1.15.0-2.module Call Trace: <TASK> __asan_report_load4_noabort (mm/kasan/report_generic.c:350) vcs_size (drivers/tty/vt/vc_screen.c:215) vcs_read (drivers/tty/vt/vc_screen.c:415) vfs_read (fs/read_write.c:468 fs/read_write.c:450) ... </TASK>
Allocated by task 1191: ... kmalloc_trace (mm/slab_common.c:1069) vc_allocate (./include/linux/slab.h:580 ./include/linux/slab.h:720 drivers/tty/vt/vt.c:1128 drivers/tty/vt/vt.c:1108) con_install (drivers/tty/vt/vt.c:3383) tty_init_dev (drivers/tty/tty_io.c:1301 drivers/tty/tty_io.c:1413 drivers/tty/tty_io.c:1390) tty_open (drivers/tty/tty_io.c:2080 drivers/tty/tty_io.c:2126) chrdev_open (fs/char_dev.c:415) do_dentry_open (fs/open.c:883) vfs_open (fs/open.c:1014) ...
Freed by task 1548: ... kfree (mm/slab_common.c:1021) vc_port_destruct (drivers/tty/vt/vt.c:1094) tty_port_destructor (drivers/tty/tty_port.c:296) tty_port_put (drivers/tty/tty_port.c:312) vt_disallocate_all (drivers/tty/vt/vt_ioctl.c:662 (discriminator 2)) vt_ioctl (drivers/tty/vt/vt_ioctl.c:903) tty_ioctl (drivers/tty/tty_io.c:2776) ...
The buggy address belongs to the object at ffff888113747800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 424 bytes inside of 1024-byte region [ffff888113747800, ffff888113747c00)
The buggy address belongs to the physical page: page:00000000b3fe6c7c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113740 head:00000000b3fe6c7c order:3 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 anon flags: 0x17ffffc0010200(slab|head|node=0|zone=2|lastcpupid=0x1fffff) raw: 0017ffffc0010200 ffff888100042dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected
Memory state around the buggy address: ffff888113747880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113747900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb > ffff888113747980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888113747a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113747a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Disabling lock debugging due to kernel taint
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 2.6.38 | ≤ | 취약 | < | 4.14.329 | 4.14.329이상 |
| 4.15 | ≤ | 취약 | < | 4.19.273 | 4.19.273이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.232 | 5.4.232이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.168 | 5.10.168이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.93 | 5.15.93이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.11 | 6.1.11이상 | |
| 이 버전만 | 취약 | = | 6.2 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc6 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 2.6.38 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 2.6.38 | — | |
| 4.14.329 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.273 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.232 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.168 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.93 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.11 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.2 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/226fae124b2dac217ea5436060d623ff3385bc34
- git.kernel.org/stable/c/55515d7d8743b71b80bfe68e89eb9d92630626ab
- git.kernel.org/stable/c/6332f52f44b9776568bf3c0b714ddfb0bb175e78
- git.kernel.org/stable/c/8506f16aae9daf354e3732bcfd447e2a97f023df
- git.kernel.org/stable/c/af79ea9a2443016f64d8fd8d72020cc874f0e066