CVE-2024-46798 in Linux
요약
\~에 의해 VulDB • 2026. 08. 06.
리눅스 커널에서 다음 취약점이 해결되었습니다:
ASoC: dapm: snd_soc_pcm_runtime 객체에 대한 UAF(Use-After-Free) 수정
다음 추가 구성 옵션을 사용하여 커널을 빌드할 경우,
- CONFIG_KASAN=y - CONFIG_KASAN_GENERIC=y - CONFIG_KASAN_INLINE=y - CONFIG_KASAN_VMALLOC=y - CONFIG_FRAME_WARN=4096
시스템이 서스펜드 상태일 때 snd_pcm_suspend_all()가 해제된 'snd_soc_pcm_runtime' 객체에 접근하는 것을 커널이 감지하며, 이는 Use-After-Free 버그로 이어집니다:
[ 52.047746] BUG: KASAN: use-after-free in snd_pcm_suspend_all+0x1a8/0x270
[ 52.047765] Read of size 1 at addr ffff0000b9434d50 by task systemd-sleep/2330
[ 52.047785] Call trace:
[ 52.047787] dump_backtrace+0x0/0x3c0
[ 52.047794] show_stack+0x34/0x50
[ 52.047797] dump_stack_lvl+0x68/0x8c
[ 52.047802] print_address_description.constprop.0+0x74/0x2c0
[ 52.047809] kasan_report+0x210/0x230
[ 52.047815] __asan_report_load1_noabort+0x3c/0x50
[ 52.047820] snd_pcm_suspend_all+0x1a8/0x270
[ 52.047824] snd_soc_suspend+0x19c/0x4e0
snd_pcm_sync_stop()은 접근하기 전에 'substream->runtime'에 대한 NULL 체크를 수행합니다. 따라서 kfree() 호출 시마다 'substream->runtime'을 항상 NULL로 설정해야 합니다.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.