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 A47CB208D7 for ; Mon, 20 May 2024 09:42:53 +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=1716198173; cv=none; b=JttJDwjyMhoNNAij+/LQivp3xJ4QD8/IRGpp55LTou7jIyKFouQVRrh89l5OGK535O9BniLN661VnWXjK3OF3enBC6bMSfzncDOVsmnfN42Xn7RDPu/dzP28qvpq68vRjiiX8Hqlj6hf/4sZnkALS2w5F/6q0muDl7k00xsatw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198173; c=relaxed/simple; bh=AnVsATLiWgDb2SLwHPnqU57AAbLhGaF2BrrDRFNGJdo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PWXZ/JBOpJl6IQQO/WdC0HYl6cMocgD1XGYvQB5tji2SE03/zzpZyTvQsPbVejHLnwCkfsQXfXqjaomw3qaLNt055IrWNTQeS65edG4nGEtcjlV69zxVo+0SAVCUDH6CUxX51tezDT29euB0eEjL4WOKBZJShDMs67O0llWjWRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JQ6rmjSe; 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="JQ6rmjSe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 181F4C2BD10; Mon, 20 May 2024 09:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198173; bh=AnVsATLiWgDb2SLwHPnqU57AAbLhGaF2BrrDRFNGJdo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JQ6rmjSe3VxOuaE4EmHYcG0CrG/sykQFztvKhKfVfwe1f3mkkaSpEfJuX+5ndHY7g G9NFfGoOa8mV+wFQOsV+QqrmdOapmaLeW7NbKr92uWVSoqoAUupo7LRO+HE5limJCg kBpMi/ywCcDLeCDMJkswX55Xn7dpvAlOpiaM8vOw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35966: Bluetooth: RFCOMM: Fix not validating setsockopt user input Date: Mon, 20 May 2024 11:42:31 +0200 Message-ID: <2024052021-CVE-2024-35966-e107@gregkh> X-Mailer: git-send-email 2.45.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=2223; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AnVsATLiWgDb2SLwHPnqU57AAbLhGaF2BrrDRFNGJdo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneUv/85hs0u9eG5Z6+la/mar5OQmqtv3jk0bayfebnG n7uZJ/eEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPx+8WwYO0045wND72asrZu 2C975kP46XdyXgyz2aY4uBpufTYn0C1kx9bzvGk+nQysAA== 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: RFCOMM: Fix not validating setsockopt user input syzbot reported rfcomm_sock_setsockopt_old() is copying data without checking user input length. BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt_old net/bluetooth/rfcomm/sock.c:632 [inline] BUG: KASAN: slab-out-of-bounds in rfcomm_sock_setsockopt+0x893/0xa70 net/bluetooth/rfcomm/sock.c:673 Read of size 4 at addr ffff8880209a8bc3 by task syz-executor632/5064 The Linux kernel CVE team has assigned CVE-2024-35966 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 9f2c8a03fbb3 and fixed in 6.8.7 with commit c3f787a3eafe Issue introduced in 2.6.30 with commit 9f2c8a03fbb3 and fixed in 6.9 with commit a97de7bff13b 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-35966 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/rfcomm/sock.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/c3f787a3eafe519c93df9abbb0ca5145861c8d0f https://git.kernel.org/stable/c/a97de7bff13b1cc825c1b1344eaed8d6c2d3e695