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 5EF1116E882 for ; Fri, 12 Jul 2024 12:28:16 +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=1720787296; cv=none; b=KE2oQdYdXc3hKWuZg8pBgGXYdlYLCTHoEnlEqqyOrinjTxQKTxcRUt877A0ZSrD7zgCMWbrb5MYzGp9j3hCa53UE9BJvEgCe6I59ao4L6l3py4qS3fMl5v5XCN9clHMSd72vV4JFoAzpecxL9RqbxXGcXxv0L6d8Ez1VQoLDWbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787296; c=relaxed/simple; bh=lIlskNV9l01ZzXHrw4dcMz4tyAFWrBkJ4KKBz/T3xnM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WFSmVFnyvSZcDsndd9hjfwro9gEuJtOit7Ezn+E4ZZuf6JMbmBg2wkyRup1huNSvQKIWt5Y2rr2DnDsGFn5wVvSYVrAMi7l+aG5BjV/lfrBC2wD79DZnl8AF43UH4ypurwBaFbOQ8WH4JPZmpu43wW1DJm91seQ5GC3VSR1IHeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b7CRPmyP; 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="b7CRPmyP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D77BEC32782; Fri, 12 Jul 2024 12:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787296; bh=lIlskNV9l01ZzXHrw4dcMz4tyAFWrBkJ4KKBz/T3xnM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b7CRPmyP2rHoTCErWurYx/a79rFHpqzaQyES1RZNbXO3/mNfYR3Hd2NLcRmwdF+c5 WW/oOzBrUci9gfP4twR4MVIRCFDmBJ7a+xQQNbUahIJ4lrSmbu05hGjOwfXOnN58PR VR7mJ0fql1zsDtk8NQcXmT2NPjtlIYCem2Atmocs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40939: net: wwan: iosm: Fix tainted pointer delete is case of region creation fail Date: Fri, 12 Jul 2024 14:27:37 +0200 Message-ID: <2024071218-CVE-2024-40939-a56c@gregkh> X-Mailer: git-send-email 2.45.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=2333; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lIlskNV9l01ZzXHrw4dcMz4tyAFWrBkJ4KKBz/T3xnM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFdVE6t7O64uuXPKp6eDpSZFPGQ8slyw/INoj+Syyq ejp1smqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARzqsMC7rUk5Xy3r25nOFm OHPi9Sm/1QJkJBgWrHN8nOhyq6OiadIm+W0nNQy6c2UkAA== 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: wwan: iosm: Fix tainted pointer delete is case of region creation fail In case of region creation fail in ipc_devlink_create_region(), previously created regions delete process starts from tainted pointer which actually holds error code value. Fix this bug by decreasing region index before delete. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-40939 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 4dcd183fbd67 and fixed in 6.1.95 with commit fe394d59cdae Issue introduced in 5.16 with commit 4dcd183fbd67 and fixed in 6.6.35 with commit 040d93848703 Issue introduced in 5.16 with commit 4dcd183fbd67 and fixed in 6.9.6 with commit 37a438704d19 Issue introduced in 5.16 with commit 4dcd183fbd67 and fixed in 6.10-rc3 with commit b0c9a2643541 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-40939 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/wwan/iosm/iosm_ipc_devlink.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/fe394d59cdae81389dbf995e87c83c1acd120597 https://git.kernel.org/stable/c/040d9384870386eb5dc55472ac573ac7756b2050 https://git.kernel.org/stable/c/37a438704d19bdbe246d51d3749b6b3a8fe65afd https://git.kernel.org/stable/c/b0c9a26435413b81799047a7be53255640432547