From: Balazs Scheidler Subject: Re: oops in replace_in_hashes Date: Fri, 25 Jul 2003 19:35:56 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030725173555.GA7458@balabit.hu> References: <20030725085731.GA5776@balabit.hu> <20030725135020.GA6433@balabit.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: netfilter-devel@lists.netfilter.org Return-path: To: Martin Josefsson Content-Disposition: inline In-Reply-To: <20030725135020.GA6433@balabit.hu> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org > As I see it is quite unlikely that the same memory area is used for > different purposes when a kmem_cache is used, as kmem_cache tries to reuse > blocks. I therefore think that we face a use-after-free conntrack scenario. > > Any other thoughts, hints? One little addition, which might prove to be important, is that the bogus next pointer which is tried to be dereferenced contains the IP address of the last SNAT mapping that was being made. The manips array of the ip_nat_info structure is only a couple of bytes away, hm... -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1