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 0FC9716DEBB for ; Wed, 18 Sep 2024 07:18:19 +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=1726643899; cv=none; b=aR1MWz1XvIEW4inZlIpimEtzAUgdHmeGnMLR13fadElXgwZh/fmmNDP68/1Lojd3RTL7pRKOWvziZkiMMftOhLLaC3B/Y+gdNX+a139BsTWhabWOY+kiObhS1dgsjNLkZPOh46EKyXTlYCB7tHnjdV6KdYajjwGOHlsHKXoY+FM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643899; c=relaxed/simple; bh=2uOlxp22AJHKB2lsL/FwP+6MfoqBIj3QItVnti1pcbM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eZ71pSD2jv0cem5HaKSdadlYKjhWP40CxmwVjb9c+cKW5RM/tBVgI3fubyQM7hm02HjgLMacgS+XwYgaj2sGO9Kd/p+r2T206P2Q4kj5eh0tzEFhFnk/VqtBTK/nALMqg8RbqLFDPYQ/JhxsloXLz09Ti+Wpxb3gg7e/mOG3k/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sr1QpDre; 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="sr1QpDre" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95624C4CEC3; Wed, 18 Sep 2024 07:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643898; bh=2uOlxp22AJHKB2lsL/FwP+6MfoqBIj3QItVnti1pcbM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sr1QpDreqAGuDpya77fJNpmlkCOpJs3clxepD5B25iDKVBKZJpwnluBx1j/M2lxws FdmAxzZYdaoMjd1uQkH3n1GZVcnG01RM9rSHtlG2TKj1hbp7cvFHIwOROgm75M2ZYB 2jOCTvJ94dqLCYO+g/ugmLYPVdnMMswfB2IR0bX4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46739: uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind Date: Wed, 18 Sep 2024 09:16:34 +0200 Message-ID: <2024091834-CVE-2024-46739-0aa7@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=2997; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2uOlxp22AJHKB2lsL/FwP+6MfoqBIj3QItVnti1pcbM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6oK2e9lZ/przbKJc39rVhqf+nw7Y/sVXNmLW8cfpE 3Q+unAKdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEctQY5ilkL5lQt2RXmq9A NI/g5y98voonPjLMj4hqDtGS2qPyp/KiU0PThWUJmkrxAA== 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: uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind For primary VM Bus channels, primary_channel pointer is always NULL. This pointer is valid only for the secondary channels. Also, rescind callback is meant for primary channels only. Fix NULL pointer dereference by retrieving the device_obj from the parent for the primary channel. The Linux kernel CVE team has assigned CVE-2024-46739 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 4.19.322 with commit 3d414b64ecf6 Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 5.4.284 with commit f38f46da80a2 Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 5.10.226 with commit 1d8e020e51ab Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 5.15.167 with commit 3005091cd537 Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 6.1.110 with commit 2be373469be1 Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 6.6.51 with commit de6946be9c8b Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 6.10.10 with commit 928e399e84f4 Issue introduced in 4.16 with commit ca3cda6fcf1e and fixed in 6.11 with commit fb1adbd7e50f 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-46739 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/uio/uio_hv_generic.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/3d414b64ecf6fd717d7510ffb893c6f23acbf50e https://git.kernel.org/stable/c/f38f46da80a2ab7d1b2f8fcb444c916034a2dac4 https://git.kernel.org/stable/c/1d8e020e51ab07e40f9dd00b52f1da7d96fec04c https://git.kernel.org/stable/c/3005091cd537ef8cdb7530dcb2ecfba8d2ef475c https://git.kernel.org/stable/c/2be373469be1774bbe03b0fa7e2854e65005b1cc https://git.kernel.org/stable/c/de6946be9c8bc7d2279123433495af7c21011b99 https://git.kernel.org/stable/c/928e399e84f4e80307dce44e89415115c473275b https://git.kernel.org/stable/c/fb1adbd7e50f3d2de56d0a2bb0700e2e819a329e