GHSA-fw2f-r9xj-6gr9unknown
In the Linux kernel, the following vulnerability has been resolved: usb: typec: Fix error...
🔗 CVE IDs covered (1)
📋 Description
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: Fix error pointer dereference
The variable tps->partner is checked for an error pointer and then if it is, it sends an error message but does not return and then immediately dereferenced a few lines below:
tps->partner = typec_register_partner(tps->port, &desc); if (IS_ERR(tps->partner)) dev_warn(tps->dev, "%s: failed to register partnet\n", func);
if (desc.identity) { typec_partner_set_identity(tps->partner); cd321x->cur_partner_identity = st.partner_identity; }
Add early return and fix spelling mistake in error message.
Detected by Smatch: drivers/usb/typec/tipd/core.c:827 cd321x_update_work() error: 'tps->partner' dereferencing possible ERR_PTR()
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-53028
- https://git.kernel.org/stable/c/19951118fb22b5ad512379ee64510fe0e2c40eb3
- https://git.kernel.org/stable/c/9e31082f92c913d74fefb4e60cd0284e605ba3a3
- https://git.kernel.org/stable/c/f2529d08fcb429ea01bb87c326342f41483f8b2f
- https://github.com/advisories/GHSA-fw2f-r9xj-6gr9