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 EE37B1311A1 for ; Wed, 17 Apr 2024 09:44:33 +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=1713347074; cv=none; b=kMHIkylz5yOISNBHuH0+DIfqJ4Vxy+QYTacPOXktRkwi3hYMcDEUDrNI758Cdwc/IKSKNLsugs+GNvjqadDWXzURUDfta+92ApatQOeNopWIfEaPfxWZeKD5LkjoFoYQHOVUYCV3n1drLkrg+Og+H18Sqnj+qFHRSSC2NSDks8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713347074; c=relaxed/simple; bh=Jx74CqlEp6bgoBDfMt1R24GQwHqwVQMGDx6JBp7wdD4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KQNgfoo8u1Nyps0wgEkbnX39wKxJfQKUunqS2k96Yz3Oh5O0CQwmPSaJfoCg52U4ncSHEzy9/RJ93wjg90d3KGUcpelrqtxK9eolalhm1kHhedkz9B6BJjvdB7WccrGuEotk13OiTXe3futFYN5zps1mUENTmyWh/ZZ5YDF7izk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HP7aMOg4; 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="HP7aMOg4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AAB5C072AA; Wed, 17 Apr 2024 09:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713347073; bh=Jx74CqlEp6bgoBDfMt1R24GQwHqwVQMGDx6JBp7wdD4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HP7aMOg4rMGXQ8q4NEOC5JzRxAX9Kb87KqDP0JaaVg572TJxm2fA+NAxsOBvyrnAZ 5Xh5yrvG/tnPEUzpb8bzjcE6flCd5iei6nLp6moviekGSQOY4S+nIk1P+vULopHT2U irioEElSwTlafsK9fz6Bes5B7DN5AQsfXWjVn/q0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26819: dm: limit the number of targets and parameter size area Date: Wed, 17 Apr 2024 11:44:02 +0200 Message-ID: <2024041701-CVE-2024-26819-1731@gregkh> X-Mailer: git-send-email 2.44.0 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=2331; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Jx74CqlEp6bgoBDfMt1R24GQwHqwVQMGDx6JBp7wdD4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyMx+2qrqU6NkbqLd3bdNTWB1/K0Aj5lZIrnytzDdRh hWsTwM7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgF4CLVDAumRR/a0rFfsnvx/Umc Fud39ja/qTNlmF+ZybvXMzL4Ru/Zh/a/HpiEF1+M0wAA 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: dm: limit the number of targets and parameter size area The kvmalloc function fails with a warning if the size is larger than INT_MAX. The warning was triggered by a syscall testing robot. In order to avoid the warning, this commit limits the number of targets to 1048576 and the size of the parameter area to 1073741824. The Linux kernel CVE team has assigned CVE-2024-26819 to this issue. Affected and fixed versions =========================== Fixed in 5.10.210 with commit a891a0621e72 Fixed in 5.15.149 with commit 888a0a46b80f Fixed in 6.1.79 with commit c5d83ac2bf6c Fixed in 6.6.18 with commit 438d19492b7f Fixed in 6.7.6 with commit cd70175481f6 Fixed in 6.8 with commit bd504bcfec41 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-26819 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: drivers/md/dm-core.h drivers/md/dm-ioctl.c drivers/md/dm-table.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/a891a0621e725e85529985139cada8cb5a74a116 https://git.kernel.org/stable/c/888a0a46b80fa37eacfe81faf47ba0b83876251d https://git.kernel.org/stable/c/c5d83ac2bf6ca668a39ffb1a576899a66153ba19 https://git.kernel.org/stable/c/438d19492b7f002334573bae43276297eb234c80 https://git.kernel.org/stable/c/cd70175481f63af31901dd463e44386f033c3f4c https://git.kernel.org/stable/c/bd504bcfec41a503b32054da5472904b404341a4