5.5medium
usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: ucsi: Fix NULL pointer deref in ucsi_connector_change() When ucsi_init() fails, ucsi->connector is NULL, yet in case of ucsi_acpi we may still get events which cause the ucs_acpi code to call ucsi_connector_change(), which then derefs the NULL ucsi->connector pointer. Fix this by not setting ucsi->ntfy inside ucsi_init() until ucsi_init() has succeeded, so that ucsi_connector_change() ignores the events because UCSI_ENABLE_NTFY_CONNECTOR_CHANGE is not set in the ntfy mask.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before 7dd27aed9c456670b3882877ef17a48195f21693, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before 1c5abcb13491da8c049f20462189c12c753ba978, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before 7ef0423e43f877a328454059d46763043ce3da44, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before f87fb985452ab2083967103ac00bfd68fb182764, 5.5 Not affected: before 5.5, from 5.10.177 up to 5.10.*, from 5.15.105 up to 5.15.*, from 6.1.22 up to 6.1.*, from 6.2.9 up to 6.2.*, from 6.3 up to * | CVE List |
| linux linux_kernel | from 5.5 before 5.10.177, from 5.11 before 5.15.105, from 5.16 before 6.1.22, from 6.2 before 6.2.9, 6.3 | 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: ucsi: Fix NULL pointer deref in ucsi_connector_change() When ucsi_init() fails, ucsi->connector is NULL, yet in case of ucsi_acpi we may still get events which cause the ucs_acpi code to call ucsi_connector_change(), which then derefs the NULL ucsi->connector pointer. Fix this by not setting ucsi->ntfy inside ucsi_init() until ucsi_init() has succeeded, so that ucsi_connector_change() ignores the events because UCSI_ENABLE_NTFY_CONNECTOR_CHANGE is not set in the ntfy mask.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: ucsi: Se corrige la desreferencia del puntero nulo en ucsi_connector_change(). Cuando ucsi_init() falla, ucsi->connector es nulo; sin embargo, en el caso de ucsi_acpi, aún pueden aparecer eventos que provocan que el código ucs_acpi llame a ucsi_connector_change(), que a su vez desreferencia el puntero nulo ucsi->connector. Para solucionar esto, no configure ucsi->ntfy dentro de ucsi_init() hasta que ucsi_init() se haya ejecutado correctamente, de modo que ucsi_connector_change() ignore los eventos, ya que UCSI_ENABLE_NTFY_CONNECTOR_CHANGE no está configurado en la máscara ntfy.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-53049 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2023-53049 changed 2026-11-05 | Public domain |