CVE 목록
Medium5.5유형: 운영체제

CVE-2022-49605

공개
2025년 2월 26일
수정
2026년 6월 17일
조회
0
상태
Analyzed
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
5.5Medium

개요

이 취약점이 무엇인지

In the Linux kernel, the following vulnerability has been resolved:

igc: Reinstate IGC_REMOVED logic and implement it properly

The initially merged version of the igc driver code (via commit 146740f9abc4, "igc: Add support for PF") contained the following IGC_REMOVED checks in the igc_rd32/wr32() MMIO accessors:

u32 igc_rd32(struct igc_hw *hw, u32 reg) { u8 __iomem *hw_addr = READ_ONCE(hw->hw_addr); u32 value = 0;

if (IGC_REMOVED(hw_addr)) return ~value;

value = readl(&hw_addr[reg]);

/* reads should not return all F's */ if (!(~value) && (!reg || !(~readl(hw_addr)))) hw->hw_addr = NULL;

return value; }

And:

#define wr32(reg, val) \ do { \ u8 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \ if (!IGC_REMOVED(hw_addr)) \ writel((val), &hw_addr[(reg)]); \ } while (0)

E.g. igb has similar checks in its MMIO accessors, and has a similar macro E1000_REMOVED, which is implemented as follows:

#define E1000_REMOVED(h) unlikely(!(h))

These checks serve to detect and take note of an 0xffffffff MMIO read return from the device, which can be caused by a PCIe link flap or some other kind of PCI bus error, and to avoid performing MMIO reads and writes from that point onwards.

However, the IGC_REMOVED macro was not originally implemented:

#ifndef IGC_REMOVED #define IGC_REMOVED(a) (0) #endif /* IGC_REMOVED */

This led to the IGC_REMOVED logic to be removed entirely in a subsequent commit (commit 3c215fb18e70, "igc: remove IGC_REMOVED function"), with the rationale that such checks matter only for virtualization and that igc does not support virtualization -- but a PCIe device can become detached even without virtualization being in use, and without proper checks, a PCIe bus error affecting an igc adapter will lead to various NULL pointer dereferences, as the first access after the error will set hw->hw_addr to NULL, and subsequent accesses will blindly dereference this now-NULL pointer.

This patch reinstates the IGC_REMOVED checks in igc_rd32/wr32(), and implements IGC_REMOVED the way it is done for igb, by checking for the unlikely() case of hw_addr being NULL. This change prevents the oopses seen when a PCIe link flap occurs on an igc adapter.

실제 악용 사례 · 아직 확인된 사례가 없어요

CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.

패치 현황

어떤 버전이 위험하고, 몇 버전으로 올리면 되는지

제품시작끝이 버전 이상으로
linux_kernellinux4.20≤취약<5.4.2085.4.208이상
5.5≤취약<5.10.1345.10.134이상
5.11≤취약<5.15.585.15.58이상
5.16≤취약<5.18.155.18.15이상
이 버전만취약=5.19 rc1벤더 공지 확인
이 버전만취약=5.19 rc2벤더 공지 확인
이 버전만취약=5.19 rc3벤더 공지 확인
이 버전만취약=5.19 rc4벤더 공지 확인
이 버전만취약=5.19 rc5벤더 공지 확인
이 버전만취약=5.19 rc6벤더 공지 확인
이 버전만취약=5.19 rc7벤더 공지 확인

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 7줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux이 버전만취약=4.20벤더 공지 확인
최초 버전≤영향 없음<4.20—
5.4.208≤영향 없음≤5.4.*—
5.10.134≤영향 없음≤5.10.*—
5.15.58≤영향 없음≤5.15.*—
5.18.15≤영향 없음≤5.18.*—
5.19≤영향 없음≤최신 버전—

참고 링크

NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.