CVE-2025-21986
- 공개
- 2025년 4월 2일
- 수정
- 2026년 11월 6일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
net: switchdev: Convert blocking notification chain to a raw one
A blocking notification chain uses a read-write semaphore to protect the integrity of the chain. The semaphore is acquired for writing when adding / removing notifiers to / from the chain and acquired for reading when traversing the chain and informing notifiers about an event.
In case of the blocking switchdev notification chain, recursive notifications are possible which leads to the semaphore being acquired twice for reading and to lockdep warnings being generated [1].
Specifically, this can happen when the bridge driver processes a SWITCHDEV_BRPORT_UNOFFLOADED event which causes it to emit notifications about deferred events when calling switchdev_deferred_process().
Fix this by converting the notification chain to a raw notification chain in a similar fashion to the netdev notification chain. Protect the chain using the RTNL mutex by acquiring it when modifying the chain. Events are always informed under the RTNL mutex, but add an assertion in call_switchdev_blocking_notifiers() to make sure this is not violated in the future.
Maintain the "blocking" prefix as events are always emitted from process context and listeners are allowed to block.
[1]: WARNING: possible recursive locking detected 6.14.0-rc4-custom-g079270089484 #1 Not tainted -------------------------------------------- ip/52731 is trying to acquire lock: ffffffff850918d8 ((switchdev_blocking_notif_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x58/0xa0
but task is already holding lock: ffffffff850918d8 ((switchdev_blocking_notif_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x58/0xa0
other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((switchdev_blocking_notif_chain).rwsem); lock((switchdev_blocking_notif_chain).rwsem);
*** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by ip/52731: #0: ffffffff84f795b0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x727/0x1dc0 #1: ffffffff8731f628 (&net->rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x790/0x1dc0 #2: ffffffff850918d8 ((switchdev_blocking_notif_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x58/0xa0
stack backtrace: ... ? __pfx_down_read+0x10/0x10 ? __pfx_mark_lock+0x10/0x10 ? __pfx_switchdev_port_attr_set_deferred+0x10/0x10 blocking_notifier_call_chain+0x58/0xa0 switchdev_port_attr_notify.constprop.0+0xb3/0x1b0 ? __pfx_switchdev_port_attr_notify.constprop.0+0x10/0x10 ? mark_held_locks+0x94/0xe0 ? switchdev_deferred_process+0x11a/0x340 switchdev_port_attr_set_deferred+0x27/0xd0 switchdev_deferred_process+0x164/0x340 br_switchdev_port_unoffload+0xc8/0x100 [bridge] br_switchdev_blocking_event+0x29f/0x580 [bridge] notifier_call_chain+0xa2/0x440 blocking_notifier_call_chain+0x6e/0xa0 switchdev_bridge_port_unoffload+0xde/0x1a0 ...
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 6.1.80 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 |
| 6.6.19 | ≤ | 취약 | < | 6.6.84 | 6.6.84이상 | |
| 6.7.7 | ≤ | 취약 | < | 6.8 | 6.8이상 | |
| 6.8.1 | ≤ | 취약 | < | 6.12.20 | 6.12.20이상 | |
| 6.13 | ≤ | 취약 | < | 6.13.8 | 6.13.8이상 | |
| 이 버전만 | 취약 | = | 6.8 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.8 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.8 rc7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc6 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 6.1.80 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 |
| 6.6.19 | ≤ | 취약 | < | 6.6.84 | 6.6.84이상 | |
| 6.7.7 | ≤ | 취약 | < | 6.8 | 6.8이상 | |
| 이 버전만 | 취약 | = | 6.8 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.8 | — | |
| 6.1.132 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.84 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.20 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13.8 | ≤ | 영향 없음 | ≤ | 6.13.* | — | |
| 6.14 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- git.kernel.org/stable/c/1f7d051814e7a0cb1f0717ed5527c1059992129d
- git.kernel.org/stable/c/62531a1effa87bdab12d5104015af72e60d926ff
- git.kernel.org/stable/c/a597d4b75669ec82c72cbee9fe75a15d04b35b2b
- git.kernel.org/stable/c/af757f5ee3f754c5dceefb05c12ff37cb46fc682
- git.kernel.org/stable/c/f9ed3fb50b872bd78bcb01f25087f9e4e25085d8