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 8F5F3189BA5 for ; Fri, 27 Sep 2024 12:40:00 +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=1727440800; cv=none; b=ixplmgRMXIZqi3FKFFlfx6d1YNpqa5wIwqFGsjc6kzVpzoT2UP140ueBb2aD1S3V88PHGVt4MuxheAe9L0713MIUHwPwOpkZ+17YiCfbMqYNmS9d60zz6HsXtrYTA8Bh9iy+zHPKLJx/bY8k2Mqgzne74QWMxPjIy87E9By1I/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440800; c=relaxed/simple; bh=3SPTTGpVQLic5gBpZuBYfP6mpJbyR0vdRegcmStvZek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H7b0OrwZyzUrCul9eVdxPbP+rcGIxGDwjLCAe4gzm3qS+gzqfzvB1AcrI7APAWG0LnOjHTqrUg4px1ZVxTvikJYNBdwLL41MzBlt0odhk7fx0nQSwA4MiPtC+2jJX4TaX1ajJgh83soqus5MAJKkQh2d6UiZlv4mMDDft6BseIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VlvHgBlV; 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="VlvHgBlV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11660C4CEC4; Fri, 27 Sep 2024 12:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440800; bh=3SPTTGpVQLic5gBpZuBYfP6mpJbyR0vdRegcmStvZek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VlvHgBlVisaunZI8GElMtk44Q/fOxuxBs9RhLodbpFSX4NDIQLQLpwsQ5E+tVJTA6 dPaBE9q5GwfGXYXgg5C8um6tN4nedxM4S2pEE2CO0EflRcyKvARvMuqVWbND2fMD6G MkvXKXuCQjNBTixg5Z/8Cmy0rvW2wkaoNp8MMDqI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46823: kunit/overflow: Fix UB in overflow_allocation_test Date: Fri, 27 Sep 2024 14:39:51 +0200 Message-ID: <2024092750-CVE-2024-46823-b19e@gregkh> X-Mailer: git-send-email 2.46.2 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=1929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3SPTTGpVQLic5gBpZuBYfP6mpJbyR0vdRegcmStvZek=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflk+79m9vrfjEyUY5134bfy67tZelJH1WK59/f1J4s NiR4LrbHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRmjsMc0UmLlymduhOyxRe taJ+O7ceh1MnHBnm5/b8t6z+MlF7zVuh2o8Ghg/jzn9PAgA= 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: kunit/overflow: Fix UB in overflow_allocation_test The 'device_name' array doesn't exist out of the 'overflow_allocation_test' function scope. However, it is being used as a driver name when calling 'kunit_driver_create' from 'kunit_device_register'. It produces the kernel panic with KASAN enabled. Since this variable is used in one place only, remove it and pass the device name into kunit_device_register directly as an ascii string. The Linux kernel CVE team has assigned CVE-2024-46823 to this issue. Affected and fixed versions =========================== Fixed in 6.10.10 with commit d1207f07decc Fixed in 6.11 with commit 92e9bac18124 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-46823 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/overflow_kunit.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/d1207f07decc66546a7fa463d2f335a856c986ef https://git.kernel.org/stable/c/92e9bac18124682c4b99ede9ee3bcdd68f121e92