Zafiyet.live Keşfet. Değerlendir. Düzelt. Doğrula.
  • Yama var
  • Son 7 gün
  • CWE-416

CVE-2026-82388

Zephyr Bluetooth Classic ana bilgisayarında HFP HF nesnesinin serbest bırakıldıktan sonra kullanılması

zephyrproject zephyr

Orta 5,3 CVSS 3.1
Yayımlandı
Güncellendi
26 Eki 2026
Açık yaşı
2 gün
Kaydı açan
zephyr

ÖzetTürkçe

bt_hfp_hf_connect fonksiyonu, RFCOMM bağlantısı başarısız olduğunda, SDP keşfi hâlâ devam ederken HFP Hands-Free nesnesini (hf) (void)memset ile sıfırlamaktadır. Bu durumda SDP istemcisinin istek listesinde bağlı kalan düğüm ve işaretçiler sıfırlanmakta, iptal edilemeyen keşif için bt_sdp_discover_cancel fonksiyonunun gerçekleştirimi bulunmamaktadır. Uzak Audio Gateway'in SDP kaydındaki RFCOMM kanalı 1-30 aralığı dışında olduğunda bt_rfcomm_dlc_connect -EINVAL döndürerek bu yola girilebilmektedir; ayrıca uzak cihaz bağlantı zamanlamasını kontrol ettiğinde de aynı durum oluşabilir. Sıfırlanmış nesne kullanılmaya devam edildiğinde NULL işaretçi dereferansı ve sıfır işaretçiye dolaylı çağrı oluşmakta, liste kendine referanslı hâle gelerek Bluetooth ana bilgisayar iş parçacığında hata veya kurtarılamaz askıda kalmaya yol açmaktadır. Etkinin pratikte hizmet dışı bırakma olduğu belirtilmiştir. Düzeltme, nesneyi tutup BT_HFP_HF_FLAG_RELEASING bayrağıyla işaretlemek ve keşif tamamlandığında bt_hfp_hf_discover_cb içinde serbest bırakmaktır. Etkilenen yapılandırmalar CONFIG_BT_CLASSIC ve CONFIG_BT_HFP_HF etkin olan derlemelerdir; 4.4.0 sürümünden 4.5.0 öncesine kadar olan sürümler etkilenmekte olup 4.5.0 sürümünde düzeltilmiştir.

Kaynaktaki açıklama (İngilizce)

bt_hfp_hf_connect() in subsys/bluetooth/host/classic/hfp_hf.c allocates the per-connection HFP Hands-Free object with hfp_hf_create(), which starts an SDP discovery by passing the object's embedded hf->sdp_param to bt_sdp_discover(). That call links the caller-owned parameter block into the SDP client's request list (session->reqs in subsys/bluetooth/host/classic/sdp.c). If the subsequent bt_rfcomm_dlc_connect() then failed, the affected code wiped the entire object with (void)memset(new_hf, 0, sizeof(*new_hf)) while that discovery was still outstanding, zeroing the sys_snode_t _node that is still linked in the SDP client's list along with the request's func, uuid and pool pointers, and zeroing the hf->slc_work work item that may already be queued on the system workqueue. The discovery could not be retracted instead: bt_sdp_discover_cancel() is declared in include/zephyr/bluetooth/classic/sdp.h but has no implementation.

The failing branch is reachable with peer-supplied input. The documented use of bt_hfp_hf_connect() is to pass the RFCOMM channel read out of the remote Audio Gateway's SDP record; neither bt_sdp_get_proto_param() nor bt_hfp_hf_connect() range-checks that value, so a remote device advertising an HFP AG record with an RFCOMM channel outside 1-30 makes bt_rfcomm_dlc_connect() return -EINVAL and drives the local device into the wipe. The same branch is reached without any application misuse when the remote peer controls connection timing, for example when the RFCOMM session is in BT_RFCOMM_STATE_DISCONNECTING or the ACL is dropped between object creation and the RFCOMM call.

Once the object has been wiped, the Bluetooth host continues to use it: sdp_client_alloc_buf() dereferences session->param->pool, which is now NULL, and the SDP receive paths call session->param->func() through a null function pointer, neither of which is NULL-checked. Because the wipe also clears hf->acl, the pool slot is considered free and a retry or an incoming HFP connection re-appends the same still-linked list node, turning session->reqs into a self-referential list that the host's list walkers never leave. The result is a fault or an unrecoverable hang in the Bluetooth host thread; the stray indirect call is through an all-zero pointer whose target the attacker does not control, so the practical impact is denial of service.

The fix keeps the object allocated and marks it with a new BT_HFP_HF_FLAG_RELEASING flag, letting bt_hfp_hf_discover_cb() release it once the discovery completes instead of destroying it under the SDP client. Only builds with CONFIG_BT_CLASSIC and CONFIG_BT_HFP_HF enabled are affected.

Bu açığın açıklamasını Türkçeye çevirdik. Adım adım çözüm önerilerini kritik ve yeni açıklar için hazırlıyoruz; düzeltilmiş sürüm aşağıdaki tabloda, ayrıntılar üreticinin duyurusunda.

Etkilenen sürümler1 yazılım

YazılımEtkilenenDüzeltildiği sürüm
zephyrproject zephyr ≥ 4.4.0, < 4.5.0 4.5.0

Kaynaklar4 kaynak

Kayıt geçmişi

  1. Yayımlandı

İlgili açıklar

Türkçe metin, resmi kayıtlardaki bilgilerle yapay zekâ yardımıyla yazıldı ve yayından önce otomatik kontrollerden geçti. Bir değişikliği uygulamadan önce üreticinin duyurusuna mutlaka bakın.