CVE-2026-90057: slip: remove slip_hangup() to fix use-after-free in slip_receive_buf()

Published Sep 17, 2026
·
Updated

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

slip: remove sliphangup() to fix use-after-free in slipreceivebuf()

Jaeyoung Chung and Eulgyu Kim reported a slab-use-after-free read in slipreceivebuf() when racing against tty hangup.

ttyldischangup() calls ld->ops->hangup() while holding only a read lock on tty->ldiscsem (via ttyldiscref()). Because sliphangup() simply called slipclose(), it ran concurrently with reader functions such as slipreceivebuf().

slipclose() unregisters and frees the net device and its private struct slip, causing concurrent reader threads in slipreceivebuf() to dereference freed memory.

Line discipline close() is already guaranteed to be called under the write lock of tty->ldiscsem during hangup processing (in ttyldiscreinit() or ttyldisckill()).

Remove sliphangup() so teardown is serialized cleanly by slipclose().

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Remove slip_hangup() so teardown is serialized cleanly by slip_close(), preventing the slab-use-after-free read in slip_receive_buf() when racing against tty hangup.

    Linux kernel slip line discipline Remove slip_hangup() = disabled (removed)

Event History

Sep 17, 2026
CVE Published
via MITRE·04:05 PM
Data Sourced
via MITRE·04:05 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel SLIP line discipline are affected when SLIP receive processing can race with a TTY hangup. The vulnerable path involves concurrent execution of slip_receive_buf() and teardown of the SLIP network device.

2

What causes the unsafe concurrency?

During TTY hangup, tty_ldisc_hangup() invoked the line discipline hangup callback while holding only a read lock on tty->ldisc_sem. The SLIP hangup callback called slip_close(), which could free the SLIP device and private data while receive-buffer readers were still using it.

3

How does the resolved implementation prevent the race?

The fix removes slip_hangup() so that teardown occurs through line-discipline close handling. Close processing is guaranteed to run under the write lock of tty->ldisc_sem, serializing teardown against reader functions such as slip_receive_buf().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203