5.5medium
usb: typec: ucsi: Fix null pointer dereference in trace
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: Fix null pointer dereference in trace ucsi_register_altmode checks IS_ERR for the alt pointer and treats NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled, ucsi_register_displayport returns NULL which causes a NULL pointer dereference in trace. Rather than return NULL, call typec_port_register_altmode to register DisplayPort alternate mode as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 8095bf0579ed4906a33f7bec675bfb29b6b16a3b, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 7e64cabe81c303bdf6fd26b6a09a3289b33bc870, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 3aa56313b0de06ce1911950b2cc0c269614a87a9, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before b4243c05d7e3db0bdbf9124e6fa59b4ca7c807ae, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 3b9f2d9301ae67070fe77a0c06758722fd7172b7, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 99331fe68a8eaa4097143a33fb0c12d5e5e8e830, from af8622f6a585d8d82b11cd7987e082861fd0edd3 before 99516f76db48e1a9d54cdfed63c1babcee4e71a5, 5.2 Not affected: before 5.2, from 5.4.284 up to 5.4.*, from 5.10.226 up to 5.10.*, from 5.15.167 up to 5.15.*, from 6.1.109 up to 6.1.*, from 6.6.50 up to 6.6.* | CVE List |
| linux linux_kernel | before 5.4.284, from 5.5 before 5.10.226, from 5.11 before 5.15.167, from 5.16 before 6.1.109, from 6.2 before 6.6.50, from 6.7 before 6.10.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: Fix null pointer dereference in trace ucsi_register_altmode checks IS_ERR for the alt pointer and treats NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled, ucsi_register_displayport returns NULL which causes a NULL pointer dereference in trace. Rather than return NULL, call typec_port_register_altmode to register DisplayPort alternate mode as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: typec: ucsi: Se corrige la desreferencia del puntero nulo en el seguimiento ucsi_register_altmode comprueba IS_ERR para el puntero alt y trata NULL como válido. Cuando CONFIG_TYPEC_DP_ALTMODE no está habilitado, ucsi_register_displayport devuelve NULL, lo que provoca una desreferencia del puntero NULL en el seguimiento. En lugar de devolver NULL, llame a typec_port_register_altmode para registrar el modo alternativo de DisplayPort como un modo no controlable cuando CONFIG_TYPEC_DP_ALTMODE no está habilitado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-46719 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-46719 changed 2026-06-17 | Public domain |