- Yama var
- Son 7 gün
- CWE-476
CVE-2026-82389
Zephyr Bluetooth Classic HFP AG'de bağlantı hatasında NULL işaretçi dereferansı nedeniyle çökme
- Yayımlandı
- Güncellendi
- 26 Eki 2026
- Açık yaşı
- 2 gün
- Kaydı açan
- zephyr
ÖzetTürkçe
Zephyr'ın Bluetooth Classic Hands-Free Profile (HFP) Audio Gateway rolünde, hfp_ag_create fonksiyonu eşin SDP keşfini başlatırken ag->sdp_param._node düğümünü SDP istemcisinin bekleyen istek listesine bağlar. Ardından gelen bt_rfcomm_dlc_connect çağrısı başarısız olursa, bt_hfp_ag_connect bağlı düğüm hâlâ listedeyken tüm AG nesnesini memset ile sıfırlar; ag->slc_work de sistem iş kuyruğunda hâlâ kuyruğa alınmış olabilir. Devam eden bir SDP keşfi iptal edilemez, çünkü bt_sdp_discover_cancel genel başlık dosyasında bildirilmiş ancak uygulanmamıştır; bu nedenle istek, func, pool ve uuid işaretçileri sıfırlanmış hâlde listede kalır. SDP istemcisi istek listesini bir sonraki ilerletişinde, sdp_client_discover fonksiyonu sıfırlanmış parametreleri kullanır: NULL pool ile net_buf_alloc(param->pool, …) çağrısı ve param->uuid->type erişimi yapılır; sonuç bildirim yolları ise NULL params->func üzerinden çağrı yapar. Bağlı bir düğümün sıfırlanması istek listesini eski bir kuyruk işaretçisi arkasında kesmekte, serbest bırakılan AG yuvasının yeniden kullanılması ise aynı düğümü yeniden ekleyerek kendi kendine dönen bir listeye yol açıp Bluetooth RX iş parçacığını kilitleyebilmektedir. Etki, Bluetooth yığınının çökmesi ya da kilitlenmesidir; yazılan değer sabit bir statik adresteki sıfır olduğundan saldırgan kontrolünde bir yazma imkânı yoktur. Yalnızca CONFIG_BT_CLASSIC ve CONFIG_BT_HFP_AG yapılandırmalarıyla Audio Gateway rolünü kullanan derlemeler etkilenmektedir. Etkilenen sürüm aralığı: 4.4.0 ile 4.5.0 öncesi; düzeltme 4.5.0 sürümündedir. CVSS 3.1 vektörü: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (puan 6.5, ORTA). Zayıflık türü: CWE-476 (NULL işaretçi dereferansı).
Kaynaktaki açıklama (İngilizce)
In the Bluetooth Classic Hands-Free Profile Audio Gateway role, hfp_ag_create() in subsys/bluetooth/host/classic/hfp_ag.c starts an SDP discovery toward the peer, which links the embedded ag->sdp_param._node into the SDP client's pending request list in subsys/bluetooth/host/classic/sdp.c. If the subsequent bt_rfcomm_dlc_connect() call fails, bt_hfp_ag_connect() cleaned up by memset()-ing the entire AG object while that node was still linked, and while ag->slc_work could still be queued on the system work queue. An in-flight SDP discovery cannot be cancelled — bt_sdp_discover_cancel() is declared in the public header but has no implementation — so the request stays in the list with its func, pool and uuid pointers zeroed.
The RFCOMM channel passed to bt_hfp_ag_connect() is taken from the peer's own SDP Hands-Free service record in the normal AG flow (bt_sdp_get_proto_param() performs no range validation, and samples/bluetooth/classic/handsfree_ag feeds the value straight through), so a remote BR/EDR device in radio range that advertises an RFCOMM channel outside the valid range 0x01..0x1e deterministically forces bt_rfcomm_dlc_connect() to fail and reach the wipe. Reading the peer's SDP record requires no pairing, and the peer can also trigger the failure by dropping the ACL or racing an RFCOMM DLC on the same DLCI at the right moment.
When the SDP client next advances its request list, sdp_client_discover() dereferences the zeroed parameters — net_buf_alloc(param->pool, …) with a NULL pool and param->uuid->type — and the result-notification paths call through the NULL params->func. Zeroing a linked node also truncates the request list behind a stale tail pointer, and re-arming the freed AG slot re-appends the same node and can produce a self-looping list that hangs the Bluetooth RX thread. The impact is a crash or hang of the Bluetooth stack; the written value is a constant zero at a fixed static address, so no attacker-controlled write is available.
Only builds with CONFIG_BT_CLASSIC and CONFIG_BT_HFP_AG that use the Audio Gateway role 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ım | Etkilenen | Düzeltildiği sürüm |
|---|---|---|
| zephyrproject zephyr | ≥ 4.4.0, < 4.5.0 | 4.5.0 |
Kaynaklar4 kaynak
Kayıt geçmişi
- 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.