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 3BDA11DC985 for ; Thu, 1 May 2025 14:11:06 +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=1746108667; cv=none; b=QRUl6Q673y0By/SE+gGl7hnbfMj2HtWflX32AqdRl8E7yQ7uSXvzAB8pVKISJvBM8NFJfC8JwXlRLCWvyJw85wNtWow2gFa4rExF4/21+A7FGvzA0St0I6U94be4jwjT3klYuEXF2MHwI1xL6CfqDvFllSom8K78qR84s9vV5RY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108667; c=relaxed/simple; bh=rtzFJU5H4gk7Q1ebc9zK6vpqrSqzyM1ZjK5t8y3iFLM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hk+gLSb9IOFPc4csX6XXnG3MFpR1W4ThG/h5AfqRPHC6q2Z5vszAv1pxuBdx7UyJrJmIj09Uy2qr+/eqEV9RV06FzpV4Y+f/gL0h+e9NP0zbg6/Bv+C37i7HaPkbE+6+toDO8wUuKBQZ4H8xv8Vp7oYj/7Xp+ZuBbRZ0LqUNZCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jyMh0mrX; 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="jyMh0mrX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38CA2C4CEE3; Thu, 1 May 2025 14:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108666; bh=rtzFJU5H4gk7Q1ebc9zK6vpqrSqzyM1ZjK5t8y3iFLM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jyMh0mrXCDaDfnGNsGeeQzkdWARt0s9ih95jRKODpRC1WSteDnjlsGr/8ny3Up21s pfLiPBYXhUdwlp2ba/hrzmccy0NWHYwy9knD6dYWYWQduHMZXRN6AgwNVKXau9gw3E UvtAKc3WtmKM4JXp93hyLWRz7nATYI0Z6AetPzCg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49766: netlink: Bounds-check struct nlmsgerr creation Date: Thu, 1 May 2025 16:09:16 +0200 Message-ID: <2025050114-CVE-2022-49766-7b16@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=1998; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4tIOmvf5BgZqXIBsqXKzIjn8/mWz42fkQU0z6kC46Zo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDV0XNH5O/nuXK2zfmeNHdYP+vc9+V7L6q0yRVf4eF R79ky9kOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiWyMZFizadKPWJvRembxq dS7v0s1Lnsp0MjAsaBOVl5LWuOtx5bz/x4mtsw0amkXuAgA= 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: netlink: Bounds-check struct nlmsgerr creation In preparation for FORTIFY_SOURCE doing bounds-check on memcpy(), switch from __nlmsg_put to nlmsg_put(), and explain the bounds check for dealing with the memcpy() across a composite flexible array struct. Avoids this future run-time warning: memcpy: detected field-spanning write (size 32) of single field "&errmsg->msg" at net/netlink/af_netlink.c:2447 (size 16) The Linux kernel CVE team has assigned CVE-2022-49766 to this issue. Affected and fixed versions =========================== Fixed in 6.0.10 with commit aff4eb16f589c3af322a2582044bca365381fcd6 Fixed in 6.1 with commit 710d21fdff9a98d621cd4e64167f3ef8af4e2fd1 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-2022-49766 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/ipset/ip_set_core.c net/netlink/af_netlink.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/aff4eb16f589c3af322a2582044bca365381fcd6 https://git.kernel.org/stable/c/710d21fdff9a98d621cd4e64167f3ef8af4e2fd1