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 F1B34187562 for ; Thu, 30 May 2024 15:30: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=1717083050; cv=none; b=ga+oVuB+kK1tZCXBpPKOhJtLJP1RFv8wXN2QITOyfKxQ3rmdNvL0TEm7C8Ge1fE4tjN7A511bezH5eOJwPkoeNaGazf1nCSsbrlsjQW6WZ2PSeASBH2DpTgGA0OYean+JyD6mfIj0qO0pI3ZBNGRrkb3VlQS8rH4crWYmLYUZio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083050; c=relaxed/simple; bh=ymJtvUt0G+VYKx5H7+yMw0K9ateUSUhD0znD8j1p4zg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qlwHGzk7WKZn0d6Ffco+EfU381i+BBvGa1yUOWkKRiWtZG+OvGUSNzIz1sNH1bM8IWtfiPalUm7UlCWc4CGm9C8aey00vLtMAVgStAygJRqNzxh72V0xZIyLCUa7Iw2o62/QmaSW62GUcU0HY5XDuZX/v9iyMFrchaXBgtTa12w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x92tDRoV; 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="x92tDRoV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 854B1C32789; Thu, 30 May 2024 15:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083049; bh=ymJtvUt0G+VYKx5H7+yMw0K9ateUSUhD0znD8j1p4zg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x92tDRoVA5IXtWmCtXT808k2583ANkq8Y/7+Wx1P4WT/W/qsD3hAcFNZhfn7fLXIK 2xQIr6AmUk8ovHzcQIS5NaFowbvObWE9vPY9bImj8ARF3n0q4MccSbfEjI3XHoguse P/iZUwca602zuf8EccgyG7Qwo8AhhxofljWcq9Qo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36935: ice: ensure the copied buf is NUL terminated Date: Thu, 30 May 2024 17:29:27 +0200 Message-ID: <2024053042-CVE-2024-36935-4e4a@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=1977; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ymJtvUt0G+VYKx5H7+yMw0K9ateUSUhD0znD8j1p4zg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRs7VWXN/yVOre+ePXtgnxz5R8V9lZ3zR3cUf8w7V/d 33WPTvrbkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxFaIYa6ol8xUzk2vH5nf 7TwrL2ZS07vxnAfDggv67hxpRSUHfTSizfQz1kvGsC3yBwA= 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: ice: ensure the copied buf is NUL terminated Currently, we allocate a count-sized kernel buffer and copy count bytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user. The Linux kernel CVE team has assigned CVE-2024-36935 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 96a9a9341cda and fixed in 6.8.10 with commit 5ff4de981983 Issue introduced in 6.8 with commit 96a9a9341cda and fixed in 6.9 with commit 666854ea9cad 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-36935 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/ethernet/intel/ice/ice_debugfs.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/5ff4de981983ed84f29b5d92b6550ec054e12a92 https://git.kernel.org/stable/c/666854ea9cad844f75a068f32812a2d78004914a