# Re: \[PATCH net\] slip: remove slip\_hangup() to fix use-after-free in slip\_receive\_buf()

- From: patchwork-bot+netdevbpf@kernel.org
- Date: 2026-08-27 19:51:03 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/08/17471564
- Thread: https://ratatoskr.run/netdev/2026/08/17464067/t.md

```text
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [ref]:

On Wed, 26 Aug 2026 10:52:38 +0000 you wrote:
> 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().
> 
> [...]

Here is the summary with links:
  - [net] slip: remove slip_hangup() to fix use-after-free in slip_receive_buf()
    https://git.kernel.org/netdev/net/c/23c53269f2ba

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


```
