# CVE-2023-53356: usb: gadget: u_serial: Add null pointer check in gserial_suspend

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-09-17T14:56:46.113Z
- Modified: 2026-06-17T06:44:59.380Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 2788a3553f7497075653210b42e2aeb6ba95e28e; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before a8ea7ed644cbf6314b5b0136b5398754b549fb8f; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before e60a827ac074ce6bd58305fe5a86afab5fce6a04; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 374447e3367767156405bedd230c5d391f4b7962; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 2f6ecb89fe8feb2b60a53325b0eeb9866d88909a; 5.8 (not affected: before 5.8; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.39 up to 6.1.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux 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

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2788a3553f7497075653210b42e2aeb6ba95e28e> (patch)
- <https://git.kernel.org/stable/c/a8ea7ed644cbf6314b5b0136b5398754b549fb8f> (patch)
- <https://git.kernel.org/stable/c/e60a827ac074ce6bd58305fe5a86afab5fce6a04> (patch)
- <https://git.kernel.org/stable/c/374447e3367767156405bedd230c5d391f4b7962> (patch)
- <https://git.kernel.org/stable/c/2f6ecb89fe8feb2b60a53325b0eeb9866d88909a> (patch)

## Sources

- CVE List: [CVE-2023-53356](https://www.cve.org/CVERecord?id=CVE-2023-53356), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53356](https://nvd.nist.gov/vuln/detail/CVE-2023-53356), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53356 · Whole record: https://cve.day/CVE-2023-53356.json · Rebuilt by cve.day 2026-11-25T22:58:34.847Z
