CVE-2026-23209
- 공개
- 2026년 2월 15일
- 수정
- 2026년 10월 20일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
macvlan: fix error recovery in macvlan_common_newlink()
valis provided a nice repro to crash the kernel:
ip link add p1 type veth peer p2 ip link set address 00:00:00:00:00:20 dev p1 ip link set up dev p1 ip link set up dev p2
ip link add mv0 link p2 type macvlan mode source ip link add invalid% link p2 type macvlan mode source macaddr add 00:00:00:00:00:20
ping -c1 -I p1 1.2.3.4
He also gave a very detailed analysis:
<quote valis>
The issue is triggered when a new macvlan link is created with MACVLAN_MODE_SOURCE mode and MACVLAN_MACADDR_ADD (or MACVLAN_MACADDR_SET) parameter, lower device already has a macvlan port and register_netdevice() called from macvlan_common_newlink() fails (e.g. because of the invalid link name).
In this case macvlan_hash_add_source is called from macvlan_change_sources() / macvlan_common_newlink():
This adds a reference to vlan to the port's vlan_source_hash using macvlan_source_entry.
vlan is a pointer to the priv data of the link that is being created.
When register_netdevice() fails, the error is returned from macvlan_newlink() to rtnl_newlink_create():
if (ops->newlink) err = ops->newlink(dev, ¶ms, extack); else err = register_netdevice(dev); if (err < 0) { free_netdev(dev); goto out; }
and free_netdev() is called, causing a kvfree() on the struct net_device that is still referenced in the source entry attached to the lower device's macvlan port.
Now all packets sent on the macvlan port with a matching source mac address will trigger a use-after-free in macvlan_forward_source().
</quote valis>
With all that, my fix is to make sure we call macvlan_flush_sources() regardless of @create value whenever "goto destroy_macvlan_port;" path is taken.
Many thanks to valis for following up on this issue.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.9.1 | ≤ | 취약 | < | 5.10.250 | 5.10.250이상 |
| 5.11 | ≤ | 취약 | < | 5.15.200 | 5.15.200이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.163 | 6.1.163이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.124 | 6.6.124이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.70 | 6.12.70이상 | |
| 6.13 | ≤ | 취약 | < | 6.18.10 | 6.18.10이상 | |
| 이 버전만 | 취약 | = | 4.9 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 4.9 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 4.9 rc7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 4.9 rc8 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc8 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.9 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.9 | — | |
| 5.10.250 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.200 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.163 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.124 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.70 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.10 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 6.19 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/11ba9f0dc865136174cb98834280fb21bbc950c7
- git.kernel.org/stable/c/5dae6b36a7cb7a4fcf4121b95e9ca7f96f816c8a
- git.kernel.org/stable/c/986967a162142710076782d5b93daab93a892980
- git.kernel.org/stable/c/c43d0e787cbba569ec9d11579ed370b50fab6c9c
- git.kernel.org/stable/c/cdedcd5aa3f3cb8b7ae0f87ab3a936d0bd583d66