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 80732146A87 for ; Sat, 17 Aug 2024 09:13: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=1723885997; cv=none; b=UFV9l7fD8DdVzJON9i9lPUy32TqD5JTpFrNxb6vsXVJz3Ifz8eufpSaSaszPRw0oprv8vfbMp6JqZqjuTCxQ5leWMsLXIvDkXVNqga6mZPfnEqThe3ItB1VHQImDgn2uiXyHrDYR+gwiMBOI0JDorlRwfJA5WI9TpXu+uRknhY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885997; c=relaxed/simple; bh=wsOr2WB9ETm86hflEs8njKtGTnCrrJp4/UGcxI8eCOI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U/zLtUISD9I2wIEhcasvBNzLqahzFWbpKatCrefoVeCcSIMyJ1t2rzbM2no37bLKXTGjFck8OBG0SK2LLHAojTcTjbarmmeyFZuYg1w9+i170MF/JQtcq9o4wJOVp/r6l26N6LuRcaW0hfoybsdrQQFsWcdw7zNifl9GL7OTxZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JVeQSSmh; 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="JVeQSSmh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BB53C116B1; Sat, 17 Aug 2024 09:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885997; bh=wsOr2WB9ETm86hflEs8njKtGTnCrrJp4/UGcxI8eCOI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JVeQSSmhpG5znIS3qFew1k6kXUfx/EXs5HgIEIh3wzIOjXQkR+kfwIqRzsm5tNQX6 mL9h358ogitl7IOeWn7TGxdu0JNlbAuAZB7PbEkkfBU+DDonxqWPR7RnIt8i/MBDkT /t+sx0pLy2cvnrj9sSRBrVG8sp3eqq6AJoT0n9Bs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42292: kobject_uevent: Fix OOB access within zap_modalias_env() Date: Sat, 17 Aug 2024 11:09:57 +0200 Message-ID: <2024081746-CVE-2024-42292-5387@gregkh> X-Mailer: git-send-email 2.46.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=2209; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wsOr2WB9ETm86hflEs8njKtGTnCrrJp4/UGcxI8eCOI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMm5l10t3TFpzqmAr56VZZ3oW8PkHa0dJx3udd85bK fuyfnd9RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk8WmGudJXOPZvr3P9anbQ SWLXXstjG6bnZTDMr+Ftn1JbPKmgr+u+bJtQbeCXkwd3AAA= 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: kobject_uevent: Fix OOB access within zap_modalias_env() zap_modalias_env() wrongly calculates size of memory block to move, so will cause OOB memory access issue if variable MODALIAS is not the last one within its @env parameter, fixed by correcting size to memmove. The Linux kernel CVE team has assigned CVE-2024-42292 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 9b3fa47d4a76 and fixed in 6.1.103 with commit 68d63ace80b7 Issue introduced in 4.15 with commit 9b3fa47d4a76 and fixed in 6.6.44 with commit 57fe01d3d042 Issue introduced in 4.15 with commit 9b3fa47d4a76 and fixed in 6.10.3 with commit d4663536754d Issue introduced in 4.15 with commit 9b3fa47d4a76 and fixed in 6.11-rc1 with commit dd6e9894b451 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-42292 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: lib/kobject_uevent.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/68d63ace80b76395e7935687ecdb86421adc2168 https://git.kernel.org/stable/c/57fe01d3d04276875c7e3a6dc763517fc05b8762 https://git.kernel.org/stable/c/d4663536754defff75ff1eca0aaebc41da165a8d https://git.kernel.org/stable/c/dd6e9894b451e7c85cceb8e9dc5432679a70e7dc