In the Linux kernel, the following vulnerability has been resolved: usb: gadget: userial: fix NULL deref in gsclose() after failed open…
CVE-2026-142985
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: userial: fix NULL deref in gsclose() after failed open gsclose() opens with struct gsport port = tty->driverdata; ... spinlockirq(&port->portlock); and never checks port. gsopen() assigns tty->driverdata only on the port.count 0 -> 1 edge, so any failure earlier in gsopen() leaves it NULL, and ttyopen() calls ttyrelease(), and hence ->close(), when ->open() fails. syzbot hit exactly this on arm64. Fault injection failed the kfifoalloc() of the write buffer in gsopen(): kfifoallocnode+0x10c/0x208 lib/kfifo.c:44 gsopen+0x144/0x514 drivers/usb/gadget/function/userial.c:636 ttyopen+0x404/0x89c drivers/tty/ttyio.c:2137 and the tty core's close of the failed open then took portlock through the NULL port: BUG: unable to handle kernel paging request in gsclose KASAN: null-ptr-deref in range [0x00000000000003a0-0x00000000000003a7] Call trace: spinlockirq include/linux/spinlock.h:372 [inline] gsclose+0xac/0x65c drivers/usb/gadget/function/userial.c:698 ttyrelease+0x2c4/0xffc drivers/tty/ttyio.c:1745 ttyopen+0x46c/0x89c drivers/tty/ttyio.c:2146 Return early instead. There is nothing to release when the open…
Assessment
- CVSS
- Not yet scored
- Severity
- Unscored
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 3 December 2026
- Last updated
- 3 December 2026
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
At the source
References
- https://git.kernel.org/stable/c/63b69946c0de838af7324a504766fa13ad947d3d
- https://git.kernel.org/stable/c/ce8c7b4b562aa7c3847145dc2e3a2d0953a054b2
- https://git.kernel.org/stable/c/d010585071193e268c4152df2b3281255280529b
- https://git.kernel.org/stable/c/ea6cf69ad03c8d85138830c0d2c3b946b5ae231d
- https://git.kernel.org/stable/c/ea6e4e3a7c8453674337c7773cf3b101f328c876
- https://git.kernel.org/stable/c/ece1756e054ffcb38a8aab7d0ab7d0e02e65dd99
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-142985