# CVE-2026-142989

- Bağlantı: https://www.allsafe.com.tr/cve-2026-142989/
- Yayımlanma: 2026-12-03T13:17:23+03:00
- Yazar: Postmaster

In the Linux kernel, the following vulnerability has been resolved:

usb: typec: ucsi: Set ucsi->connector before enabling notifications

In ucsi_init(), ucsi->connector is assigned only after the
 UCSI_SET_NOTIFICATION_ENABLE
command completes. But once that command is sent, the PPM is free to raise a connector
change notification at any time, which is handled through:

 ucsi_notify_common() -> ucsi_connector_change()

ucsi_connector_change() indexes into ucsi->connector to get the
 connector and schedule
its work item. If this notification arrives before ucsi_init() reaches the "ucsi-
>connector = connector;" line, ucsi->connector is still NULL and the driver crashes
dereferencing it.

Fix this by setting ucsi->connector right after the connectors are
 registered, 
before notifications are enabled, so it is always valid by the time a connector 
change event can be delivered. Also clear ucsi->connector in the err_unregister 
path so it isn't left pointing at freed memory if a later step in ucsi_init() fails.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142989)
