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 E1196280027 for ; Wed, 18 Jun 2025 09:28:56 +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=1750238937; cv=none; b=MDOXJi+turfvPvFw4EE32lnLqvzRyQRiNE3lEDcwh02dFAR6ul5mwmmv1uk4i9PkTeI0LbY36c02qVlJMww0WSTY5ENJ6CMDtlE++QjT4vrGMofvXgbf8vOo4Lee6OXelH7Fgaw0ObRXoSrQr1aVoJPmEBAFc+9cryzo7OWIgeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238937; c=relaxed/simple; bh=R8StiIxxTjEX1J4tT31OY4k4rDXMY4yO/q8yNyqZcsQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IOc9TkAyvdrwYycM6McgeZ1n6DU0NOoIZFl/mWkzCILS2DcmusSYc9ctvle5Su1r2ZU3dBd70MFf39GIY/MrS8CnfEQwbhDgvBolW0Ie7Yp6mR6mDLlkCycDP3VKz2RVg+wZzxPRGFnZeffcxP0dwne93jp1HmXL9wXzIrqh110= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JXiqUdcz; 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="JXiqUdcz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1D41C4CEED; Wed, 18 Jun 2025 09:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238936; bh=R8StiIxxTjEX1J4tT31OY4k4rDXMY4yO/q8yNyqZcsQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JXiqUdczAkyphocaFaE0YFXqeyzYbnx4vQNgM9RERZd8TM+jspJf4kWzcv55fkzv6 YvoFWyTbbXvUPOv3lTjGZV5tMqpZPEbvSGTyfMBG89Nngu/LkdoK8ezRzu0Xkhpw0u msPDE4+BoeI7kHft4Ng289GsGvvuY/P2x+G6Yt5s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38006: net: mctp: Don't access ifa_index when missing Date: Wed, 18 Jun 2025 11:28:40 +0200 Message-ID: <2025061841-CVE-2025-38006-5478@gregkh> X-Mailer: git-send-email 2.49.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=2964; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=75029cnyW0rOhzcsaaSISPc2BKs4IG4QirlLxDTpEds=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbSclj14PThBPePPzyzY28fUz7vqdPJGhN+d9xEVpl nnNsn5+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRiFaGuWKC033fGrOyTJmd rKgrrFXG762mwTDfYerLG1kVF2Z+fMN65C1D4mVDT+F1AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: mctp: Don't access ifa_index when missing In mctp_dump_addrinfo, ifa_index can be used to filter interfaces, but only when the struct ifaddrmsg is provided. Otherwise it will be comparing to uninitialised memory - reproducible in the syzkaller case from dhcpd, or busybox "ip addr show". The kernel MCTP implementation has always filtered by ifa_index, so existing userspace programs expecting to dump MCTP addresses must already be passing a valid ifa_index value (either 0 or a real index). BUG: KMSAN: uninit-value in mctp_dump_addrinfo+0x208/0xac0 net/mctp/device.c:128 mctp_dump_addrinfo+0x208/0xac0 net/mctp/device.c:128 rtnl_dump_all+0x3ec/0x5b0 net/core/rtnetlink.c:4380 rtnl_dumpit+0xd5/0x2f0 net/core/rtnetlink.c:6824 netlink_dump+0x97b/0x1690 net/netlink/af_netlink.c:2309 The Linux kernel CVE team has assigned CVE-2025-38006 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 583be982d93479ea3d85091b0fd0b01201ede87d and fixed in 6.6.92 with commit acab78ae12c7fefb4f3bfe22e00770a5faa42724 Issue introduced in 5.15 with commit 583be982d93479ea3d85091b0fd0b01201ede87d and fixed in 6.12.30 with commit d4d1561d17eb72908e4489c0900d96e0484fac20 Issue introduced in 5.15 with commit 583be982d93479ea3d85091b0fd0b01201ede87d and fixed in 6.14.8 with commit 24fa213dffa470166ec014f979f36c6ff44afb45 Issue introduced in 5.15 with commit 583be982d93479ea3d85091b0fd0b01201ede87d and fixed in 6.15 with commit f11cf946c0a92c560a890d68e4775723353599e1 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-38006 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: net/mctp/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/acab78ae12c7fefb4f3bfe22e00770a5faa42724 https://git.kernel.org/stable/c/d4d1561d17eb72908e4489c0900d96e0484fac20 https://git.kernel.org/stable/c/24fa213dffa470166ec014f979f36c6ff44afb45 https://git.kernel.org/stable/c/f11cf946c0a92c560a890d68e4775723353599e1