Thread (2 messages) 2 messages, 2 authors, 2023-12-12

Re: [PATCH v4] net/rose: Fix Use-After-Free in rose_ioctl

From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-12-12 12:50:24
Also in: linux-hams

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni [off-list ref]:

On Sat, 9 Dec 2023 05:05:38 -0500 you wrote:
Because rose_ioctl() accesses sk->sk_receive_queue
without holding a sk->sk_receive_queue.lock, it can
cause a race with rose_accept().
A use-after-free for skb occurs with the following flow.
rose_ioctl() -> skb_peek()
rose_accept() -> skb_dequeue() -> kfree_skb()
Add sk->sk_receive_queue.lock to rose_ioctl() to fix this issue.

[...]
Here is the summary with links:
  - [v4] net/rose: Fix Use-After-Free in rose_ioctl
    https://git.kernel.org/netdev/net/c/810c38a369a0

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help