What’s Vulnerable › Vulnerabilities
CVE-2023-53356: usb: gadget: u_serial: Add null pointer check in gserial_suspend
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-17 · updated 2026-06-17
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 5.8 before 5.10.188; from 5.11 before 5.15.121; from 5.16 before 6.1.39; from 6.2 before 6.4.4 — fixed in 5.10.188, 5.15.121, 6.1.39, 6.4.4
How to fix
Upgrade to a fixed version: Linux kernel 5.10.188, 5.15.121, 6.1.39, 6.4.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2788a3553f7497075653210b42e2aeb6ba95e28e
- https://git.kernel.org/stable/c/2f6ecb89fe8feb2b60a53325b0eeb9866d88909a
- https://git.kernel.org/stable/c/374447e3367767156405bedd230c5d391f4b7962
- https://git.kernel.org/stable/c/a8ea7ed644cbf6314b5b0136b5398754b549fb8f
- https://git.kernel.org/stable/c/e60a827ac074ce6bd58305fe5a86afab5fce6a04
Get alerted when CVE-2023-53356 or the next vulnerability affects your stack