From mboxrd@z Thu Jan 1 00:00:00 1970 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 17F1A2741D1 for ; Sat, 9 Aug 2025 14:30:50 +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=1754749851; cv=none; b=f3kN/RJ9EZHkXeQkMMPkMzqZoBYStfMYGvAtgDUXSrBWc+OSUhgNPE7lgaEC0GugXwPVUXdSWaD3mjIUlcSS3BiT0edWEaUIxduyS3h5JGUnhfv6PHOi9JtLmM4xqGk+7PCDnI4kU5itXlZY8OxgKf02lIJuEKyCew5RnVGG7SA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754749851; c=relaxed/simple; bh=2JvWF4F1PIfCOO6KRMCAMX7wPdj2ezHLTUB4UySUOZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sXqMcu9Mna3E4+jAjJlfaI1Mwg6uzQWfvTwJj+/8Q6tvhodxy9QM0Z+s5hWnVFpBiphby608dwdfBKdnHHElY8ha9Vb46o03PaVPdm6+T4FreI5z9gH+p0A0cKVGnrWCEJ0lrDhwdlDFIFvKGkdk63eZDjwySBBaN6w+L5b4PQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w6uxEkgf; 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="w6uxEkgf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C78C4CEE7; Sat, 9 Aug 2025 14:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1754749850; bh=2JvWF4F1PIfCOO6KRMCAMX7wPdj2ezHLTUB4UySUOZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w6uxEkgfISm4RknqMJiZPe9jWS1zmj535+jaIjSWO/7jUjXs1jZPoeUoqvTAONEUl cHMoFmycpx3J1Y2kAY1dZzJolcTmoUSXRorrsNAcloBj1JVIQXjYdnStdl74ry0hae /aBBDD8d1bY81yl4kF4j75YT7XdmFLNNM3SX4Zg0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50233: Bluetooth: eir: Fix using strlen with hdev->{dev_name,short_name} Date: Sat, 9 Aug 2025 16:30:45 +0200 Message-ID: <2025080944-CVE-2022-50233-8366@gregkh> X-Mailer: git-send-email 2.50.1 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=1663; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B2hHthZhtLUzEr8qf8cfPvvqvj7i7QvE703nXj4CzCw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnTo6eEX/wYZ2ISrZB44FLW8u13Pgqaz/1m7Tr1wRfdv MWXpaZWdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBERN8xLNj1ee3bmnb1zamR J4rvM0iVLPm9RJRhweVD2cJZwctdo7PNZ5frf75tqva6FgA= 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: Bluetooth: eir: Fix using strlen with hdev->{dev_name,short_name} Both dev_name and short_name are not guaranteed to be NULL terminated so this instead use strnlen and then attempt to determine if the resulting string needs to be truncated or not. The Linux kernel CVE team has assigned CVE-2022-50233 to this issue. Affected and fixed versions =========================== Fixed in 6.0 with commit dd7b8cdde098cf9f7c8de409b5b7bbb98f97be80 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-50233 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/eir.c net/bluetooth/mgmt.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/dd7b8cdde098cf9f7c8de409b5b7bbb98f97be80