Bug 2396123 (CVE-2023-53356) - CVE-2023-53356 kernel: usb: gadget: u_serial: Add null pointer check in gserial_suspend
Summary: CVE-2023-53356 kernel: usb: gadget: u_serial: Add null pointer check in gseri...
Keywords:
Status: NEW
Alias: CVE-2023-53356
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-17 15:02 UTC by OSIDB Bzimport
Modified: 2025-09-17 18:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-17 15:02:40 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.