Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6DFD383984 for ; Thu, 25 Jun 2026 08:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377203; cv=none; b=pVcW14kIyWeAMJQPdfA+oUECYXVl/qLPSrVmDFCFKsGOKbB1nrWs8Y3tAzQC+6YBaJtsGB4fOrn5naL80C7F/ETziitjGNk80AhvmHjQ6NiKbHFVqUbDDxGV79+SXmpYKlPFo8hpPFhtntcdPX3fJu+HQ4Su3povyBIixFwjuEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377203; c=relaxed/simple; bh=txRHoXyCzdZX8u1eii2D6Ew4nPI0BbtoGmeaJMrKKVg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lJ4/ST3BI1+yM8lX7rEtNiR6u9CVg4QRGvsLeLy1rkMUEh3RqCzzZUt5XA4d4tSGRKF7L127OLQLb0BOUo1qTX1Vp8U9H9rVZQyKosShGUq9C7NIegXcbeyoFzaN7dkXwU31RzLmgk5dt9L+DTqCDe7t5OU8F68nmjjAZiIbWzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vtjND3zo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vtjND3zo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 170A21F000E9; Thu, 25 Jun 2026 08:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377202; bh=ub0kbGQIraWoGPJpLHTayRlNY5W5ToclQbYlOPJ/d/M=; h=From:To:Cc:Subject:Date:Reply-To; b=vtjND3zoa5eg1c7X6Jm7Nk5S+HZsKGegdmVnAenQc8OT6KWG54nXF8mrLPUcSJgX8 UoQkhjbOGrAaovCGRgFFhfEj6Y9eQpIM2rte/L5xyzRF+9vDKe2qrEnIcNPknHIKr8 1ubIxFVT1Ne/q6O3mywYDH404yX065YMcdXxbqyI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53212: netfilter: nft_tunnel: fix use-after-free on object destroy Date: Thu, 25 Jun 2026 09:41:00 +0100 Message-ID: <2026062503-CVE-2026-53212-ce23@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3726; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BpRDQcZcXs/pgdbwfMa1R91n2bt2sRiT9tCIcNeqq5s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L5PtTkkIvp3AUSHL+VUwKN9pVqZl957j/C4miYEVW 8MvOjl0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwER+lTLMs8goMd5eHic7v+iu sfFndrmamTz3GeYpZpp83MWsqG+zpNRl06J58hnbzq4HAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_tunnel: fix use-after-free on object destroy nft_tunnel_obj_destroy() calls metadata_dst_free() which directly kfree()s the metadata_dst, ignoring the dst_entry refcount. Packets that took a reference via dst_hold() in nft_tunnel_obj_eval() and are still queued (e.g. in a netem qdisc) are left with a dangling pointer. When these packets are eventually dequeued, dst_release() operates on freed memory. Replace metadata_dst_free() with dst_release() so the metadata_dst is freed only after all references are dropped. The dst subsystem already handles metadata_dst cleanup in dst_destroy() when DST_METADATA is set. The Linux kernel CVE team has assigned CVE-2026-53212 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 5.10.259 with commit 349df61526d2e39decc685d246202e3e284cfe05 Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 5.15.210 with commit 55b79b1ae42372012413ce0413181d26679b17ef Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 6.1.176 with commit 5e9ee18b27fde88cb6148202b33916c66693fe82 Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 6.6.143 with commit 8767fe4079affa74314d7eb3220e700150289842 Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 6.12.94 with commit fda6573a46ad24f35348e024905ee5bdf729797e Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 6.18.36 with commit 941d7394efda5e054e2d6f3e0dd0f6a9ba19aaa3 Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 7.0.13 with commit f9a0e4b61054cde89a2a77845293c726cc07cc43 Issue introduced in 4.19 with commit af308b94a2a4a5a27bec9028354c4df444a7c8ba and fixed in 7.1 with commit c32b26aaa2f9216520a38b3f4bfeec846eb3eb8a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53212 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/netfilter/nft_tunnel.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/349df61526d2e39decc685d246202e3e284cfe05 https://git.kernel.org/stable/c/55b79b1ae42372012413ce0413181d26679b17ef https://git.kernel.org/stable/c/5e9ee18b27fde88cb6148202b33916c66693fe82 https://git.kernel.org/stable/c/8767fe4079affa74314d7eb3220e700150289842 https://git.kernel.org/stable/c/fda6573a46ad24f35348e024905ee5bdf729797e https://git.kernel.org/stable/c/941d7394efda5e054e2d6f3e0dd0f6a9ba19aaa3 https://git.kernel.org/stable/c/f9a0e4b61054cde89a2a77845293c726cc07cc43 https://git.kernel.org/stable/c/c32b26aaa2f9216520a38b3f4bfeec846eb3eb8a