CVE-2022-50459
- 공개
- 2025년 10월 1일
- 수정
- 2026년 8월 4일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()
Fix a NULL pointer crash that occurs when we are freeing the socket at the same time we access it via sysfs.
The problem is that:
1. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() take the frwd_lock and do sock_hold() then drop the frwd_lock. sock_hold() does a get on the "struct sock".
2. iscsi_sw_tcp_release_conn() does sockfd_put() which does the last put on the "struct socket" and that does __sock_release() which sets the sock->ops to NULL.
3. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() then call kernel_getpeername() which accesses the NULL sock->ops.
Above we do a get on the "struct sock", but we needed a get on the "struct socket". Originally, we just held the frwd_lock the entire time but in commit bcf3a2953d36 ("scsi: iscsi: iscsi_tcp: Avoid holding spinlock while calling getpeername()") we switched to refcount based because the network layer changed and started taking a mutex in that path, so we could no longer hold the frwd_lock.
Instead of trying to maintain multiple refcounts, this just has us use a mutex for accessing the socket in the interface code paths.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.8.14 | ≤ | 취약 | < | 5.9 | 5.9이상 |
| 5.9.1 | ≤ | 취약 | < | 5.10.150 | 5.10.150이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.75 | 5.15.75이상 | |
| 5.16 | ≤ | 취약 | < | 5.19.17 | 5.19.17이상 | |
| 6.0 | ≤ | 취약 | < | 6.0.3 | 6.0.3이상 | |
| 이 버전만 | 취약 | = | 5.9 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 5.9 rc8 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 8줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.8.14 | ≤ | 취약 | < | 5.9 | 5.9이상 |
| 이 버전만 | 취약 | = | 5.9 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 5.9 | — | |
| 5.10.150 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.75 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 5.19.17 | ≤ | 영향 없음 | ≤ | 5.19.* | — | |
| 6.0.3 | ≤ | 영향 없음 | ≤ | 6.0.* | — | |
| 6.1 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- git.kernel.org/stable/c/0a0b861fce2657ba08ec356a74346b37ca4b2008
- git.kernel.org/stable/c/57569c37f0add1b6489e1a1563c71519daf732cf
- git.kernel.org/stable/c/884a788f065578bb640382279a83d1df433b13e6
- git.kernel.org/stable/c/897dbbc57d71e8a34ec1af8e573a142de457da38
- git.kernel.org/stable/c/a26b0658751bb0a3b28386fca715333b104d32a2