CVE-2023-53049

usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()

published May 2, 2025

CVSS
—
EPSS
0%
Percentile
9.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00202 · 9.6th percentile
Published
2025-05-02T15:55Z
EPSS history
Timeline
  • 02 MAY 15:55Z
    usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()
    cvelistv5