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 C61BD433D4 for ; Wed, 1 May 2024 12:58:06 +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=1714568286; cv=none; b=VCr0n8OfcPYGQze/F0AM+b1czr0LlzzGeUF8ngF7S0EeiqEQqkDQgUTjgjFIPaEMqZHQgB9sDcLd9oLWhXyPPNePi1zt4MS2DWQ8TjF/EXNm0TyzF+VTFzdNv7v03EIRkfCeruNuxGIMGmxG1m7ADJ5Lx/8ky5B3u8471O3Rpw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568286; c=relaxed/simple; bh=8SKqlEzaegI+jdJxKg+e2VtP4YMOSmjePbbMIJWCLqo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iaTD6htwDuvfRURa2ReFba+1u8DEHVCu/6KBQY37zDLv1tOOE/vFQQFqqkb2JwqQxTLsxQ1hTwierQR17LBO7nAzWEBBJU0mLnDPmq91QcGAxJIk32LY5ol7D6RY2MHgKrEAbV1FHKZZN6dkxvvM6wBfNqRbGMXdYVbbUcbr2Ys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KtYZFv/f; 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="KtYZFv/f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CA0FC113CC; Wed, 1 May 2024 12:58:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568286; bh=8SKqlEzaegI+jdJxKg+e2VtP4YMOSmjePbbMIJWCLqo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KtYZFv/fM9AqUyfto2GxWoepGwwOD698NYITnH7zusVPh1kIauKYopSRuf16IsaxF OirdDRN5M0FeOZmpwIG7O4NLJF+0k2FIRQEZEyKuUTugqddXgBCu5NdtIONTI1TwbJ NSs6RpsqgtJFI+GWPE9PGI8zD4LNZPivdz/LF8iU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27047: net: phy: fix phy_get_internal_delay accessing an empty array Date: Wed, 1 May 2024 14:57:32 +0200 Message-ID: <2024050114-CVE-2024-27047-8aad@gregkh> X-Mailer: git-send-email 2.44.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=3008; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8SKqlEzaegI+jdJxKg+e2VtP4YMOSmjePbbMIJWCLqo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNloSredW7ZnZ4ef479pii7JlXvb5Fqf2T8xiU/jqy rNv5lSZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIeT2GBcsd2iXuXbbwVrNl 26LXoll5nX2PA8OC/SlSR7h/XvG0VpNIrlowaZFcgvhvAA== 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: net: phy: fix phy_get_internal_delay accessing an empty array The phy_get_internal_delay function could try to access to an empty array in the case that the driver is calling phy_get_internal_delay without defining delay_values and rx-internal-delay-ps or tx-internal-delay-ps is defined to 0 in the device-tree. This will lead to "unable to handle kernel NULL pointer dereference at virtual address 0". To avoid this kernel oops, the test should be delay >= 0. As there is already delay < 0 test just before, the test could only be size == 0. The Linux kernel CVE team has assigned CVE-2024-27047 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 92252eec913b and fixed in 5.10.214 with commit 06dd21045a7e Issue introduced in 5.9 with commit 92252eec913b and fixed in 5.15.153 with commit 0e939a002c8a Issue introduced in 5.9 with commit 92252eec913b and fixed in 6.1.83 with commit 2a2ff7095116 Issue introduced in 5.9 with commit 92252eec913b and fixed in 6.6.23 with commit 589ec16174dd Issue introduced in 5.9 with commit 92252eec913b and fixed in 6.7.11 with commit c0691de7df1d Issue introduced in 5.9 with commit 92252eec913b and fixed in 6.8.2 with commit 0307cf443308 Issue introduced in 5.9 with commit 92252eec913b and fixed in 6.9-rc1 with commit 4469c0c5b14a 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-27047 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/phy/phy_device.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/06dd21045a7e8bc8701b0ebedcd9a30a6325878b https://git.kernel.org/stable/c/0e939a002c8a7d66e60bd0ea6b281fb39d713c1a https://git.kernel.org/stable/c/2a2ff709511617de9c6c072eeee82bcbbdfecaf8 https://git.kernel.org/stable/c/589ec16174dd9378953b8232ae76fad0a96e1563 https://git.kernel.org/stable/c/c0691de7df1d51482a52cac93b7fe82fd9dd296b https://git.kernel.org/stable/c/0307cf443308ecc6be9b2ca312bb31bae5e5a7ad https://git.kernel.org/stable/c/4469c0c5b14a0919f5965c7ceac96b523eb57b79