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 43F6117C77 for ; Thu, 27 Feb 2025 20:01:20 +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=1740686480; cv=none; b=XpjtRZIzDjPr/uQ5eBvYsIfe42O68G/Y2cpG84LwFgARu0CvSg4C/mZLI7q0QbKhcl3KyALzemJh+EitTZHHZQDaaTZ21os93EgMW/OE9YwJ+9IF6wXUiuJp9YHifMaJcQW3f/3/d0veISJy/QhwCb9Cc663nSWaVdhpDZfXpOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740686480; c=relaxed/simple; bh=dWVQrNwIF3aPXl1ZIL558geLdeATm9wd/yitPW0oYa8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QKSaI4xFX0wXmScKK/UfADoIxspmxWlTj9YYLoG+qFqGNIhMGYcZKCxN2POkBisiv80IMF7tbdu3Bcn5UDSKdEPYVwhGkdbkNoJEhPqr0LvzWo2xlBZAqj4xcM/sR1Kd6IH/kH1R3cvM4v0H+hgf+3gj2s8Utqbc/ML8POlWYyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iL+6WX/c; 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="iL+6WX/c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14969C4CEDD; Thu, 27 Feb 2025 20:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740686480; bh=dWVQrNwIF3aPXl1ZIL558geLdeATm9wd/yitPW0oYa8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iL+6WX/cVzfznMj9I7a41DviBYNju2gfuxIvYgnPFVLpJBaaLbFU9RA2z/f83Nve4 R646WmbSkHAPVdRxUP7E3kYsqc9hvkvj7LvAlWwWcJ61wq4dBdZ4+KfTZJMJzxonhe YSnFZeuv5JDvU1ibrIhteXxzrkcrjMQ6MslXLPwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21798: firewire: test: Fix potential null dereference in firewire kunit test Date: Thu, 27 Feb 2025 11:59:52 -0800 Message-ID: <2025022751-CVE-2025-21798-5fcb@gregkh> X-Mailer: git-send-email 2.48.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=2166; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dWVQrNwIF3aPXl1ZIL558geLdeATm9wd/yitPW0oYa8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkHjphLearqPZstfDmh3H/6o6efmhW/zbypJrMkzW5Db YLHZZbKjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIbwjDgmvxi+2OrZ1f8n3C ih5/F/aa75xctgzzQ64/10o1bb1uuu7MjcQsASPT9JfrAA== 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: firewire: test: Fix potential null dereference in firewire kunit 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-2025-21798 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 1c8506d62624fbc57db75414a387f365da8422e9 and fixed in 6.12.13 with commit c6896bf4c611c3dd126f3e03685f2360a18b3d6f Issue introduced in 6.8 with commit 1c8506d62624fbc57db75414a387f365da8422e9 and fixed in 6.13.2 with commit 70fcb25472d90dd3b87cbee74b9eb68670b0c7b8 Issue introduced in 6.8 with commit 1c8506d62624fbc57db75414a387f365da8422e9 and fixed in 6.14-rc1 with commit 352fafe97784e81a10a7c74bd508f71a19b53c2a 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-2025-21798 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/firewire/device-attribute-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/c6896bf4c611c3dd126f3e03685f2360a18b3d6f https://git.kernel.org/stable/c/70fcb25472d90dd3b87cbee74b9eb68670b0c7b8 https://git.kernel.org/stable/c/352fafe97784e81a10a7c74bd508f71a19b53c2a