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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to < a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0affectedbdc62f2bae8fb0e8e99574de5232f0a3c54a27df to < 7dd27aed9c456670b3882877ef17a48195f21693affectedbdc62f2bae8fb0e8e99574de5232f0a3c54a27df to < 1c5abcb13491da8c049f20462189c12c753ba978affectedbdc62f2bae8fb0e8e99574de5232f0a3c54a27df to < 7ef0423e43f877a328454059d46763043ce3da44affectedbdc62f2bae8fb0e8e99574de5232f0a3c54a27df to < f87fb985452ab2083967103ac00bfd68fb182764affected
Linux Linux
Default version status: affected
5.5affected0 to < 5.5unaffected5.10.177 to ≤ 5.10.*unaffected5.15.105 to ≤ 5.15.*unaffected6.1.22 to ≤ 6.1.*unaffected6.2.9 to ≤ 6.2.*unaffected6.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0 ↗
- https://git.kernel.org/stable/c/7dd27aed9c456670b3882877ef17a48195f21693 ↗
- https://git.kernel.org/stable/c/1c5abcb13491da8c049f20462189c12c753ba978 ↗
- https://git.kernel.org/stable/c/7ef0423e43f877a328454059d46763043ce3da44 ↗
- https://git.kernel.org/stable/c/f87fb985452ab2083967103ac00bfd68fb182764 ↗