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: <9a7440ca-05dd-7ff6-0fa0-a96afc9ed780@redhat.com>
Date:   Wed, 16 May 2018 15:32:59 +0800
From:   Jason Wang <jasowang@...hat.com>
To:     Andrei Vagin <avagin@...tuozzo.com>, netdev@...r.kernel.org
Subject: Re: linux-next: BUG: KASAN: use-after-free in tun_chr_close



On 2018年05月16日 15:12, Andrei Vagin wrote:
> Hi Jason,
>
> I think the problem is in "tun: hold a tun socket during ptr_ring_cleanup".
>
> Pls take a look at the attached patch.

Yes.

It looks to me it's not necessary to take extra refcnt during release, 
we can just do the cleanup at __tun_detach().

Could you help to test the attached patch?

Thanks


View attachment "0001-tuntap-fix-use-after-free-during-release.patch" of type "text/x-patch" (1363 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ