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 893D7381C4 for ; Sun, 29 Dec 2024 08:49:23 +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=1735462163; cv=none; b=Yvphz4kPkAMPIBC1cMHG/bHI01hR1eq+OAVkEAp4bW/M7KCe6kgZqtiiXiyB5S2Oz88SwwH6Y8NT5DYlDVtxyStD9LhKQYcAfU5YWGJukMxw6tVvUcbq8bJ0Akew4VAArqreqxZm6tuvpx79j1dPsiV4d6wMHmi/yOyS2tcGu6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735462163; c=relaxed/simple; bh=JkD9Q1UK8z2J0cDs+YUf+L3AyFUfvh/C1pqYBoRvRoQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n7sS9hjAVcK1o0y6FCGsSqhG8aDOohlu7lkdTed197xjlbhnooa/iMTtz2TSjWXFrpiQqK4OHkFaEu9WKA09Ar4Brb7b/ZundXr/K7MvMHjBcq8OK1+B/s3fNcYLK7v3GAcL6p8atZ73sgiQOQXs1yJ9KGlPNxN0s9kVZ5m4xVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AGHhzP+H; 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="AGHhzP+H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00A74C4CED1; Sun, 29 Dec 2024 08:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735462163; bh=JkD9Q1UK8z2J0cDs+YUf+L3AyFUfvh/C1pqYBoRvRoQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AGHhzP+HKLYiy4tNiSHiVnubImJc7cSi3HTUTqV3xSLwUKWOlFOwCbqX2MJIdQAq0 H9FvI6LNPsQSx2qZs2UdqJdjwBZMGNcuWsBeok2SUU/4Tr+p2BtKRfx2R6E38zauL1 HRzxwJ+cinjfv57m21h98tYIK7hYHuXRq4nS0UD0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56716: netdevsim: prevent bad user input in nsim_dev_health_break_write() Date: Sun, 29 Dec 2024 09:48:20 +0100 Message-ID: <2024122915-CVE-2024-56716-7a52@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=2305; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JkD9Q1UK8z2J0cDs+YUf+L3AyFUfvh/C1pqYBoRvRoQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFPOeVuryLwqd2tM+pd7i906UkYG6uUYAyv4nUxH5Xt qyCqXwdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJHnkQzzi9XD2Jo/zDR2OiRQ v+hUZI6j8cJ5DPOrHysG/1M4szwsUfK3/qvaLV8ze/oA 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: netdevsim: prevent bad user input in nsim_dev_health_break_write() If either a zero count or a large one is provided, kernel can crash. The Linux kernel CVE team has assigned CVE-2024-56716 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.1.122 with commit d10321be26ff9e9e912697e9e8448099654ff561 Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.6.68 with commit 470c5ecbac2f19b1cdee2a6ce8d5650c3295c94b Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.12.7 with commit 8e9ef6bdf71bf25f4735e0230ce1919de8985835 Issue introduced in 5.5 with commit 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f and fixed in 6.13-rc4 with commit ee76746387f6233bdfa93d7406990f923641568f 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-56716 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/net/netdevsim/health.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/d10321be26ff9e9e912697e9e8448099654ff561 https://git.kernel.org/stable/c/470c5ecbac2f19b1cdee2a6ce8d5650c3295c94b https://git.kernel.org/stable/c/8e9ef6bdf71bf25f4735e0230ce1919de8985835 https://git.kernel.org/stable/c/ee76746387f6233bdfa93d7406990f923641568f