CVE-2026-31494
- 공개
- 2026년 4월 22일
- 수정
- 2026년 11월 12일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
net: macb: use the current queue number for stats
There's a potential mismatch between the memory reserved for statistics and the amount of memory written.
gem_get_sset_count() correctly computes the number of stats based on the active queues, whereas gem_get_ethtool_stats() indiscriminately copies data using the maximum number of queues, and in the case the number of active queues is less than MACB_MAX_QUEUES, this results in a OOB write as observed in the KASAN splat.
================================================================== BUG: KASAN: vmalloc-out-of-bounds in gem_get_ethtool_stats+0x54/0x78 [macb] Write of size 760 at addr ffff80008080b000 by task ethtool/1027
CPU: [...] Tainted: [E]=UNSIGNED_MODULE Hardware name: raspberrypi rpi/rpi, BIOS 2025.10 10/01/2025 Call trace: show_stack+0x20/0x38 (C) dump_stack_lvl+0x80/0xf8 print_report+0x384/0x5e0 kasan_report+0xa0/0xf0 kasan_check_range+0xe8/0x190 __asan_memcpy+0x54/0x98 gem_get_ethtool_stats+0x54/0x78 [macb 926c13f3af83b0c6fe64badb21ec87d5e93fcf65] dev_ethtool+0x1220/0x38c0 dev_ioctl+0x4ac/0xca8 sock_do_ioctl+0x170/0x1d8 sock_ioctl+0x484/0x5d8 __arm64_sys_ioctl+0x12c/0x1b8 invoke_syscall+0xd4/0x258 el0_svc_common.constprop.0+0xb4/0x240 do_el0_svc+0x48/0x68 el0_svc+0x40/0xf8 el0t_64_sync_handler+0xa0/0xe8 el0t_64_sync+0x1b0/0x1b8
The buggy address belongs to a 1-page vmalloc region starting at 0xffff80008080b000 allocated at dev_ethtool+0x11f0/0x38c0 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff00000a333000 pfn:0xa333 flags: 0x7fffc000000000(node=0|zone=0|lastcpupid=0x1ffff) raw: 007fffc000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff00000a333000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected
Memory state around the buggy address: ffff80008080b080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff80008080b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff80008080b180: 00 00 00 00 00 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffff80008080b200: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffff80008080b280: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================
Fix it by making sure the copied size only considers the active number of queues.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.16.1 | ≤ | 취약 | < | 5.10.253 | 5.10.253이상 |
| 5.11 | ≤ | 취약 | < | 5.15.203 | 5.15.203이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.168 | 6.1.168이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.131 | 6.6.131이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.80 | 6.12.80이상 | |
| 6.13 | ≤ | 취약 | < | 6.18.21 | 6.18.21이상 | |
| 6.19 | ≤ | 취약 | < | 6.19.11 | 6.19.11이상 | |
| 이 버전만 | 취약 | = | 4.16 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc7 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.16 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.16 | — | |
| 5.10.253 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.203 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.168 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.131 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.80 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.21 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 6.19.11 | ≤ | 영향 없음 | ≤ | 6.19.* | — | |
| 7.0 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/240c5302eed83e34e98db18f6795ee5f40814024
- git.kernel.org/stable/c/72d96e4e24bbefdcfbc68bdb9341a05d8f5cb6e5
- git.kernel.org/stable/c/7ff87da099210856cbfe2f2f7f52ddfa57af4f0c
- git.kernel.org/stable/c/95246341945163ad9a250a87ca5bd1c1252777ae
- git.kernel.org/stable/c/9596759a84e1dbf2670518d85e969208960041f9