총 15,720건
CVE-2026-99291
2026년 11월 16일리눅스 커널에서 다음 취약점이 해결되었습니다: ksmbd: SMB2 CREATE 응답 버퍼 오버플로 수정 smb2_allocate_rsp_buf()는 단일 SMB2_CREATE 응답에 대해 MAX_CIFS_SMALL_BUFFER_SIZE(448바이트) 버퍼를 사용합니다. 이 버퍼는 4바이트 길이 필드를 포함하고 있어 SMB2 본문에 남는 공간이 444바이트뿐입니다. AAPL 응답은 이 버퍼를 너무 작게 만들었습니다. 8f1b796ff113 이후, AAPL 응답 컨텍스트를 가진 요청은 최소 456바이트가 필요할 수 있습니다. 456바이트인 경우 create_aapl_rsp_buf()가 마지막으로 추가되고 128바이트를 지우며 할당 범위를 넘겨 12바이트를 기록합니다. KASAN 보고: BUG: KASAN: slab-out-of-bounds in create_aapl_rsp_buf+0x31/0x6e0 Addr ffff88800370954c에 있는 128바이트 쓰기 작업 task kworker/0:0/9에 의해 수행 ... create_aapl_rsp_buf+0x31/0x6e0 smb2_open+0x58f9/0xef10 ... smb2_allocate_rsp_buf+0x19d/0x370 ... 버그가 발생한 주소는 할당된 448바이트 구역 [ffff888003709400, ffff8880037095c0) 내부의 332바이트 지점에 위치합니다 KSMBD가 빌드할 수 있는 CREATE 응답에 대해 충분한 여유 공간을 예약합니다. 필요한 할당 크기를 dialect별 값 표에 저장합니다. 이를 통해 다른 명령의 작은 버퍼를 유지하고 모든 CREATE에 대해 최대 트랜잭션 버퍼를 사용하지 않도록 합니다.
CVE-2026-99290
2026년 11월 16일리눅스 커널에서 다음 취약점이 해결되었습니다: ksmbd: 지속 연결 실패 후 사용 후 해제 수정 ksmbd_reopen_durable_fd() 는 분리된 내구성 핸들을 재연결 세션의 파일 테이블에 다시 게시하고 해당 항목에 대한 참조를 취하지 않습니다. smb2_open() 이 실패하면 정리 과정은 최종 ksmbd_fd_put() 가 volatile id 를 제거하도록 의존합니다. 동일 핸들의 두 번 재연결은 어느 쪽도 핸들을 연결하기 전에 조회 참조를 모두 얻을 수 있습니다. 먼저 재연결되어 실패하고 참조를 먼저 제거한 경우, 다른 요청이 최종 put 을 ksmbd_put_durable_fd() 를 통해 수행하게 됩니다. 이는 첫 번째 세션의 테이블 엔트리를 제거하지 않고 핸들을 해제하므로, 세션이 종료될 때 freed 메모리에 쓰기가 발생합니다. BUG: KASAN: slab-use-after-free in __close_file_table_ids+0x14d/0x740 [ksmbd] Call Trace: __close_file_table_ids+0x14d/0x740 [ksmbd] ksmbd_destroy_file_table+0x76/0x100 [ksmbd] ksmbd_session_destroy+0xf8/0x480 [ksmbd] ksmbd_dispose_sessions+0x13e/0x200 [ksmbd] ksmbd_conn_sessions_cleanup+0x4c3/0x6d0 [ksmbd] Freed by task 1030: __ksmbd_close_fd+0x97d/0x1000 [ksmbd] smb2_open+0x14eb/0xd9f0 [ksmbd] Commit 3515503322f4 ("ksmbd: fix durable reconnect error path file lifetime") 에서는 재연결 요청이 만든 최종 put 은 다루고 있지만, 다른 핸들러가 만든 경우는 다루지 않습니다. 이 오류 경로에서 파일-테이블 잠금 하에 volatile id 를 제거하고 참조가 해제되기 전에 제거하도록 하며, 이는 위의 request_open 경로에서 ksmbd_close_fd() 가 수행하는 동일한 작업과 일치합니다. 그 결과 어느 핸들러가 최종 put 을 수행하더라도 더 이상 의존하지 않게 됩니다. 재연결 정리에 남아 있는 오래된 주석은 이와 일치하도록 업데이트되었습니다. 성공적인 재연결은 변경되지 않습니다.
CVE-2026-99289
2026년 11월 16일리눅스 커널에서 다음 취약점이 해결되었다: ksmbd: 앱 인스턴스 비내구성 우선 순위 상관 관계의 세션 UAF 수정 ksmbd_close_fd_app_instance_id()는 동일한 AppInstanceId를 갖는 이전 열림을 대체한다. 이 열림의 세션은 opinfo->sess를 통해 접근한다. 이 포인터는 참조 계수(refcounted)되지 않는다. 세션 종료는 세션을 해제하기 전에 내구성 핸들을 분리한다. 비내구성 열림은 분리하지 않는다. 세션이 해제된 후에도 그 열림은 opinfo->sess를 통해 세션을 가리킨다. 다른 세션이 동시에 그 열림을 대체할 수 있다. 대체를 수행할 때는 더 이상 사용되지 않는 포인터를 통해 파일 테이블의 쓰기 락을 얻는다. 버그: KASAN: slab-use-after-free in _raw_write_lock+0x71/0xd0 호출 트레이스: _raw_write_lock+0x71/0xd0 ksmbd_close_fd_app_instance_id+0xd9/0x670 [ksmbd] smb2_open+0x3e10/0xd910 [ksmbd] 작업 212에 의해 해제됨: ksmbd_session_destroy+0x38d/0x480 [ksmbd] opinfo->session_id로 세션을 찾아 참조를 얻는 방식으로 수정한다. 이것은 smb2_break_collect_channels()가 하는 것처럼 참조를 반환한다. 사용하기 전에 opinfo->sess가 여전히 가리키는지 다시 확인한다. 잠금(m_lock)을 보유하지 않는 상태에서 조회한다. destroy_previous_session()은 세션 표 잠금 아래에서 m_lock을 사용하고, 다른 순서로 획득하면 교착 상태가 발생한다."
CVE-2026-99288
2026년 11월 11일리눅스 커널에서 다음 취약점이 해결되었다: inet: 확립된 조회 중 unhashed 소켓 거부 TCP 확립 ehash 조회는 락이 없다. 관련 소켓 캐시가 SLAB_TYPESAFE_BY_RCU를 사용하므로, 오래된 주소를 보유한 RCU 리더가 끝나기 전에 메모리를 재사용할 수 있다. 튜플 매치 후, __inet_lookup_established() 와 __inet6_lookup_established() 는 참조를 획득하고 튜플 검사를 반복한다. 이들은 새 객체가 해시화되었는지 여부를 확인하지 않는다. 주소가 같은 튜플의 소켓에 재사용되면, 조회는 새 객체에 대한 참조를 획득하고 이를 반환하는데, 그 노드가 해시되지 않은 상태일 수 있다. SYN 쿠키 요청 소켓으로 재사용을 동력으로 하는 PoC는 충돌을 재현했다. 새 요청 소켓은 unhashed 상태이며 NULL rsk_listener를 가진다. 이전 요청 소켓의 주소를 로드한 조회가 tcp_get_cookie_sock() 로 게시된 참조를 획득하고 새 객체를 반환한다. 그다음 tcp_v4_rcv() 는 NULL 리스너를 통해 sk_state를 읽는다. 결과적 충돌은 다음과 같다: BUG: 커널 NULL 포인터 역참조, 주소: 0000000000000012 #PF: 커널 모드의 관리자 읽기 접근 #PF: error_code(0x0000) - 비표시 페이지 ... Oops: Oops: 0000 [#1] SMP NOPTI CPU: 4 UID: 0 PID: 0 Comm: swapper/4 Not tainted 7.3.0-00591-g0e135910deec #1 PREEMPT(lazy) ... RIP: 0010:tcp_v4_rcv+0x44e/0x1280 ... R10: 0000000000000001 R11: 00000000024ca8c0 R12: 0000000000000000 ... CR2: 0000000000000012 CR3: 0000000103d50004 CR4: 0000000000770ef0 ... Call Trace: <IRQ> ? raw_local_deliver+0xae/0x240 ip_protocol_deliver_rcu+0x2d/0x180 ip_local_deliver_finish+0x84/0x100 ip_sublist_rcv_finish+0x5f/0x70 ip_sublist_rcv+0x12a/0x1d0 ip_list_rcv+0xfd/0x130 __netif_receive_skb_list_core+0x223/0x250 netif_receive_skb_list_internal+0x1d2/0x2c0 ? try_fill_recv+0x39/0x7b0 napi_complete_done+0x74/0x170 virtnet_poll+0x445/0x600 __napi_poll+0x27/0x1e0 net_rx_action+0x2fe/0x3b0 handle_softirqs+0xc2/0x2c0 __irq_exit_rcu+0x74/0xd0 common_interrupt+0x7f/0x90 </IRQ> ... Kernel panic - not syncing: Fatal exception in interrupt 참조를 획득한 후, 널 노드가 IPv4 및 IPv6 확립 조회에서 해시되지 않았는지 확인한다. 해시되지 않았거나 튜플이 더 이상 일치하지 않는 경우 참조를 제거하고 조회를 재시작한다. TIME_WAIT 해시 댄스와 같은 경합 또는 자식으로 교체된 요청과 경쟁하는 조회는 이제 이전 소켓이 반환되는 대신 새 소켓을 찾아 조회를 재시작한다. ehash에 한 번도 삽입되지 않은 요청 소켓은 비제로 참조 카운트를 가질 수 있으며, 오래된 조회가 일시 참조를 보유할 수 있다. 따라서 SYN 쿠키, Fast Open, 및 요청 마이그레이션 경로가 비제로 참조 카운트를 설정한 후 실패하면, 해당 경로에서 보유한 참조를 reqsk_put()로 해제하고 직접 요청을 해제하지 않는다.
CVE-2026-99287
2026년 11월 11일In the Linux kernel, the following vulnerability has been resolved: xen-netback: Zero out sring pointers on unmap If xenvif_map_frontend_data_rings() fails when a ring is already mapped, it unmaps them via xenvif_unmap_frontend_data_rings() which keeps the ring pointers unchanged. xenvif_connect_data()'s cleanup path calls xenvif_disconnect_queue() which in turn calls xenvif_unmap_frontend_data_rings() again, which will attempt to unmap the pointers a second time. Zero out the ring pointers after they are unmapped to avoid this issue. This is XSA-532
CVE-2026-99286
2026년 11월 11일In the Linux kernel, the following vulnerability has been resolved: xen-netback: Fix XenBus connection failure cleanup xenvif_get_stats and xenvif_get_ethtool_stats capture vif->num_queues under rcu_read_lock. We need to unpublish vif->num_queues before synchronize_net to ensure that readers that come afterwards will not read a non-zero vif->num_queues and attempt to access invalid queues. This is the same cleanup algorithm as used in backend_disconnect and added in commit b17075d5c198 ("xen-netback: fix race condition on XenBus disconnect"). This is XSA-531
CVE-2026-99285
2026년 11월 11일In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_byteorder: remove multi-register support 64bit byteorder conversion is broken when several registers need to be converted because the source register array advances in steps for 4 bytes instead of 8: for (i = ... src64 = nft_reg_load64(&src[i]); ~~~~~ u32 *src nft_reg_store64(&dst64[i], Remove the multi-register support, it has other issues as well: Pablo points out that commit caf3ef7468f7 ("netfilter: nf_tables: prevent OOB access in nft_byteorder_eval") alters semantics: before the loop operated on registers, i.e. for ( ... ) dst32[i] = htons((u16)src32[i]) .. but after the patch it will operate on bytes, which makes this useless to convert e.g. concatenations, which store each compound in its own register. Multi-convert of u32 has one theoretical application: ct mark . meta mark . tcp dport @intervalset Because ct mark and meta mark are host byte order, use with intervals has to convert the byteorder for ct/meta mark value to network byte order (bigendian). nftables emits this: [ meta load mark => reg 1 ] [ byteorder reg 1 = hton(reg 1, 4, 4) ] [ ct load mark => reg 9 ] [ byteorder reg 9 = hton(reg 9, 4, 4) ] ... I.e. two separate calls. Theoretically it could be changed to do: [ meta load mark => reg 1 ] [ ct load mark => reg 9 ] [ byteorder reg 1 = htonl(reg 1, 4, 8) ] ... But then all it would take to change the set to meta mark . tcp dport . ct mark ... and we'd be back to two "byteorder" calls. IOW, support to convert a range of registers is both dysfunctional and dubious. Simplify this: remove the feature. Pablo Neira Ayuso points out that nftables before 1.1.0 can generate incorrect byteorder conversions, see 9fe58952c45a, "evaluate: skip byteorder conversion for selector smaller than 2 bytes" in nftables.git). Affected rulesets fail to load with this change and old userspace due to 'len != size' check.
CVE-2026-99284
2026년 11월 8일In the Linux kernel, the following vulnerability has been resolved: net: skbuff: propagate shared-frag marker in skb_zerocopy() skb_zerocopy() moves frag descriptors from @from into @to and takes a reference on each frag, but it does not copy skb_shinfo(from)->flags into skb_shinfo(to)->flags. A destination skb holding the same page-cache backed frags as the source therefore reports skb_has_shared_frag() as false. That breaks the invariant relied on by later in-place writers. ESP input checks skb_has_shared_frag() before deciding whether an uncloned nonlinear skb can skip skb_cow_data(); with the marker lost, an skb that skb_zerocopy() built for nfnetlink_queue or for an openvswitch upcall is decrypted in place, letting an unprivileged user write into the page cache of a root-owned read-only file. Propagate SKBFL_SHARED_FRAG when frag descriptors are copied, as done for the other frag-transfer helpers.
CVE-2026-99283
2026년 11월 8일In the Linux kernel, the following vulnerability has been resolved: netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets Commit be0502a3f2e9 ("netfilter: conntrack: tcp: only close if RST matches exact sequence") keeps an established conntrack entry in ESTABLISHED when an in-window RST does not match the expected sequence number exactly, so the endpoint can validate the RST with a challenge ACK. The timeout selection nevertheless uses the CLOSE timeout for every RST packet. The bug is that timeout selection is based on the packet type, not on the state transition result: even when RST validation keeps new_state in ESTABLISHED, the timeout is still forced to TCP_CONNTRACK_CLOSE. Linux TCP independently rate limits challenge ACKs per socket. A second non-exact RST can therefore arrive after the first challenge ACK has restored the timeout but before the rate limit expires. The second RST lowers the timeout to 10 seconds again while the endpoint suppresses the second challenge ACK, allowing the conntrack entry to expire while both TCP endpoints remain established. Using the ESTABLISHED timeout for such RSTs would avoid this short expiration window, but it could also retain stale entries for the five-day default because conntrack cannot reliably match the endpoint's exact TCP state. Use the UNACK timeout for RST packets that leave the conntrack entry in TCP_CONNTRACK_ESTABLISHED. Exact-match RSTs and accepted RST packet trains still fall through to timeouts[new_state], which preserves the CLOSE timeout when conntrack accepts the RST as closing the flow. This avoids the aggressive 10-second expiration window for non-exact RSTs while preserving the short timeout for RSTs that conntrack accepts as closing the flow.
CVE-2026-99282
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_teql: fix use-after-free on lower qdisc drop The issue: teql_master_xmit() tests the slave's ndo_start_xmit() return value against NETDEV_TX_OK alone. A slave that consumes the skb but returns an error code (rc < NET_XMIT_MASK, e.g. NET_XMIT_DROP) is treated as if the skb were still owned, so the loop restores skb->dev and calls __skb_pull() on it. A VLAN slave returns the result of dev_queue_xmit() from its ndo_start_xmit() (propagated since cbbef5e18307), and when the lower qdisc drops the packet that value is NET_XMIT_DROP after the skb has been freed, giving a use-after-free in teql_master_xmit(). The Fix: test for consumption with dev_xmit_complete(), which accepts NETDEV_TX_OK and every rc < NET_XMIT_MASK, matching other callers that need to distinguish consumed results from busy. Only NETDEV_TX_OK keeps the packet counted in tx_packets/tx_bytes and advances the slave; a consumed result that is neither a success nor NET_XMIT_CN ends the attempt and is charged to tx_dropped, so lower-qdisc drops are no longer reported as good transmits. NET_XMIT_CN is counted like success because it can accompany acceptance of the current packet: pfifo_head_drop drops the old head, enqueues the current skb and returns NET_XMIT_CN. Conditions to recreate the bug: With CONFIG_NET_SCH_TEQL, CONFIG_VLAN_8021Q and CONFIG_DUMMY enabled, add lkrdummy0 (dummy) and lkrvlan0 (VLAN id 37 on lkrdummy0); set a pfifo limit 0 root on lkrdummy0 and a teql0 root on lkrvlan0; bring teql0 up with an address and send one UDP packet to it. The VLAN xmit returns NET_XMIT_DROP from the lower qdisc while holding a freed skb.
CVE-2026-99281
번역 확인 필요2026년 11월 7일리눅스 커널에서 다음 취약점이 해결되었습니다: 소유자가 없는 디바이스에 연결하려면 CAP_NET_ADMIN이 필요하도록 tun을 요구합니다 20년 전 제가 tuntap 디바이스 생성을 CAP_NET_ADMIN이 필요하도록 만들었습니다 커밋 ca6bb5d7ab22 ("[NET]: Require CAP_NET_ADMIN to create tuntap devices.")에서 아이디어는 /dev/net/tun의 권한을 0666으로 완화하고, TUNSETOWNER로 할당된 tun 디바이스의 소유자가 실제로 열어 자기 디바이스에 접근할 수 있도록 하는 것이었습니다. 그 당시 우리가 간과한 것은 소유자가 전혀 없는 영구 디바이스가 이미 사실상 전 세계에서 사용 가능하다는 것이었고, 디바이스 노드를 열 수 있는 누구나 그것에 연결할 수 있다는 점이었습니다. 그때도 명시적으로 설정된 소유자가 없는 영구 디바이스를 사용하는 것은 사용자가 보기에 악의적인 버그가 아니었습니다. 네트디바이스의 생성/구성을 네트워크 패킷을 디바이스로 전달하는 프로세스와 분리하는 것이 합리적일 때도 있습니다. 그 이후 1년 뒤 TUNSETGROUP가 커밋 8c644623fe7e에 추가되었습니다 ("[NET]: Allow group ownership of TUN/TAP devices."). 커밋 메시지는 uid와 gid가 둘 다 설정되면 일치해야 한다는 점을 지적했지만(그 자체로도 기괴한 선택이죠) — 그러나 둘 다 설정되지 않으면 아무 권한도 필요하지 않다는 점은 여전히 그렇지 않았습니다. 그 다음 2012년 커밋 c8d68e6be1c3 ("tuntap: multiqueue support")은 생성 순간부터 디바이스에 새 큐를 연결할 수 있도록 허용했고, 생성과 이후 TUNSET{OWNER,GROUP} 사이의 경쟁 조건을 사용자 공간에서 종료하는 방법이 없었습니다. 2014년 커밋 3ca459eaba1bf ("tun: fix group permission check")은 상황을 더 합리적으로 바꾸려 시도했습니다: 표준 POSIX 권한에 맞추어 사용자이거나 그룹 중 하나만 일치하면 되고, neither일 경우 CAP_NET_ADMIN이 필요하다고 명시했습니다(다만 CAP_NET_ADMIN 체크가 먼저 수행되었고, 사용 가능 여부가 아니었을 때도 잘못 사용된 것으로 보고될 수 있도록 되어 있었습니다). 그 수정은 2024년 커밋 a70c7b3cbc06 ("tun: revert fix group permission check")에 의해 되돌려졌는데, selinux 테스트 스위트에서 승인이 없는 상태에서 연결이 성공하는 것을 기대하는 보안 결함을 의도적으로 검증하는 사례를 야기한다는 이유로 되돌려졌습니다: https://lore.kernel.org/netdev/CAFqZXNtkCBT4f+PwyVRmQGoT3p1eVa01fCG_aNtpt6dakXncUg@mail.gmail.com/ UAPI를 깨뜨려서는 안 됩니다. 그러나 selinux 테스트 케이스를 UAPI 가치를 보존하기 위해 고려할 필요도 없습니다. 이를 위해 selinux-testsuite 커밋 b2f894f0016b ("tests/tun_tap: set an owner on the device for the relabel tests")에서 수정했습니다. 따라서: 소유자나 그룹이 할당되지 않았고, 호출자가 설정된 모든 항목과 일치하거나 호출자가 CAP_NET_ADMIN 권한을 가진 경우에만 기존 디바이스에 연결하도록 수정합니다. 유일한 동작 변경은 소유자나 그룹이 없는 디바이스는 이제 연결하려면 CAP_NET_ADMIN이 필요하다는 점으로, 우리가 의도적으로 닫고자 한 루프홀입니다. 그리고 이번에는 CAP_NET_ADMIN 검사를 올바른 위치에 배치했습니다.
CVE-2026-99280
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: ksmbd: drain session procfs readers before dropping table references Session registration failure and connection cleanup can drop the table reference while the per-session procfs entry is still accessible. If a reader holds the last remaining reference, its final put calls proc_remove() from its own callback and waits for that callback to finish. Remove the procfs entry before dropping the table reference in the registration failure path. Queue sessions removed during connection cleanup and drain their procfs readers after releasing both session locks, then return their table references. Keep the global hash node unhashed while a session is queued so a concurrent unregister cannot drop the reference again. Previous-session replacement also destroys the file table before the session is finally freed. Detach the idr under the lock used by procfs file counters, and report zero files after it has been detached. This prevents a reader from accessing the idr during or after its destruction.
CVE-2026-99279
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: ksmbd: reclaim ended sessions on logoff and expiration LOGOFF and previous-session replacement leave sessions Expired with a zero credential expiry. Ended sessions can retain their memory and connection slots when no further setup arrives on the owning connection. Unpublish a logged-off session while the request reference keeps its response signing and encryption keys alive. Remove its procfs entry before dropping the table reference so a reader cannot remove its own entry on the last put. Clear proc_entry after removal to avoid removing it twice. Reclaim ended sessions from the global table in the existing expiration worker before it acquires conn_list_lock. Only select Expired sessions with zero credential expiry and no references beyond the table reference. Keep sessions whose Kerberos credentials expired available for reauthentication. Unlink the session from its setup connection and all channel connections, so SMB2 sessions and sessions with only secondary SMB3 channels are covered. The session already holds connection references, and sessions_table_lock prevents concurrent channel removal. Queue sessions on a separate disposal list, leaving their hash nodes unhashed, and remove procfs entries and drop table references outside the locks. Keep the pending setup check before allocating a new session so abandoned InProgress sessions can release their slots even at the connection limit. Retain the timeout and reference checks and dispose of those sessions outside the locks. Leave ended Expired sessions to the expiration worker.
CVE-2026-99278
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: ksmbd: limit sessions on each connection The pending setup limit only counts InProgress sessions. A client can complete authentication repeatedly and retain an unbounded number of Valid sessions on one connection. Reserve a connection slot before allocating a session and retain a connection reference while authentication is in progress. The first SMB3 channel takes over that reservation; binding to another connection reserves one slot there. Reauthentication and authentication continuation reuse the existing reservation. Return slots on allocation or insertion failure, channel removal, and final session destruction. Accept max_sessions_per_connection in reserved startup-request space and default to 64 when older tools leave it zero. Keep the request size and existing field offsets unchanged. Expose the configured limit in procfs. The existing connection limits bound the aggregate number of sessions without a separate global session allocation limit.
CVE-2026-99277
2026년 11월 7일리눅스 커널에서 다음 취약점이 해결되었습니다: ksmbd: 각 세션 채널에 대해 연결 참조를 유지합니다 ksmbd_session_unregister()는 표를 제거하기 전에 전역 및 개별 연결 표에서 세션을 제거합니다. 동시 참조 보유자는 이러한 제거 후에도 세션과 채널 목록을 활성 상태로 유지할 수 있습니다. 연결 정리 과정에서 게시되지 않은 세션을 찾을 수 없어 채널을 제거할 수 없습니다. 채널은 원시 conn 포인터만 저장하므로, 다른 세션 참조 보유자가 여전히 이를 접근하는 동안 연결이 해제될 수 있습니다(예: SMB3.1.1 바인딩 중 또는 procfs 읽기 중). 채널을 등록할 때 연결 참조를 취하고 삽입 실패, 채널 제거 또는 최종 세션 파괴 시 해제합니다. 세션이 파괴될 때까지 채널과 서명 키를 유지하여 세션이 등록 해제된 후에도 응답에 서명할 수 있도록 합니다.
CVE-2026-99276
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: ksmbd: defer connection scavenging while session locks are busy The expiration worker holds conn_list_lock for reading while checking for authenticated sessions. Without this change, the check can wait for conn->session_lock or sessions_table_lock. In destroy_previous_session(), the status updates after ksmbd_conn_wait_idle_sess() run with both session locks held for writing. Both the KSMBD_SESS_GOOD error path and the KSMBD_SESS_NEED_SETUP success path call ksmbd_all_conn_set_status(), which takes conn_list_lock for reading. A writer queued on conn_list_lock can block these new read acquisitions. The worker then waits for a session lock held by destroy_previous_session(), which waits behind the writer. The writer cannot proceed until the worker releases conn_list_lock. Try both session locks instead of waiting in the scavenging check. Keep the connection when either lock is busy and let the periodic worker retry later.
CVE-2026-99275
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: smb: client: reject short SESSION_SETUP responses smb2_check_message() accepts frames shorter than struct smb2_pdu when the SMB2 status is non-zero, before the minimum-PDU check added by b4694f269e66d. A 64-byte STATUS_MORE_PROCESSING_REQUIRED SESSION_SETUP response is therefore accepted even though it cannot contain the SecurityBufferOffset and SecurityBufferLength fields. The parser then reads those fields from stale bytes left in the reused receive buffer by an earlier frame. With a long stale SecurityBufferLength, decode_ntlmssp_challenge() copies up to about 64 KB from beyond the receive object and sends the data back to the server in the NTLMv2 AUTHENTICATE target info. Reject short MPR SESSION_SETUP responses before the short-error path, and validate SecurityBufferOffset + SecurityBufferLength against the received response length before decoding the challenge. The ordering bypass is not new: the short-error early return predates b4694f269e66d, and the unvalidated SecurityBufferLength read predates the 2016 raw NTLMSSP split in 166cea4dc3a4, so all supported stable trees are affected. Reproduced on 6.6.87.2; the path is unchanged on mainline.
CVE-2026-99274
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: smb: client: fix fiemap wild read on empty truncated response smb3_fiemap() treats -E2BIG from SMB2_ioctl() as a truncated range blob and loops for the next chunk. If the server reports STATUS_BUFFER_OVERFLOW with OutputCount == 0, SMB2_ioctl() returns -E2BIG with out_data == NULL and out_data_len == 0, and the existing length checks accept the empty result. The loop then evaluates next = out_data[num - 1].file_offset + ... with num == 0, reading 16 bytes before NULL. Reject a truncated range blob that contains no range, so the resume offset is never computed from an empty response. Also require the last range in a truncated blob to advance the resume offset without overflowing, and to stay within the requested range; a malicious or broken server could otherwise make no progress or underflow len and loop forever. Free the previous response buffer before retrying. Reproduced on 6.6.87.2 with a malicious SMB2 server that answers FSCTL_QUERY_ALLOCATED_RANGES with STATUS_BUFFER_OVERFLOW and OutputCount == 0; an FS_IOC_FIEMAP ioctl on the mount oopses in cifs_fiemap() with CR2 = fffffffffffffff8. The code path is unchanged on mainline.
CVE-2026-99273
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: ksmbd: reserve space for the UTF-16 terminator in stream info smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the converted characters, but get_file_stream_info() budgets only sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing "::$DATA" entry. When an entry exactly fills the 448-byte small response buffer, the terminator is written two bytes past the allocation. Reserve one extra UTF-16 unit in both budget checks. The terminator is not part of the wire format, so the reported lengths are unchanged.
CVE-2026-99272
2026년 11월 7일In the Linux kernel, the following vulnerability has been resolved: smb: client: validate the data area in SMB2_read() SMB2_read() copies le32_to_cpu(rsp->DataLength) bytes from (char *)rsp + rsp->DataOffset without checking that the range lies within the response actually received. A READ response with DataOffset == 0 makes smb2_get_data_area_len() zero the data length, so smb2_check_message() accepts a frame as short as the fixed response, while SMB2_read() still uses the server-supplied DataLength, capped only by CIFS_MAX_MSGSIZE and the caller's length. A malicious server can answer the synchronous read used by the mfsymlinks (or SFU) symlink parser with an 81-byte READ response carrying DataOffset 0 and DataLength 1067, making the client copy 1067 bytes from a 448-byte receive object (KASAN slab-out-of-bounds; up to 16 KiB in the general case). Clamp a zero (or header-overlapping) DataOffset to read_rsp_size, as handle_read_data() does for the asynchronous path, and reject the response unless DataOffset + DataLength fits within rsp_iov.iov_len. The SMB1 helper was fixed the same way in 5be5bdda5863.