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 EE5A51957FC for ; Wed, 8 Jan 2025 17:49:25 +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=1736358567; cv=none; b=Hs4DA+dzRZ7WsOnTBWlTTL9IGIbkOTAESxpFCR5iUDzX0TZYy4JNMCtmngkM3wTcWK8PNzsS8qrRXsoN967mGWbAEpu931yIK7WmCg/n1OumfaOSfz3tdSM2d66PMWPW+skwoVHF6PN0K9AnkI1E5odlHkHSla3LF4yMc1gWTns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736358567; c=relaxed/simple; bh=F126v720yLCVmoL/HVwYic+T+baC28HlmyuzfWmpwGU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=COp8QU+vq61/6MsLkazD7CA2yj+ImlOyKkvTgE66+cRSfsGS58nIDmGCmX97sNGpGdulobk3766746Ia8iaUvmXzHNeShklPmQF1cuCeSTafYIfTJJo4Rg6db7GD7aNFXy01KU8If7hiPIOlGjjL1Y76zrn62I6Y0Sc4UkVu+hI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vFyX1T0M; 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="vFyX1T0M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7159C4CED3; Wed, 8 Jan 2025 17:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736358565; bh=F126v720yLCVmoL/HVwYic+T+baC28HlmyuzfWmpwGU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vFyX1T0MCTdy5vJ7zlQJzXXNZurWF8hsiuTJTRwoDX47Jct4B5U3N2x3vdWON4BQn MHG5ODMCC9+ovGNPsWjPiPvy5XxrdQ0K0sFlNOebl+fhDn2QBNy3cLylUi/TAXXnnP tkHKkT0Cez3awh9zpLW9EgUX25UpMJ+7S2rdY4mg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56773: kunit: Fix potential null dereference in kunit_device_driver_test() Date: Wed, 8 Jan 2025 18:49:11 +0100 Message-ID: <2025010811-CVE-2024-56773-46a8@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=1918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F126v720yLCVmoL/HVwYic+T+baC28HlmyuzfWmpwGU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl1u6Y/fCtX0J3W+c/h5ZsLjKun5P6/ZmGbITxdTe/Ck 69/luaKdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEuPYwLFj1taDKdP4hkfUF n6S5j9a78F9UB4rObImboiErrF7tut936tro+dL9bAsA 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: Fix potential null dereference in kunit_device_driver_test() kunit_kzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for test_state. The Linux kernel CVE team has assigned CVE-2024-56773 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e and fixed in 6.12.4 with commit 5d28fac59369b5d3c48cdf09e50275a61ff91202 Issue introduced in 6.8 with commit d03c720e03bd9bf0b784d80b5d3ede7e2daf3b6e and fixed in 6.13-rc1 with commit 435c20eed572a95709b1536ff78832836b2f91b1 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-56773 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/kunit/kunit-test.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/5d28fac59369b5d3c48cdf09e50275a61ff91202 https://git.kernel.org/stable/c/435c20eed572a95709b1536ff78832836b2f91b1