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 CCE8219CC0A for ; Thu, 27 Mar 2025 16:43:49 +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=1743093829; cv=none; b=e/48DJXLHtCg7eFA5EzqwR+5Tr7XznRXKyL1K8KdZjQfl4BIpRy31w95oDACC2zLWSNZHW9YwyA5X3O8+CaZjT6n/IRXrAVBuElZ6dwh9HFNZK7U0ihE9P6MBB6Wf5hd8FsjT7DJ3XSYKh8pZwMm5JEgwS9cx7UEzPgOJw7P7Ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093829; c=relaxed/simple; bh=dpCNo3qXfzJvwP3z3BifY83qM9J4Ga8c0aQYuST7x/A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jj0a0/BAmVg1zvM6DsJDJEjOKl5w8NEXdifwyVw6ZulQudyZvT2mAFYZieCcDXBRjea2jYgm+IAekm72ny/8JCt6se6ccIjv7jhyXAJDkIRiiQ02uTOrlgjXwQeNGWFItiHNgb1YJhdu7EAVCJtwmnZVpKkYazjZxw4rKdLzBPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FE4RRhpN; 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="FE4RRhpN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AA18C4CEE8; Thu, 27 Mar 2025 16:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093829; bh=dpCNo3qXfzJvwP3z3BifY83qM9J4Ga8c0aQYuST7x/A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FE4RRhpNbVBgUEUdy4d+o0JiAhREkgQSPanHSSBoNV4hjBk4luQC2kbsF0oRANJIo lxaRs8xXa6i2jk9jwgWz72OFId8T65gpb8U7sXcemXG3r/E3AlCgXhQ03C+34XKDky t/WDAg4pUN29J5KORWiPr6/HC3l4aUhIHWqVyxGY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49754: Bluetooth: Fix a buffer overflow in mgmt_mesh_add() Date: Thu, 27 Mar 2025 17:43:12 +0100 Message-ID: <2025032701-CVE-2022-49754-cc36@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=2135; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dpCNo3qXfzJvwP3z3BifY83qM9J4Ga8c0aQYuST7x/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG0SvzGiRKP8eaOP+WWHWXJ313w/cdalviw+p/HLz6 LL8V5vMOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiBRcYFixS2rMkuHhqV9Dj yrvWJlM2pstFcDAsWPcyevbcmjnMzqZ/kndse7qkWE/KFgA= 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: Bluetooth: Fix a buffer overflow in mgmt_mesh_add() Smatch Warning: net/bluetooth/mgmt_util.c:375 mgmt_mesh_add() error: __memcpy() 'mesh_tx->param' too small (48 vs 50) Analysis: 'mesh_tx->param' is array of size 48. This is the destination. u8 param[sizeof(struct mgmt_cp_mesh_send) + 29]; // 19 + 29 = 48. But in the caller 'mesh_send' we reject only when len > 50. len > (MGMT_MESH_SEND_SIZE + 31) // 19 + 31 = 50. The Linux kernel CVE team has assigned CVE-2022-49754 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.1.9 with commit ed818fd8c531abf561b379995ee7cc4c68029464 Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.2 with commit 2185e0fdbb2137f22a9dd9fcbf6481400d56299b 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-49754 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/bluetooth/mgmt_util.h 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/ed818fd8c531abf561b379995ee7cc4c68029464 https://git.kernel.org/stable/c/2185e0fdbb2137f22a9dd9fcbf6481400d56299b