Re: [RESEND PATCH] nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect
From: patchwork-bot+netdevbpf
Date: Tue Jun 01 2021 - 01:53:19 EST
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Mon, 31 May 2021 09:21:38 +0200 you wrote:
> It's possible to trigger NULL pointer dereference by local unprivileged
> user, when calling getsockname() after failed bind() (e.g. the bind
> fails because LLCP_SAP_MAX used as SAP):
>
> BUG: kernel NULL pointer dereference, address: 0000000000000000
> CPU: 1 PID: 426 Comm: llcp_sock_getna Not tainted 5.13.0-rc2-next-20210521+ #9
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1 04/01/2014
> Call Trace:
> llcp_sock_getname+0xb1/0xe0
> __sys_getpeername+0x95/0xc0
> ? lockdep_hardirqs_on_prepare+0xd5/0x180
> ? syscall_enter_from_user_mode+0x1c/0x40
> __x64_sys_getpeername+0x11/0x20
> do_syscall_64+0x36/0x70
> entry_SYSCALL_64_after_hwframe+0x44/0xae
>
> [...]
Here is the summary with links:
- [RESEND] nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect
https://git.kernel.org/netdev/net/c/4ac06a1e013c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html