CVE-2023-53049

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

State
Published
Severity
Not scored
Published
May 2, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to before a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0Affected
  • bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to before 7dd27aed9c456670b3882877ef17a48195f21693Affected
  • bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to before 1c5abcb13491da8c049f20462189c12c753ba978Affected
  • bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to before 7ef0423e43f877a328454059d46763043ce3da44Affected
  • bdc62f2bae8fb0e8e99574de5232f0a3c54a27df to before f87fb985452ab2083967103ac00bfd68fb182764Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.177 through 5.10.*Not affected
  • 5.15.105 through 5.15.*Not affected
  • 6.1.22 through 6.1.*Not affected
  • 6.2.9 through 6.2.*Not affected
  • 6.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.