lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJrf6-b4Qc074cpQCghab7Vu-=0XcNqnhccE5hJc46oXA@mail.gmail.com>
Date: Thu, 31 Aug 2023 09:58:48 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Paolo Abeni <pabeni@...hat.com>
Cc: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org, 
	eric.dumazet@...il.com, syzbot <syzkaller@...glegroups.com>, 
	Chuck Lever <chuck.lever@...cle.com>
Subject: Re: [PATCH net] net/handshake: fix null-ptr-deref in handshake_nl_done_doit()

On Thu, Aug 31, 2023 at 9:55 AM Paolo Abeni <pabeni@...hat.com> wrote:
>
> On Mon, 2023-08-28 at 09:13 +0000, Eric Dumazet wrote:
> > We should not call trace_handshake_cmd_done_err() if socket lookup has failed.
>
> I think Chuck would like to have a tracepoint for all the possible
> handshake_nl_done_doit() failures, but guess that could be added later
> on net-next, possibly refactoring the arguments list (e.g. adding an
> explicit fd arg, and passing explicitly a NULL sk).
>
> > Also we should call trace_handshake_cmd_done_err() before releasing the file,
> > otherwise dereferencing sock->sk can return garbage.
> >
> > This also reverts 7afc6d0a107f ("net/handshake: Fix uninitialized local variable")
>
> I can be low on coffee, but
>
>         struct handshake_req *req = NULL;
>
> is still there after this patch ?!?

Hmmm, it seems I forgot to actually commit this part :)

I will send a v2.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ