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 7643A208D7 for ; Mon, 20 May 2024 09:42: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=1716198176; cv=none; b=jvlzoAr29pXlsbNB4frSKBeJnVgdKF+1m+WeMpndV0qN72drgTh1mFLBeOi+7Sf3OfT+d4+u9Z5m3ZbK1XsrgiRzTcE5wS8XQoljql/4f5qQaKwFKJsAhp1so4MaagxAAciK1IsM6PYMp7Qe16wo0sFEaXK4kFLR8oSOstmBBkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198176; c=relaxed/simple; bh=qEJuMOVnvTMNMRwsyW7wv79rNGwzKaAiK3+lr2sTsYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WyU8hRL7aOWQL00bYZO4Xkq03RspEr8aBft04WRd/u+aRqR2fWzqf6ISXqwSW1/SZ/7wXOzFNng0AhWUzl5kRLrku+vWZtoNjv3km1cNcI64BPw4tsEJaxzNLvBKE/wDqPtlyCmFNWL4QIkrQTP7JLAXFMbpvTF53OGjWJ7aOEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2nNpsTz2; 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="2nNpsTz2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA03AC2BD10; Mon, 20 May 2024 09:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198176; bh=qEJuMOVnvTMNMRwsyW7wv79rNGwzKaAiK3+lr2sTsYs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2nNpsTz2UqyUZv2IIIsy4NpYtfS9iO2Ve5YNYAJomFAyaUEIuOI7Z+eyTq8/M0B6B /ZEL5Esjyq1uYfLoOS5wF4UI+XAE96qFIRhOWksHlYfZQsAL2PLF588FnJChYbphVs Z3tquHcoacDuabpJzIonNSi2A1JbRvC+RJmMJqwk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35967: Bluetooth: SCO: Fix not validating setsockopt user input Date: Mon, 20 May 2024 11:42:32 +0200 Message-ID: <2024052022-CVE-2024-35967-d111@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=2635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qEJuMOVnvTMNMRwsyW7wv79rNGwzKaAiK3+lr2sTsYs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneUv/qBNcqrli1y1NR0MX7yrkWqY4Fs1c1Hdn7+HxS0 b8G1mc9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3n0M8+sWfXZicFt79w+n dp3N1KOTq984cTMsuJDymLF1hW4Xm6zl2Xu1OjZK7rbyAA== 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: SCO: Fix not validating setsockopt user input syzbot reported sco_sock_setsockopt() 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 sco_sock_setsockopt+0xc0b/0xf90 net/bluetooth/sco.c:893 Read of size 4 at addr ffff88805f7b15a3 by task syz-executor.5/12578 The Linux kernel CVE team has assigned CVE-2024-35967 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit b96e9c671b05 and fixed in 5.10.216 with commit b0e30c37695b Issue introduced in 3.8 with commit b96e9c671b05 and fixed in 6.1.87 with commit 7bc65d23ba20 Issue introduced in 3.8 with commit b96e9c671b05 and fixed in 6.6.28 with commit 72473db90900 Issue introduced in 3.8 with commit b96e9c671b05 and fixed in 6.8.7 with commit 419a0ffca701 Issue introduced in 3.8 with commit b96e9c671b05 and fixed in 6.9 with commit 51eda36d33e4 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-35967 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: include/net/bluetooth/bluetooth.h net/bluetooth/sco.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/b0e30c37695b614bee69187f86eaf250e36606ce https://git.kernel.org/stable/c/7bc65d23ba20dcd7ecc094a12c181e594e5eb315 https://git.kernel.org/stable/c/72473db90900da970a16ee50ad23c2c38d107d8c https://git.kernel.org/stable/c/419a0ffca7010216f0fc265b08558d7394fa0ba7 https://git.kernel.org/stable/c/51eda36d33e43201e7a4fd35232e069b2c850b01