CVE-2023-53356

usb: gadget: u_serial: Add null pointer check in gserial_suspend

State
Published
Severity
5.5 Medium
Published
Sep 17, 2025
Updated
May 11, 2026
Reserved
Sep 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: u_serial: Add null pointer check in gserial_suspend

Consider a case where gserial_disconnect has already cleared gser->ioport. And if gserial_suspend gets called afterwards, it will lead to accessing of gser->ioport and thus causing null pointer dereference.

Avoid this by adding a null pointer check. Added a static spinlock to prevent gser->ioport from becoming null after the newly added null pointer check.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • aba3a8d01d623a5efef48ab8e78752d58d4c90c3 to before 2788a3553f7497075653210b42e2aeb6ba95e28eAffected
  • aba3a8d01d623a5efef48ab8e78752d58d4c90c3 to before a8ea7ed644cbf6314b5b0136b5398754b549fb8fAffected
  • aba3a8d01d623a5efef48ab8e78752d58d4c90c3 to before e60a827ac074ce6bd58305fe5a86afab5fce6a04Affected
  • aba3a8d01d623a5efef48ab8e78752d58d4c90c3 to before 374447e3367767156405bedd230c5d391f4b7962Affected
  • aba3a8d01d623a5efef48ab8e78752d58d4c90c3 to before 2f6ecb89fe8feb2b60a53325b0eeb9866d88909aAffected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 5.10.188 through 5.10.*Not affected
  • 5.15.121 through 5.15.*Not affected
  • 6.1.39 through 6.1.*Not affected
  • 6.4.4 through 6.4.*Not affected
  • 6.5 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.