Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 69F1818E022 for ; Fri, 27 Sep 2024 12:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441074; cv=none; b=p3bFbXjqToJqnxTPb2w+KvfoU2puol1+zh2fq2SYlfVooxWbZsgzG8pxDAILfWn30frmsh6GYObESedxAya8U2c73qP81rRCbb0fErV84wMyh9OwcwtXyBBF7tyZh+4J3DDDsTt5cFeEI1ljLlVG9UOMcqT7WkRswyQvYcUvxZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441074; c=relaxed/simple; bh=RCbeV7/dgDRlgRx2h8ueGQIYd1dxDfY0ULPDDdvhB78=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=trqxgVIGv92JFHPD9DyZtCOy8CAWrgL9/Maq1S5NC72pTiZGbhxR+PsxkLn7HJ1wQJebAjFEo/nZPYxXy59ooEbi/orIqCOj+BGCrHc/5qJ90mFMh95tbRq4xdEJXEyN7MZynX8NSYXkYIDNDF4cTfxwtrERyHgdIfCLIMsTyKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Boohwh9a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Boohwh9a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C4CC4CEC4; Fri, 27 Sep 2024 12:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727441073; bh=RCbeV7/dgDRlgRx2h8ueGQIYd1dxDfY0ULPDDdvhB78=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Boohwh9a9BVnEsKKqX8waEl848L8q8cmFgUVVuKNtSkwpWXVtwyEZR9UuD1GGbd1c tFdsBFocHQvbq8TCIOMYeJ9IcyXJO8NhBzosHJRZDNtdhwNOYzHrhlVgAqT2KiIRJ3 cBjUUWKzaxKlKwcly9serT4Ig28cXlm5v98eVmZs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46855: netfilter: nft_socket: fix sk refcount leaks Date: Fri, 27 Sep 2024 14:43:48 +0200 Message-ID: <2024092743-CVE-2024-46855-4382@gregkh> X-Mailer: git-send-email 2.46.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2137; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RCbeV7/dgDRlgRx2h8ueGQIYd1dxDfY0ULPDDdvhB78=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfVtQL7rr+eqlWm33xo7XbztY3r5u7T9etY3n6TRXjN 3tq1VdM7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJtHQzzPe9+Mvz9ZF9VUnz 1ZtuCigdO3osyY5hQVf87BkRy77tCuWp9q9L274hTfbYGgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_socket: fix sk refcount leaks We must put 'sk' reference before returning. The Linux kernel CVE team has assigned CVE-2024-46855 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 039b1f4f24ec and fixed in 6.1.111 with commit 33c2258bf8cb Issue introduced in 5.3 with commit 039b1f4f24ec and fixed in 6.6.52 with commit 83e6fb59040e Issue introduced in 5.3 with commit 039b1f4f24ec and fixed in 6.10.11 with commit 1f68e097e20d Issue introduced in 5.3 with commit 039b1f4f24ec and fixed in 6.11 with commit 8b26ff7af8c3 Issue introduced in 4.19.76 with commit 6934809432d2 Issue introduced in 5.2.18 with commit f63432cd1bb2 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-2024-46855 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_socket.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/33c2258bf8cb17fba9e58b111d4c4f4cf43a4896 https://git.kernel.org/stable/c/83e6fb59040e8964888afcaa5612cc1243736715 https://git.kernel.org/stable/c/1f68e097e20d3c695281a9c6433acc37be47fe11 https://git.kernel.org/stable/c/8b26ff7af8c32cb4148b3e147c52f9e4c695209c