🔍 CVE-2021-47613

7.8
CVSS Score
HIGH
2024-06-19
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 i2c: virtio 드라이버에서 완료 처리 로직의 오류로 인해 발생하는 취약점입니다. 드라이버가 모든 버퍼가 완료되었다고 잘못 가정함으로써, 이미 해제된 메모리에 장치가 접근하여 데이터 오류나 메모리 오염을 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터 부품이 일을 다 끝냈다고 잘못 알려줄 때, 시스템이 이미 사용이 끝난 메모리 공간을 다시 사용하려고 시도하면서 발생하는 문제입니다. 이로 인해 데이터가 깨지거나 시스템이 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: i2c: virtio: fix completion handling The driver currently assumes that the notify callback is only received when the device is done with all the queued buffers. However, this is not true, since the notify callback could be called without any of the queued buffers being completed (for example, with virtio-pci and shared interrupts) or with only some of the buffers being completed (since the driver makes them available to the device in multiple separate virtqueue_add_sgs() calls). This can lead to incorrect data on the I2C bus or memory corruption in the guest if the device operates on buffers which are have been freed by the driver. (The WARN_ON in the driver is also triggered.) BUG kmalloc-128 (Tainted: G W ): Poison overwritten First byte 0x0 instead of 0x6b Allocated in i2cdev_ioctl_rdwr+0x9d/0x1de age=243 cpu=0 pid=28 memdup_user+0x2e/0xbd i2cdev_ioctl_rdwr+0x9d/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 Freed in i2cdev_ioctl_rdwr+0x1bb/0x1de age=68 cpu=0 pid=28 kfree+0x1bd/0x1cc i2cdev_ioctl_rdwr+0x1bb/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 Fix this by calling virtio_get_buf() from the notify handler like other virtio drivers and by actually waiting for all the buffers to be completed.

📍 영향받는 시스템

Linux kernel (virtio-i2c driver 사용 환경)

⚔️ 공격 벡터

가상화 환경에서 악의적인 장치가 잘못된 인터럽트를 발생시켜 메모리 오염 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 virtio 버퍼 처리 로직 수정

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인

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