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 902BC1AAE01 for ; Wed, 16 Apr 2025 14:17:56 +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=1744813076; cv=none; b=eus4gyGLDZ2Ba2Sob7JRnZc9aUaOFjST98d7wLTRn2fMlA/QkaNs7WynOUtXV9CB45XCMnuAvHHRfqnjHszsjKE6lvKm0skTnslmZmViROe7W9off4y4kVpm5wCebkd4UBjWiLQN4NMffuEWMHYZMW4vzJcw8Cw188Ux3Fo1KhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813076; c=relaxed/simple; bh=wsqoBvdLUeS6sl07tPBSSH+zA+qLCgQKZ6PqLaAhT8I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uOIdgHjg0upwIRErCKWel4jbyB1hugomqWmctvAcy3xIKe/aVIgiY0JBcUx5p+1/Agp+Qy27Gv2L6EhmRacH82pQ+pt4ek379UWZkm04LLd0Z11dHEg0gAgd947X7DhU/jssJ8fe2wJinqHeORA2Gt1QLi18VnUz/mTHtpLUBlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V7oeE1LU; 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="V7oeE1LU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2FDDC4CEE2; Wed, 16 Apr 2025 14:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813076; bh=wsqoBvdLUeS6sl07tPBSSH+zA+qLCgQKZ6PqLaAhT8I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V7oeE1LUrJhKlt0F0eMnfEOaqkVtxpKlGv+shijKmYNp8pDt9KZzW4GG1xkX7Issd L0bd6osquUw1rvxPccow/D5dIXStx7LXolOypCpyflkcNahwYHq1R3s8uRkMgBi7zv sHd/+lYGb/wuQokD1EYh1MzFND/hepGgCmYIQuJ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22110: netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error Date: Wed, 16 Apr 2025 16:13:21 +0200 Message-ID: <2025041624-CVE-2025-22110-6a28@gregkh> X-Mailer: git-send-email 2.49.0 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=2162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wsqoBvdLUeS6sl07tPBSSH+zA+qLCgQKZ6PqLaAhT8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d50IWNXLkXqiJ/sGi2iIxUkRluOpfmdXJXIdZzXXd ZjqJLGhI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby8DrD/Mq1AY8cX7Mue59k 2iviPPNQqKVNGMMcTm71Uw+PHVj4xT39tkz8LH/1s1cmAwA= 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: nfnetlink_queue: Initialize ctx to avoid memory allocation error It is possible that ctx in nfqnl_build_packet_message() could be used before it is properly initialize, which is only initialized by nfqnl_get_sk_secctx(). This patch corrects this problem by initializing the lsmctx to a safe value when it is declared. This is similar to the commit 35fcac7a7c25 ("audit: Initialize lsmctx to avoid memory allocation error"). The Linux kernel CVE team has assigned CVE-2025-22110 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 2d470c778120d3cdb8d8ab250329ca85f49f12b1 and fixed in 6.14.2 with commit ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759 Issue introduced in 6.14 with commit 2d470c778120d3cdb8d8ab250329ca85f49f12b1 and fixed in 6.15-rc1 with commit 778b09d91baafb13408470c721d034d6515cfa5a 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-2025-22110 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/nfnetlink_queue.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/ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759 https://git.kernel.org/stable/c/778b09d91baafb13408470c721d034d6515cfa5a