CVE-2020-36789
- 공개
- 2025년 4월 18일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
can: dev: can_get_echo_skb(): prevent call to kfree_skb() in hard IRQ context
If a driver calls can_get_echo_skb() during a hardware IRQ (which is often, but not always, the case), the 'WARN_ON(in_irq)' in net/core/skbuff.c#skb_release_head_state() might be triggered, under network congestion circumstances, together with the potential risk of a NULL pointer dereference.
The root cause of this issue is the call to kfree_skb() instead of dev_kfree_skb_irq() in net/core/dev.c#enqueue_to_backlog().
This patch prevents the skb to be freed within the call to netif_rx() by incrementing its reference count with skb_get(). The skb is finally freed by one of the in-irq-context safe functions: dev_consume_skb_any() or dev_kfree_skb_any(). The "any" version is used because some drivers might call can_get_echo_skb() in a normal context.
The reason for this issue to occur is that initially, in the core network stack, loopback skb were not supposed to be received in hardware IRQ context. The CAN stack is an exeption.
This bug was previously reported back in 2017 in [1] but the proposed patch never got accepted.
While [1] directly modifies net/core/dev.c, we try to propose here a smoother modification local to CAN network stack (the assumption behind is that only CAN devices are affected by this issue).
[1] http://lore.kernel.org/r/[email protected]
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 2.6.31 | ≤ | 취약 | < | 4.4.244 | 4.4.244이상 |
| 4.5 | ≤ | 취약 | < | 4.9.244 | 4.9.244이상 | |
| 4.10 | ≤ | 취약 | < | 4.14.207 | 4.14.207이상 | |
| 4.15 | ≤ | 취약 | < | 4.19.158 | 4.19.158이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.78 | 5.4.78이상 | |
| 5.5 | ≤ | 취약 | < | 5.9.9 | 5.9.9이상 | |
| 이 버전만 | 취약 | = | 5.10 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 5.10 rc2 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 2.6.31 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 2.6.31 | — | |
| 4.4.244 | ≤ | 영향 없음 | ≤ | 4.4.* | — | |
| 4.9.244 | ≤ | 영향 없음 | ≤ | 4.9.* | — | |
| 4.14.207 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.158 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.78 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.9.9 | ≤ | 영향 없음 | ≤ | 5.9.* | — | |
| 5.10 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/2283f79b22684d2812e5c76fc2280aae00390365
- git.kernel.org/stable/c/248b71ce92d4f3a574b2537f9838f48e892618f4
- git.kernel.org/stable/c/3a922a85701939624484e7f2fd07d32beed00d25
- git.kernel.org/stable/c/451187b20431924d13fcfecc500d7cd2d9951bac
- git.kernel.org/stable/c/7e4cf2ec0ca236c3e5f904239cec6efe1f3baf22