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
Reply to
Eric Dumazet, 2026-08-26
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list 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

Thread (2 messages) 2 messages, 2 authors, last reply 2026-08-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help