CVE-2026-90057: slip: remove slip_hangup() to fix use-after-free in slip_receive_buf()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
slip: remove slip_hangup() to fix use-after-free in slip_receive_buf()
Jaeyoung Chung and Eulgyu Kim reported a slab-use-after-free read in slip_receive_buf() when racing against tty hangup.
tty_ldisc_hangup() calls ld->ops->hangup() while holding only a read lock on tty->ldisc_sem (via tty_ldisc_ref()). Because slip_hangup() simply called slip_close(), it ran concurrently with reader functions such as slip_receive_buf().
slip_close() unregisters and frees the net device and its private struct slip, causing concurrent reader threads in slip_receive_buf() to dereference freed memory.
Line discipline close() is already guaranteed to be called under the write lock of tty->ldisc_sem during hangup processing (in tty_ldisc_reinit() or tty_ldisc_kill()).
Remove slip_hangup() so teardown is serialized cleanly by slip_close().
The Linux kernel CVE team has assigned CVE-2026-90057 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.1.188 with commit 9a3b1edff1ecb47d323f2506b3ffc22178acd1c6 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.6.157 with commit a2dbac3fb03b4427ccf057debc83fc61ee102529 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.12.110 with commit de1f978c0f6ab42b28192d74dc59af52fdc76135 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.18.52 with commit ddbc5dc5a2e29b3934da09c1ba3c930fd8a40fd6 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 7.2.6 with commit a540a49fcca59d1c92c3a6462e67ca21676a88df Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 7.3-rc1 with commit 23c53269f2baaedf2d92784290cb9ef6db2a3bce
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90057
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/slip/slip.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9a3b1edff1ecb47d323f2506b3ffc22178acd1c6 https://git.kernel.org/stable/c/a2dbac3fb03b4427ccf057debc83fc61ee102529 https://git.kernel.org/stable/c/de1f978c0f6ab42b28192d74dc59af52fdc76135 https://git.kernel.org/stable/c/ddbc5dc5a2e29b3934da09c1ba3c930fd8a40fd6 https://git.kernel.org/stable/c/a540a49fcca59d1c92c3a6462e67ca21676a88df https://git.kernel.org/stable/c/23c53269f2baaedf2d92784290cb9ef6db2a3bce