# CVE-2023-53551: usb: gadget: u_serial: Add null pointer check in gserial_resume

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-04T15:16:57.736Z
- Modified: 2026-06-17T06:45:35.250Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

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

Consider a case where gserial_disconnect has already cleared
gser->ioport. And if a wakeup interrupt triggers afterwards,
gserial_resume gets called, which will lead to accessing of
gser->ioport and thus causing null pointer dereference.Add
a null pointer check to prevent this.

Added a static spinlock to prevent gser->ioport from becoming
null after the newly added check.

(As written by CVE List.)

## Affected

- Linux Linux: from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before c5360eec648bd506afa304ae4a71f82e13d41897; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 3b24c980dc07be4550a9d1450ed7057f882530e5; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before ec357cd3e8af614855d286dd378725cdc7264df6; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 44e004f757a7ae13dfebaadbcfdb1a6f98c10377; from aba3a8d01d623a5efef48ab8e78752d58d4c90c3 before 5ec63fdbca604568890c577753c6f66c5b3ef0b5; 5.8 (not affected: before 5.8; from 5.10.171 up to 5.10.*; from 5.15.97 up to 5.15.*; from 6.1.15 up to 6.1.*; from 6.2.2 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.8 before 5.10.171; from 5.11 before 5.15.97; from 5.16 before 6.1.15; from 6.2 before 6.2.2

## References

- <https://git.kernel.org/stable/c/c5360eec648bd506afa304ae4a71f82e13d41897> (patch)
- <https://git.kernel.org/stable/c/3b24c980dc07be4550a9d1450ed7057f882530e5> (patch)
- <https://git.kernel.org/stable/c/ec357cd3e8af614855d286dd378725cdc7264df6> (patch)
- <https://git.kernel.org/stable/c/44e004f757a7ae13dfebaadbcfdb1a6f98c10377> (patch)
- <https://git.kernel.org/stable/c/5ec63fdbca604568890c577753c6f66c5b3ef0b5> (patch)

## Sources

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

---

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