🔍 CVE-2026-97993

0.0
CVSS Score
UNKNOWN
2026-09-25
2026-10-19 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 vhost-vdpa 구성에서 eventfd_ctx_fdget() 호출 실패 시 오류 포인터(ERR_PTR)가 잠시 동안 설정값에 저장되는 취약점입니다. 이로 인해 설정 인터럽트가 발생할 경우 잘못된 포인터가 전달되어 시스템 불안정이나 서비스 중단을 초래할 수 있습니다.

💡 쉬운 설명

시스템 설정 과정에서 오류가 발생했을 때, 잘못된 값이 잠시 메모리에 남게 되어 프로그램이 오작동할 수 있는 문제입니다. 이로 인해 장치의 알림 기능이 갑자기 멈추거나 시스템에 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: vhost-vdpa: don't install the eventfd_ctx_fdget() error in config_ctx vhost_vdpa_set_config_call() swaps the eventfd_ctx_fdget() return value into v->config_ctx before checking it, so on failure the field briefly holds an ERR_PTR: ctx = fd == VHOST_FILE_UNBIND ? NULL : eventfd_ctx_fdget(fd); swap(ctx, v->config_ctx); if (!IS_ERR_OR_NULL(ctx)) eventfd_ctx_put(ctx); if (IS_ERR(v->config_ctx)) { long ret = PTR_ERR(v->config_ctx); v->config_ctx = NULL; return ret; } Commit 0bde59c1723a ("vhost-vdpa: set v->config_ctx to NULL if eventfd_ctx_fdget() fails") added that clearing, and spelled out the invariant the rest of the file relies on: "we consider 'v->config_ctx' valid if it is not NULL". The window between the swap and the clearing still breaks it. vhost_vdpa_config_cb() only tests for NULL, so a config interrupt delivered inside the window hands the ERR_PTR to eventfd_signal(). Check the fd before installing it instead. That closes the window and matches how vhost_vring_ioctl() handles the same failure for the vq call fd. It also stops a rejected fd from tearing down a config interrupt that was working: until now the swap replaced the live context and put it, so after an EBADF the device silently stopped delivering config interrupts until userspace installed a new fd.

📍 영향받는 시스템

Linux kernel (vhost-vdpa 모듈 사용 환경)

⚔️ 공격 벡터

잘못된 파일 디스크립터(fd)를 제공하여 vhost_vdpa_set_config_call 과정에서 오류를 유도하는 방식

🛡️ 대응 방법

커널 패치(Commit 0bde59c1723a 관련 수정 사항)를 적용하여 오류 발생 시 값을 교체하기 전 검증하도록 업데이트

🔧 검증 코드

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

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel