CVE-2023-53356

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

Medium · published September 17, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
8.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00190 · 8.2th percentile
Published
2025-09-17T14:56Z
EPSS history
Timeline
  • 17 SEP 14:56Z
    usb: gadget: u_serial: Add null pointer check in gserial_suspend
    cvelistv5