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 7F8D81FC0ED for ; Fri, 6 Dec 2024 09:37:17 +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=1733477838; cv=none; b=opCUeaURBeHWORl4Ybc2g+4a/iInr+L0fHdT0655jAesWAWgKL+bpzNPqeVqU9aXFuOKjtFMIDhDm1g9ShwyJiOJC2Ny7yuBjL8TfOrV+gnC60m0VBGXSimDUtYUfN3jeKLRxgfQS0e0otyounK4zXXlLhVsHPRkl3qTWv2iXQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733477838; c=relaxed/simple; bh=V9Bc/buQGlXnZldwKshPfbT5IiU3MphpI65Hvp7TqBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YX14Gmgwb2wdVPhCvZXk7ta6GayX5izF+tl9hxZ+ViASw/yZB+6IaFZgetd1hl0osGFOiX8QVnuqJ6yg+G6r8XDoqQSAclzbpQNrNYUMrVZX6EC5IW/9E3ZL1qs9SLCTu/wTQbPFeBgsfV5Om8sigTAxZsasNtuYAKQkdEojnsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P965/iQW; 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="P965/iQW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 983BCC4CEDF; Fri, 6 Dec 2024 09:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733477837; bh=V9Bc/buQGlXnZldwKshPfbT5IiU3MphpI65Hvp7TqBI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P965/iQW1j6Z+AAXbYoWVI8IrDCowtuoA97voesOs8hoPOZucV1QXVTRmMI30LrUx IC+us312Cvw3/jGJ0kuy1p+dm0B5AuW6P4RsbB7ke4kgTQCL9EGVHrf0I1bgSxEctW oeHBs3e4OZoZx0kGVm05dyjqxX2dftBlIcamZGQ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53141: netfilter: ipset: add missing range check in bitmap_ip_uadt Date: Fri, 6 Dec 2024 10:37:07 +0100 Message-ID: <2024120606-CVE-2024-53141-195b@gregkh> X-Mailer: git-send-email 2.47.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=2355; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=V9Bc/buQGlXnZldwKshPfbT5IiU3MphpI65Hvp7TqBI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlBRw8Fb7Ga1lLL923B0X+XSyTubJy//0eH7glV11/ld zyWPEr41RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+X+OYX7kryRPGaesd9bT k+oUrkyctCbl4gGGBTseH/ESKRSZ5zlBq8joyl33wJjTfwE= 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: netfilter: ipset: add missing range check in bitmap_ip_uadt When tb[IPSET_ATTR_IP_TO] is not present but tb[IPSET_ATTR_CIDR] exists, the values of ip and ip_to are slightly swapped. Therefore, the range check for ip should be done later, but this part is missing and it seems that the vulnerability occurs. So we should add missing range checks and remove unnecessary range checks. The Linux kernel CVE team has assigned CVE-2024-53141 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit 72205fc68bd1 and fixed in 4.19.325 with commit 3c20b5948f11 Issue introduced in 2.6.39 with commit 72205fc68bd1 and fixed in 6.11.11 with commit 591efa494a1c Issue introduced in 2.6.39 with commit 72205fc68bd1 and fixed in 6.12.2 with commit 15794835378e Issue introduced in 2.6.39 with commit 72205fc68bd1 and fixed in 6.13-rc1 with commit 35f56c554eb1 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-53141 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/netfilter/ipset/ip_set_bitmap_ip.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/3c20b5948f119ae61ee35ad8584d666020c91581 https://git.kernel.org/stable/c/591efa494a1cf649f50a35def649c43ae984cd03 https://git.kernel.org/stable/c/15794835378ed56fb9bacc6a5dd3b9f33520604e https://git.kernel.org/stable/c/35f56c554eb1b56b77b3cf197a6b00922d49033d