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 9C5AB17D8A1 for ; Thu, 30 May 2024 15:30:03 +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=1717083003; cv=none; b=Gb5p85l4ajKSQdWUQzblcTMKaNxAEPNuM1Pb+QagFtgWk4xvW5FI5MwMCL9b4KiELFonB3bvK0UbrDEKDyah4co5WSMpdxwhJ4UmLZ4aoDfNPOWRilR1235+Kh8Xjc52FxAxDzda7rF3PH2gai6DAmZgjTz2FUr4G+GiXPvXu8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083003; c=relaxed/simple; bh=cot5SN7eZoK4L9dgYr3WuCEQ231vy/6Wt2AQi8jKAyQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cAawD9F9LTbJdc5mE+/5el7YFr4qxcjdNGhbpl+u2mD2jdlmHookJbzeDM8XCLdSu5waoa9CXTWx0bXb+F/ZMXiLV7GoDt3Gq7TXPpH7hOnaZvWdNuhmGjtg7uoCsTZsLnyp2mfrk/8N7FWxa3SMmGHJwVgiDo1f25FHiX7c+Vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OTPHDZO7; 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="OTPHDZO7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 268D4C2BBFC; Thu, 30 May 2024 15:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083003; bh=cot5SN7eZoK4L9dgYr3WuCEQ231vy/6Wt2AQi8jKAyQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OTPHDZO7D7CJwUMlX44Ln56iAEtpr4WmBPNyPd2RrQBl4iJm9FbYbSewVD8mdXrFn Ovjh+M3qu1aBxuXPak7Hf4peyoqAryA9+fqk4BhreTShFeEQNYvQKhM40KayMvcM+o JNhL3KOQYpIJn3T4deNW6oXIV+/m3gdkS3+iXEOI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36918: bpf: Check bloom filter map value size Date: Thu, 30 May 2024 17:29:10 +0200 Message-ID: <2024053039-CVE-2024-36918-f8bc@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=2171; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cot5SN7eZoK4L9dgYr3WuCEQ231vy/6Wt2AQi8jKAyQ=; b=kA0DAAIRMUfUDdst+ykByyZiAGZYmyegEVMn7XNAb/GSqGvrphBQY9hA0qmYiEU+GyI1ZYiCq 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZYmycACgkQMUfUDdst+ynFSACfWRlJ FYwauOBuwCSl7it2xKquuAUAn2xa6mabkSzHQVp3jT/cjEFq45lN 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: Check bloom filter map value size This patch adds a missing check to bloom filter creating, rejecting values above KMALLOC_MAX_SIZE. This brings the bloom map in line with many other map types. The lack of this protection can cause kernel crashes for value sizes that overflow int's. Such a crash was caught by syzkaller. The next patch adds more guard-rails at a lower level. The Linux kernel CVE team has assigned CVE-2024-36918 to this issue. Affected and fixed versions =========================== Fixed in 6.1.91 with commit fa6995eeb62e Fixed in 6.6.31 with commit 608e13706c8b Fixed in 6.8.10 with commit c418afb9bf23 Fixed in 6.9 with commit a8d89feba7e5 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-36918 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: kernel/bpf/bloom_filter.c tools/testing/selftests/bpf/prog_tests/bloom_filter_map.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/fa6995eeb62e74b5a1480c73fb7b420c270784d3 https://git.kernel.org/stable/c/608e13706c8b6c658a0646f09ebced74ec367f7c https://git.kernel.org/stable/c/c418afb9bf23e2f2b76cb819601e4a5d9dbab42d https://git.kernel.org/stable/c/a8d89feba7e54e691ca7c4efc2a6264fa83f3687