총 15,720건
CVE-2026-99024
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: optee: register TEE devices only once fully initialized optee_probe() called tee_device_register() on both the client and the supplicant device before the rest of struct optee had been initialized. tee_device_register() calls cdev_device_add(), which does two things at once: it creates /dev/tee0 and /dev/teepriv0, and it links the device into the tee class so that class_find_device() can find it. From that moment on the device is reachable both from user space via tee_open() and from kernel space via tee_client_open_context(). The only gate in teedev_open() is tee_device_get(), which merely checks that teedev->desc is non-NULL, which was already set by tee_device_alloc(). Therefore, there is effectively no gate at all. A context opened in that window can run against a struct optee where - optee->call_queue.mutex is not initialized by optee_cq_init() - optee->supp mutex and completions is not initialized by optee_supp_init() - optee->rpmb_dev_mutex is not initialized yet, - the message argument cache is not initialized by optee_shm_arg_cache_init() - optee->ctx is still NULL Any open session or invoke during this window takes uninitialized mutexes and dereferences a NULL pointer. Fix it by moving both tee_device_register() calls down to the point where all of struct optee is set up. [JW: adding fixes and cc]
CVE-2026-99023
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: power: sequencing: pcie-m2: Fix leaking array from of_regulator_bulk_get_all() of_regulator_bulk_get_all() allocates the consumers array and hands it to the caller, who is expected to free it at an appropriate time. pwrseq-pcie-m2.c never did, leading to a memory leak. Add an explicit kfree() for the consumers array.
CVE-2026-99022
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: regulator: ltc3676: don't read the write-only HRST and CLIRQ registers HRST (0x1e) and CLIRQ (0x1f) are write-only command strobes. Writing HRST triggers a hard reset of the chip and writing CLIRQ clears the interrupt; reading them returns nothing useful, and the read itself fires the command. The result is that a plain register dump resets the board: cat /sys/kernel/debug/regmap/2-003c/registers walks every readable register, hits HRST, and the board reboots. Split the callback back in two so HRST and CLIRQ stay writable but are no longer readable. The readable range is left unchanged (LTC3676_BUCK1 ... LTC3676_IRQSTAT).
CVE-2026-99021
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: regulator: of: fill in supply names in of_regulator_bulk_get_all() of_regulator_bulk_get_all() returns an array it allocated itself, and fills in only the consumer of each entry. Every other way of getting a bulk array has the supply name set, because the caller provides it, and the core expects it to be there: regulator_bulk_enable() prints it when a supply fails to enable, so a caller that hands such an array to it dereferences uninitialised memory on that path. Copy each name into the array's own allocation, right behind the entries, so that it shares the array's lifetime and callers still have nothing extra to free. That also retires the fixed 64 byte stack buffer the names were assembled in, which is_supply_name() never bounded the copy against.
CVE-2026-99020
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: regulator: tps6594-regulator: Fix n_linear_ranges for TPS65224 BUCK2-4 The TPS65224 BUCK2, BUCK3 and BUCK4 descriptors pass 4 as n_linear_ranges, but tps65224_bucks_2_3_4_ranges[] only has two entries, covering selectors 0x00-0x45. The linear range helpers loop over n_linear_ranges entries, so any lookup of a selector above 0x45 reads past the end of the array and treats whatever follows it as two more ranges. This happens on the normal registration path when the core checks the voltage constraints against every selector. TPS652G1 uses the same descriptors and is affected too. Use ARRAY_SIZE() so the count always matches the table.
CVE-2026-99019
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: scsi: ch: Do not keep references to data transfer element devices ch_readconfig() looks up the scsi_device of every data transfer element whose SCSI id the changer reports in READ ELEMENT STATUS, and stores it in ch->dt[]. scsi_device_lookup() takes a reference, and nothing ever drops it: ch_destroy() frees the array with kfree(). ch->dt[] is read nowhere else - it only supplies the vendor, model and revision printed in the same loop. Once such a drive is removed, its scsi_device can never be released. It stays on the host's device list at its address, so a new device there is refused by anything that walks the list - target_core_pscsi reports "scsi_device_get() failed for H:C:T:L" - and the low-level driver's module can no longer be unloaded. Only a reboot recovers. It shows with any changer that reports its drives' ids; with the mhvtl virtual library (IBM 3573-TL personality), each create and remove of a library with four drives leaves four references behind, counted by the module's use count in lsmod. With ch not bound the count is unchanged, and with this patch applied it is unchanged too. Drop the reference as soon as the name has been printed, and remove the now unused dt[] array. That also removes the array leaked when ch_probe() fails after ch_readconfig(). The same leak was reported with an RFC patch in 2022, which was not merged.
CVE-2026-99018
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp CONFIG_SHADOW_CALL_STACK 하에서 handle_exception()은 트랩이 사용자 공간에서 발생한 경우에만 커널 섀도우 콜 스택 포인터(gp)를 다시 로드한다. 이 결정은 scs_load_current_if_task_changed를 통해 이루어지며, 이는 트랩 시점의 tp(sscratch에서 s5로 다시 읽음)와 현재 tp를 비교한다: beq \prev, tp, _skip_scs scs_load_current _skip_scs: tp는 사용자가 쓸 수 있는 레지스터이다. 사용자 태스크가 트랩 전에 자신의 task_struct(¤t)의 선형 매핑 주소를 tp에 설정하면 비교가 성공하여(테스트 환경에서 KASLR 활성화 상태에서 무차별 대입으로 달성 가능) 커널은 scs_load_current를 건너뛰고 사용자 공간이 남긴 gp를 계속 사용한다. CONFIG_SHADOW_CALL_STACK 하에서 gp는 섀도우 콜 스택 포인터이며 load_global_pointer는 무작동이므로, 컴파일러가 생성한 "sd ra, -8(gp)" / "ld ra, -8(gp)" 명령어가 모든 비-리프 함수에서 공격자가 제어하는 주소에 쓰기 및 반환을 수행한다 -- 이는 권한 없는 커널 임의 쓰기 및 제어 흐름 탈취 원시 수단이다. 오염된 gp는 반환 시 task_struct.scs_sp에 저장되어 이후 모든 진입 시에도 다시 로드가 건너뛰어진다. "사용자 공간에서 왔다"는 하드웨어 sstatus.SPP 비트(이 시점에서 이미 s1에 있음)를 기준으로 결정하며, 이는 ret_from_exception이 몇 명령어 후에 사용하는 검사와 일치한다. SPP는 트랩 진입 시 하드웨어에 의해 기록되며 U-모드에서 위조할 수 없다. 정상 동작은 변경되지 않았다: 사용자 진입(SPP=0)은 태스크 섀도우 콜 스택을 다시 로드하고, 중첩된 커널 진입(SPP=1)은 이를 건너뛴다.
CVE-2026-99017
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: riscv: errata: THEAD GHOSTWRITE에 대해 RISCV_ALTERNATIVE_EARLY 선택 errata_probe_ghostwrite()는 RISCV_ALTERNATIVES_EARLY_BOOT 단계에서 호출될 때만 CPU를 취약한 상태로 표시하며, ghostwrite_enable_mitigation()의 완화는 부팅 대체가 패치되기 전에 취약 상태가 기록된 경우에만 적용된다. 초기 부팅 단계는 CONFIG_RISCV_ALTERNATIVE_EARLY가 활성화된 경우에만 실행되며, 현재는 ERRATA_THEAD_MAE에 의해서만 선택된다. ERRATA_THEAD_GHOSTWRITE=y이지만 ERRATA_THEAD_MAE=n으로 빌드된 커널에서는 초기 대체가 실행되지 않아 ghostwrite_state가 VULNERABLE로 설정되지 않는다. ghostwrite_enable_mitigation()은 false를 반환하고 xtheadvector는 계속 활성화되며, sysfs는 취약한 T-Head C9xx CPU에서 "Not affected"를 보고한다. ERRATA_THEAD_GHOSTWRITE에서 RISCV_ALTERNATIVE_EARLY를 선택하여 초기 부팅 단계에서 취약점을 감지하고 기본 완화를 적용한다.
CVE-2026-99016
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: riscv: futex: 원자적 접근 전에 사용자 포인터의 태그 제거 access_ok()는 untagged_addr(uaddr)를 검사하지만 arch_futex_atomic_op_inuser()와 futex_atomic_cmpxchg_inatomic()는 원시 uaddr을 인라인 asm amoswap/amoadd/.../lr.w+sc.w의 "+m" (*uaddr) 피연산자로 전달한다. 태그된 주소 ABI가 활성화된 경우(CONFIG_RISCV_ISA_SUPM, prctl PR_SET_TAGGED_ADDR_CTRL에서 PMLEN != 0), 이 두 주소는 다르다: 상위 PMLEN 비트에 태그가 있는 사용자 포인터는 태그 제거 후 access_ok()를 통과하지만, 원자는 여전히 태그가 붙은 원시 주소에서 수행된다. 슈퍼바이저 모드 데이터 접근은 U-모드 포인터 마스킹의 영향을 받지 않으며(이는 menvcfg.PMM에 의해 제어되는데 커널은 이를 설정하지 않음), 하드웨어는 커널 자체 접근에 대해 태그를 제거하지 않는다. Sv57과 PMLEN=16 환경에서 태그 비트는 정규 주소 비트와 겹치므로 태그가 붙은 포인터가 정규 커널 가상 주소(예: 선형 맵)를 가리킬 수 있으며, 그 태그 제거된 형태는 유효한 사용자 주소가 된다. 따라서 권한 없는 프로세스가 FUTEX_WAKE_OP를 이용해 임의 커널 주소에 대해 원자적 읽기-수정-쓰기를 수행할 수 있으며, 대응하는 FUTEX_OP_CMP_* 결과는 읽기 오라클로 작동한다. get_user()/put_user()/raw_copy_{to,from}_user()는 이미 access_ok() 검사 후 포인터의 태그를 제거하므로, futex 헬퍼에서도 동일하게 처리하여 원자가 실제로 검증된 주소에서 작동하도록 한다.
CVE-2026-99015
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sock: Serialize dead-device detachment Rebinding an HCI socket after its controller is unregistered can race monitor control replay and crash the kernel. hci_sock_bind() clears hci_pi(sk)->hdev and drops the device reference under only the socket lock, whereas send_monitor_control_replay() holds hci_sk_list.lock for reading. Replay can observe a non-NULL hdev, then bind can clear it and drop the last reference before create_monitor_ctrl_open() reads hdev->id. This can cause a NULL pointer dereference if the pointer is reloaded, or a use-after-free if the old pointer is retained. The kernel reported: KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] RIP: 0010:create_monitor_ctrl_open+0x579/0x800 Call Trace: hci_sock_bind+0xd96/0x1190 __sys_bind+0x166/0x200 __x64_sys_bind+0x6d/0xb0 do_syscall_64+0xdd/0x4a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f The same missing serialization lets hci_send_to_sock() select a socket for the old device and queue its frame after bind has detached the socket or installed a new binding. Take hci_sk_list.lock for writing when clearing the device pointer and resetting the socket state. This waits for existing replay and delivery readers to finish before detachment and prevents later readers from using the old binding. Keep hci_dev_put() outside the critical section because the final device release can sleep.
CVE-2026-99014
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: hci_sync: 스캔 설정 중 명령어 skb 수명 수정 PA 동기화 스캔 설정 중, hci_le_set_ext_scan_param_sync()는 PA_LINK 조회에 사용되는 주소를 hci_sent_cmd_data()에서 가져온다. 반환된 포인터는 sent_cmd 또는 req_skb에서 저장 공간을 빌려오지만, 어느 skb에도 참조를 유지하지 않는다. 스캔 작업자는 req_workqueue에서 실행되고 hci_cmd_work()는 별도의 장치 작업 큐에서 실행된다. 스캔 작업자가 sent_cmd를 로드한 후, 명령 작업자가 hci_sent_cmd_data()가 skb를 역참조하기 전에 이를 해제하고 교체할 수 있다. 명령 페이로드도 헬퍼에서 반환된 후 주소를 비교하기 전 사이에 해제될 수 있다. 연결 조회의 RCU 중요 구간은 명령 skb를 보호하지 않는다. KASAN 보고: BUG: KASAN: slab-use-after-free in hci_sent_cmd_data+0x27c/0x2f0 작업 큐: hci0 hci_cmd_sync_work 호출 추적: hci_sent_cmd_data+0x27c/0x2f0 hci_le_set_scan_param_sync+0x43a/0x850 hci_passive_scan_sync+0xb09/0x1460 hci_update_passive_scan_sync+0x47c/0x6e0 hci_le_pa_create_sync+0x200/0xa70 hci_cmd_sync_work+0x13c/0x290 작업 95에 의해 할당됨: skb_clone+0x13f/0x340 hci_cmd_work+0x2a9/0x7e0 작업 95에 의해 해제됨: kmem_cache_free+0xba/0x3a0 hci_cmd_work+0x29c/0x7e0 hdev->lock을 사용하여 주소 스냅샷과 sent_cmd 교체를 직렬화한다. 헬퍼가 해당 skb로 폴백하기 때문에 req_skb 교체 및 완료 정리를 동일한 락으로 보호한다. 락을 해제하기 전에 주소를 복사하고 기존 RCU 보호 연결 조회에 복사본을 사용한다. 명령 전송 또는 대기 전에 뮤텍스를 해제하여 조회 및 완료 순서를 유지한다.
CVE-2026-99013
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: ISO: 동시 BIS 리스너 설정 거부 iso_sock_listen()은 hdev->lock 순서를 유지하기 위해 iso_listen_bis() 호출 전에 소켓 잠금을 해제한다. 동일한 브로드캐스트 소켓에 대해 두 개의 동시 listen() 호출은 둘 다 BT_BOUND를 관찰할 수 있다. 호출자 A는 connA를 연결하고 잠금을 해제한 후, 호출자 B가 잠금을 획득하고 connB를 연결할 수 있으며, A가 BT_LISTEN을 게시하기 전에 발생한다. __iso_chan_add()는 connB가 이미 소켓을 가지고 있는지 확인하지만, 소켓이 이미 연결을 가지고 있는지는 확인하지 않는다. 두 번째 연결은 iso_pi(sk)->conn을 덮어써서 connA 참조를 누수시키고 connA->sk는 그대로 둔다. 소켓 해제는 connB를 따라가므로, 이후 connA에서 발생하는 이벤트는 오래된 소켓 접근을 유발할 수 있다. iso_listen_bis()에서 HCI 장치와 소켓 잠금을 모두 획득한 후 BT_BOUND를 재확인하고 iso_pi(sk)->conn이 NULL인지 요구한다. 연결 확인은 연결과 BT_LISTEN 게시 사이의 간격도 포함한다. 기존 잠금 해제 경로를 통해 -EBADFD로 경쟁 설정을 거부하여 추가 연결 할당을 방지한다. 계측된 커널에서 기록된 KASAN 보고서는 다음과 같다: BUG: KASAN: slab-use-after-free in iso_sock_hold+0x119/0x1f0 호출 추적: iso_sock_hold+0x119/0x1f0 iso_conn_del+0xe4/0x270 hci_disconn_complete_evt+0x351/0x8c0 hci_event_packet+0x71b/0xb20 hci_rx_work+0x293/0x730 작업 93에 의해 할당됨: sk_prot_alloc+0x113/0x220 sk_alloc+0x2b/0x6d0 bt_sock_alloc+0x29/0x370 iso_sock_alloc.constprop.0+0x19/0x300 iso_sock_create+0x94/0x100 작업 93에 의해 해제됨: kfree+0x121/0x3c0 __sk_destruct+0x42b/0x540 iso_sock_release+0x29d/0x340 __sock_release+0xa1/0x260 sock_close+0x10/0x20
CVE-2026-99012
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: ISO: 동시 연결 호출 직렬화 iso_sock_connect()는 소켓 잠금을 획득하기 전에 소켓 상태를 확인하고, 연결 설정 전에 잠금을 다시 해제한다. 두 호출자가 소켓이 열려 있거나 바인딩된 상태에서 입장 검사를 모두 통과할 수 있다. 호출자 A는 경로 선택을 위해 목적지를 복사할 수 있고, 호출자 B는 A가 CIS를 바인딩하거나 연결하기 전에 소켓 목적지를 교체할 수 있다. A는 자신의 요청에 대해 선택된 경로와 함께 B의 목적지를 사용한다. B는 또한 A가 연결을 첨부하고 BT_CONNECT를 설정한 후에도 진행할 수 있다. 지연된 BIS 설정의 경우, B는 두 번째 BIS를 바인딩하고 iso_pi(sk)->conn을 덮어써서 첫 번째 연결의 참조와 conn->sk 역참조가 고립되게 만든다. 동시 CIS 연결도 마찬가지로 소켓의 연결을 교체할 수 있다. 이후 해제는 현재 연결만 분리하므로, 이전 연결에 대한 콜백이 소켓 해제와 경쟁하여 해제된 소켓에 접근할 수 있다. KASAN 보고: BUG: KASAN: slab-use-after-free in iso_sock_hold+0xf7/0x1b0 호출 추적: iso_sock_hold+0xf7/0x1b0 iso_conn_del+0x7b/0x1d0 iso_connect_cfm+0x186/0x16a0 hci_conn_failed+0x154/0x280 hci_abort_conn_sync+0x3dc/0x7d0 hci_cmd_sync_work+0x173/0x300 작업 121에 의해 할당됨: sk_alloc+0x2b/0x6d0 bt_sock_alloc+0x29/0x370 iso_sock_alloc.constprop.0+0x19/0x300 iso_sock_create+0x94/0x100 작업 121에 의해 해제됨: kfree+0x121/0x3c0 __sk_destruct+0x42b/0x540 iso_sock_release+0x29d/0x340 __sock_release+0xa1/0x260 소켓 잠금 하에서 입장 검사를 수행하고 연결 작업이 진행 중임을 표시한 후 목적지를 공개한다. 경로 조회 및 연결 설정 동안 해당 플래그를 유지하여 다른 연결 시도를 -EBADFD로 거부하여 목적지 변경이나 연결 첨부를 방지한다. 실패를 포함한 헬퍼 함수 반환 후 플래그를 해제하여 실패한 설정을 재시도할 수 있게 한다. 별도의 플래그가 필요한 이유는 소켓 잠금을 해제한 후 HCI 장치 잠금을 획득해야 하며, BT_CONNECT는 연결이 첨부된 상태를 요구하기 때문이다. 기존 상태 전환과 iso_sock_recvmsg()를 통한 지연된 CIS 완료는 유지한다. __iso_chan_add()에서 새 참조를 획득하거나 포인터를 공개하기 전에 기존 소켓 첨부를 거부하여 모든 호출자가 연결 연관성을 유지하도록 한다. 지연된 CIS 설정에 대해 동일 소켓, 동일 연결 성공 사례를 유지한다. BIS 설정 전에 첨부된 소켓을 거부하여 재사용 가능한 BIS가 첨부 거부 전에 청구되지 않도록 한다. CIS 설정에서 iso_conn_add() 전에 다른 HCI 연결을 거부하고 시도별 HCI 홀드를 직접 해제한다. 소유되지 않은 iso_conn은 분리 후에도 다른 참조를 가질 수 있으므로, 해당 홀드 해제를 위해 파괴에 의존할 수 없다. iso_listen_bis()는 장치 잠금 하에서 새로운 PA HCI/ISO 쌍을 생성하므로, 임시 iso_conn_put()은 ISO 후보를 해제하고 거부 시 HCI 홀드를 해제한다. iso_conn_ready()는 연결이 없는 새로 할당되고 공개되지 않은 자식을 사용하여 소켓 측 거부가 불가능하게 만든다.
CVE-2026-99011
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: SCO: sco_conn 수명을 sco_recv_scodata()와 직렬화 sco_recv_scodata()는 약한 hcon->sco_data 역참조를 hdev->lock 하에서 강한 참조로 업그레이드한다: hci_dev_lock(hdev); hcon = hci_conn_hash_lookup_handle(hdev, handle); ... conn = sco_conn_hold_unless_zero(hcon->sco_data); hci_dev_unlock(hdev); 그러나 이 포인터는 다른 쪽에서 해당 락 없이 초기화된다. 마지막 sco_conn 참조가 해제될 때, sco_conn_free()는 conn->hcon->sco_data = NULL; 를 hdev->lock 없이 실행하므로, RX 경로가 hcon->sco_data를 읽고 동시에 해제된 sco_conn에 대해 kref_get_unless_zero()를 호출할 수 있었다: BUG: KASAN: slab-use-after-free in sco_conn_hold_unless_zero+0xbe/0x160 Write of size 4 by task kworker/u17:0 Workqueue: hci0 hci_rx_work Call Trace: sco_conn_hold_unless_zero+0xbe/0x160 sco_recv_scodata+0x13f/0x490 hci_rx_work+0x3af/0x730 kref_get_unless_zero()는 0인 참조 카운트만 방어하며, 이미 해제된 메모리에 대해서는 방어하지 않는다. hcon->sco_data가 가리키는 sco_conn에 실제 참조를 부여하여, 포인터가 설치된 동안 객체가 해제되지 않도록 하고, hdev->lock 하에서 실행되는 sco_conn_del()에서만 이를 초기화하고 해제한다 (호출자 sco_connect_cfm()와 sco_disconn_cfm()가 락을 보유). sco_recv_scodata()의 리더도 hdev->lock을 취하므로 저장과 읽기가 직렬화된다: RX 경로는 NULL 또는 자신의 참조를 해제할 때까지 유효함이 보장된 참조를 관찰한다. sco_conn_add()는 더 이상 kref_init() 참조를 호출자에게 연결의 유일한 참조로 넘기지 않는다; 초기 참조는 hcon->sco_data가 소유하며, 호출자는 sco_conn_hold()를 통해 자신의 참조를 얻는다. sco_conn이 이제 소켓보다 오래 지속될 수 있으므로 (연결이 끊어질 때까지 유지), hci_conn은 더 이상 sco_conn_free()에서 해제할 수 없으며, 이는 소켓 닫기 동작을 후퇴시키지 않는다: 연결된 SCO 소켓을 닫으면 여전히 링크를 끊어야 한다. 소켓으로 hci_conn 소유권을 이동한다: __sco_chan_add()가 hci_conn 참조를 취하고 sco_chan_del()과 sco_sock_destruct()에서 정확히 한 번 해제한다. sco_conn은 더 이상 hci_conn 참조를 소유하지 않으므로 sco_conn_add()는 참조를 소비하지 않고 sco_connect()는 모든 경로에서 hci_connect_sco() 참조를 해제한다; sco_connect_cfm()는 더 이상 hci_conn_hold()를 수행할 필요가 없다.
CVE-2026-99010
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: free the skb when the DLC has no owner rfcomm_recv_data() hands the skb to d->data_ready() and returns 0 without freeing it, so the callback owns the skb from that point on. The tty implementation frees it when the DLC has been detached from its device: static void rfcomm_dev_data_ready(struct rfcomm_dlc *dlc, struct sk_buff *skb) { struct rfcomm_dev *dev = dlc->owner; if (!dev) { kfree_skb(skb); return; } The socket implementation returns without freeing it, and the skb is leaked. A connected DLC can have no owner: rfcomm_sock_destruct() clears d->owner, while the DLC itself stays on the session until it is closed. Data frames that arrive in that window still find d->state == BT_CONNECTED in rfcomm_recv_data() and are handed to the callback, one leaked skb each. The leak does not stop on its own either. The remote runs out of credits only once RFCOMM_RX_THROTTLED is set, and for a socket the only place that sets it is rfcomm_sk_data_ready() itself, below the return. rfcomm_process_dlcs() keeps granting credits, so the remote keeps sending and the leak keeps growing. Free the skb, as the tty side does.
CVE-2026-99009
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: connect the session socket without rfcomm_mutex An RFCOMM connect() issued while a BR/EDR link is being authenticated makes lockdep report a circular dependency, and the reported cycle is a real AB/BA between rfcomm_mutex and hdev->lock. rfcomm_security_cfm() is called from the HCI event path, which already holds hdev->lock: hci_rx_work() hci_event_packet() hci_cc_read_enc_key_size() [hdev->lock] hci_encrypt_cfm() [hci_cb_list_lock] rfcomm_security_cfm() [rfcomm_mutex] while an RFCOMM connect() from userspace takes the same two locks the other way round: rfcomm_sock_connect() rfcomm_dlc_open() [rfcomm_mutex] __rfcomm_dlc_open() rfcomm_session_create() kernel_connect() l2cap_sock_connect() l2cap_chan_connect() [hdev->lock] WARNING: possible circular locking dependency detected kworker/u131:1/1128 is trying to acquire lock: rfcomm_mutex, at: rfcomm_security_cfm+0x31/0x3e0 [rfcomm] but task is already holding lock: hci_cb_list_lock, at: hci_cc_read_enc_key_size+0x1d2/0xcc0 Chain exists of: rfcomm_mutex --> &hdev->lock --> hci_cb_list_lock hci_auth_complete_evt() and hci_encrypt_change_evt() reach the callback the same way. Both orders have to be seen in the same boot, which is why a BR/EDR connection alone is not enough to show it: a session set up by the remote side is created by rfcomm_accept_connection() in krfcommd, which calls kernel_accept() and never takes hdev->lock under rfcomm_mutex. Connecting a device that authenticates and encrypts the link and then calling connect() on an RFCOMM socket towards any address - the connect does not have to succeed, the order is recorded before the page timeout - reports it every time. Only the session socket has to be connected with the lock held, and it does not: nothing else can see the socket before it is put on the session list. So connect it first and take rfcomm_mutex afterwards, which removes the rfcomm_mutex -> hdev->lock order for good, rather than keeping the HCI event path out of rfcomm_mutex. rfcomm_session_create() becomes rfcomm_session_connect(), which returns the connected socket without touching the session list, and rfcomm_dlc_open() adds the session once it holds the lock again. If another opener added a session for the same pair while this socket was connecting, that session is used and this socket is dropped. __rfcomm_dlc_open() now takes the session it should use, and its state check runs after the lock is re-acquired, so a DLC that was opened or closed in the meantime is still handled. Over an existing ACL link the connection can complete before the session reaches the list, and the wakeup from the socket callback is then lost, so krfcommd is woken once the session is visible. Connecting without the lock opens a window in which the socket can be closed. The DLC is not on a session yet, so rfcomm_dlc_close() finds nothing to do and returns without touching it, and rfcomm_dlc_open() would then attach a DLC whose owner is gone. rfcomm_dlc_close() now marks such a DLC with RFCOMM_CLOSED, and rfcomm_dlc_open() checks the mark once it holds rfcomm_mutex again and drops the socket instead of attaching the DLC. The mark is cleared when an open starts, so a DLC that is reused is not affected. This covers both callers of rfcomm_dlc_open(), the socket and the tty layer.
CVE-2026-99008
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: Fix NULL tty_dev dereference in rfcomm_dev_shutdown syzbot hit a NULL pointer dereference in rfcomm_dev_shutdown() when an RFCOMM tty is closed. rfcomm_dev_add() puts the new device on rfcomm_dev_list first and only then registers the tty device and saves it in dev->tty_dev. If that registration fails, dev->tty_dev is never set at all. The device can be looked up in the meantime, so an open() of /dev/rfcommN gets through rfcomm_tty_install() and attaches to it. When that tty is closed again, rfcomm_dev_shutdown() uses dev->tty_dev without checking it: Oops: general protection fault, probably for non-canonical address KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] RIP: 0010:rfcomm_dev_shutdown+0x48/0xb0 net/bluetooth/rfcomm/tty.c:131 Call Trace: tty_port_shutdown+0x1bf/0x220 drivers/tty/tty_port.c:372 tty_port_close+0x4e/0x150 drivers/tty/tty_port.c:705 tty_release+0x359/0x1670 drivers/tty/tty_io.c:1718 __fput+0x418/0xa50 fs/file_table.c:512 rfcomm_dev_destruct() already copes with a NULL dev->tty_dev. Add the same check to rfcomm_dev_shutdown(), so the tty device is only moved when it was actually registered.
CVE-2026-99007
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/fb-helper: defer setup when fbdev_probe() fails, not just on -EAGAIN __drm_fb_helper_initial_config_and_unlock() calls drm_client_modeset_probe() first, which already fills in each mode_set->mode/num_connectors for every connected output, and only afterwards calls drm_fb_helper_single_fb_probe() to create fb_helper->fb and wire it into those mode_sets via drm_setup_crtcs_fb(). If drm_fb_helper_single_fb_probe() fails with anything other than -EAGAIN (e.g. dev->driver->fbdev_probe() itself fails), the function bails out before drm_setup_crtcs_fb() runs and before setting fb_helper->deferred_setup. The client is left with mode_sets that have a mode and connectors but mode_set->fb == NULL, and nothing marks this fb_helper as needing a retry. __drm_fb_helper_restore_fbdev_mode_unlocked() only skips committing when fb_helper->deferred_setup is set, so a later .restore() call (drm_lastclose() on process exit, in this report) commits the stale mode_set through drm_client_modeset_commit() -> drm_client_modeset_commit_atomic() -> __drm_atomic_helper_set_config(), which hits WARN_ON(!set->fb). Mark fb_helper->deferred_setup on any drm_fb_helper_single_fb_probe() failure, not just -EAGAIN, so restore keeps skipping the commit until a later hotplug event successfully re-probes and re-populates mode_set->fb. The real error code is still returned to the caller unchanged.
CVE-2026-99006
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: drm/i915/gem: exec 배열 경계 초과 방지 eb_relocate_parse_slow()가 다음 시나리오 내에서 원래 exec 배열 외부의 항목에 대해 kvfree()를 호출할 수 있다: 1) eb_copy_relocations()가 exec 항목에 대해 eb->buffer_count만큼 복사본을 할당한다; 2) eb_parse()가 eb->buffer_count를 증가시킨 직후 최대 두 개의 VMA를 추가한다; 3) "out" 레이블 아래의 정리 과정이 이 증가된 buffer_count를 사용하여 VMA 배열이 아닌 exec 배열에서 재배치 포인터를 kvfree()로 해제한다. 이 문제를 수정하기 위해, 재배치 정리 시 명령어 파서가 추가한 VMA를 제외한 원래 exec 객체 수를 사용하도록 보장한다. (커밋 2a0158925fb943c7ba8f3216e2734952128defc9에서 체리픽됨)
CVE-2026-99005
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/i915/gt: Unmask interrupts only when ACTIVE is true There is a small race window between intel_rps_boost() reading a stale ACTIVE state and queuing rps->work, where ACTIVE may be changed via asynchronous calls triggered by wakeref drop. This means that rps_work() could be triggered after the GT has been parked, so unmasking RPS PM interrupts would happen without holding PM wakelock. This sequence of events may be observed during live_rc6_ctx_wa() selftest: 1) live_rc6_ctx_wa() -> intel_engine_pm_put() -> wakeref_put() ASYNC1) wakeref_put() callback -> __engine_park() -> intel_gt_pm_put_async() -> intel_gt_pm_put_async_untracked() -> intel_wakeref_put_async() ASYNC2) wakeref_put_async() callback -> __gt_park() -> intel_rps_park() -> intel_rps_clear_active() [clear ACTIVE] WITH INTERRUPTS: -> rps_disable_interrupts() -> cancel_work_sync(rps->work) -> rps_reset_interrupts() [rps->pm_iir = 0] WITHOUT INTERRUPTS (TIMER mode): -> rps_stop_timer() -> cancel_work_sync(rps->work) 2) live_rc6_ctx_wa() -> intel_gt_wait_for_idle() -> intel_gt_retire_requests_timeout() -> dma_fence_wait_timeout() -> ops->wait() [i915_fence_wait()] -> i915_request_wait_timeout() -> intel_rps_boost() -> intel_rps_is_active() [check ACTIVE] [OPEN RACE WINDOW] -> queue_work(rps->work) -> retire_requests() -> i915_request_retire() -> intel_rps_dec_waiters() [from 1 to 0] If ASYNC1 and ASYNC2 would execute during [OPEN RACE WINDOW], then: 3) rps_work() executes from the workqueue and may satisfy "(!pm_iir && !client_boost)" test (in TIMER mode rps->pm_iir is zeroed by an earlier rps_work() call or never gets a new value after previous intel_rps_unpark() event), so it jumps to "out" label, bypassing intel_rps_is_active() guard and executes gen6_gt_pm_unmask_irq(); 4) GT is parked and runtime PM wakelock is dropped, so only a raw reference in __gt_park() -> intel_display_power_put_async() remains for 100ms, then the MMIO write in gen6_gt_pm_unmask_irq() detects missing wakelock via assert_rpm_wakelock_held() and emits "RPM wakelock ref not held during HW access" tainting kernel. Commit 3e7abf814193 ("drm/i915: Extract GT render power state management") dropped the "if (rps->interrupts_enabled)" guard that gen6_pm_rps_work() had around this unmask in i915_irq.c. INTEL_RPS_ACTIVE brackets the same window, since it is set in intel_rps_unpark() before rps_enable_interrupts() and rps_start_timer() and cleared in intel_rps_park() before rps_stop_timer() and rps_disable_interrupts(). Skip unmasking when RPS is no longer active (reaching unmask operation is independent of INTERRUPT mode). This does not prevent RPS operation from resuming on the next unpark. In interrupt mode, intel_rps_unpark() calls rps_enable_interrupts(), which enables and unmasks the PM interrupts. In timer mode, it calls rps_start_timer(), restarting periodic engine-busyness evaluation. The timer generates software RPS events and queues rps_work() directly, independently of PM interrupt delivery. Neither mode requires the late worker to unmask interrupts while the GT is parked (cherry picked from commit ca4a6deadad15b91ee083afe445fa6bdbfb68206)