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 B711F16CD30 for ; Fri, 12 Jul 2024 12:38: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=1720787929; cv=none; b=rztInqFzq2JyVRrvdqnyxIu+yFxBl23O0Zn7s4296rpT+nTDjAjcsmMkBTH00pXnMOuUSNmb+Y9kL6J5SaYquvQ7RbfZPnMbPlEL84DgJKFVKcwVf1fzb3qUsuKp2FejB3gxcMaX11YQxnQ+CXrv2UyhrQQlkj2PAh471MfZf5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787929; c=relaxed/simple; bh=4LsTggtr82lBl8AX/T5zoZoXWxIdBGXEpD0JrNTX8lw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GDTxg2qFe+my+UKJ8bjfa+k71jitS7Z8RhFvncKpNox0+JDyffpDtr9A9Sg1uEbMbwYJ5MmmIpO7/WQT13Zx/C9pSqLDds+QQP5ve/k2T7sjMl/Dy/lAf6aP8sThFG9zFOXP8FQIuZWn8L0eVOw8CEKuIUJmx9k90DapZXUWe30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t3TQyM+/; 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="t3TQyM+/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D0A6C32782; Fri, 12 Jul 2024 12:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787929; bh=4LsTggtr82lBl8AX/T5zoZoXWxIdBGXEpD0JrNTX8lw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=t3TQyM+/qOrzRKK8WmMwh1xJtDcEJSmSrgLSholi1/16FEvLVnc0MB61ZpmvVAqjV fESFCJ/g68NxEWpTDyXvbYpXK1Zyzqef8x3EiM6RQt9aqX92cfft5v6Te1EeM5o0U6 r521mt9tSBXYGDvzaOiVVXQwj67soDjIedrjza6E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40996: bpf: Avoid splat in pskb_pull_reason Date: Fri, 12 Jul 2024 14:38:00 +0200 Message-ID: <2024071251-CVE-2024-40996-3e04@gregkh> X-Mailer: git-send-email 2.45.2 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=2602; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4LsTggtr82lBl8AX/T5zoZoXWxIdBGXEpD0JrNTX8lw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTleeztKpVZ0q2FYSkvVxz6va/6vuT7FKKZizS3O71x PJq8r6yjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI9g6G+VEPdgmciHX3Wv3U /cIaySlhVg/NzjEsWLfs74wA7jhlO/7cW20d+Y+qj2sHAgA= 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: bpf: Avoid splat in pskb_pull_reason syzkaller builds (CONFIG_DEBUG_NET=y) frequently trigger a debug hint in pskb_may_pull. We'd like to retain this debug check because it might hint at integer overflows and other issues (kernel code should pull headers, not huge value). In bpf case, this splat isn't interesting at all: such (nonsensical) bpf programs are typically generated by a fuzzer anyway. Do what Eric suggested and suppress such warning. For CONFIG_DEBUG_NET=n we don't need the extra check because pskb_may_pull will do the right thing: return an error without the WARN() backtrace. The Linux kernel CVE team has assigned CVE-2024-40996 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.86 with commit 8af60bb2b215 and fixed in 6.1.96 with commit dacc15e9cb24 Issue introduced in 6.6.27 with commit 1b2b26595bb0 and fixed in 6.6.36 with commit 7f9644782c55 Issue introduced in 6.9 with commit 219eee9c0d16 and fixed in 6.9.7 with commit 5e90258303a3 Issue introduced in 6.9 with commit 219eee9c0d16 and fixed in 6.10-rc5 with commit 2bbe3e5a2f4e Issue introduced in 6.8.6 with commit fff05b2b004d 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-40996 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/core/filter.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/dacc15e9cb248d19e5fc63c54bef0b9b55007761 https://git.kernel.org/stable/c/7f9644782c559635bd676c12c59389a34ed7c866 https://git.kernel.org/stable/c/5e90258303a358e88737afb5048bee9113beea3a https://git.kernel.org/stable/c/2bbe3e5a2f4ef69d13be54f1cf895b4658287080