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 D996F30216A for ; Tue, 28 Oct 2025 11:53:35 +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=1761652415; cv=none; b=MpMf0jL/ab8IGEqRAtEUidDWLqgYrmhJGttEu6JrJEnkS0YMYHUn0i3uresFmXgXOiWeUTBneygfTnhq6UXhMlwqowI83AKVMzHHgrXMFY4/45bQTkc7ob+rSpm7XAIEWr6N3lG1+N5/mCr4oTzory30kGlHf6YvRmj2yy1FpBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652415; c=relaxed/simple; bh=ABXLlkKe4nykutjPyaNJ+wDAfTJiy/vDSP05jzXSViU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DJJ6owEHNQV0+RMS02YFUSNgHQz5P0/0gVxiTo1RFmK/qmkcSCUmPvFKL2NMfcty/Sit8pFJvkQm40bPKLV6ohHeK3qnnYiGi7MzHciBQnbt0E9BZ+0RQkW6SklF5DEOJS9XRUpoeQq4RNp8o5ZYXz+AX/7BQr2lr6NOnjIOUWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1VrEbfol; 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="1VrEbfol" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EC97C4CEE7; Tue, 28 Oct 2025 11:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652415; bh=ABXLlkKe4nykutjPyaNJ+wDAfTJiy/vDSP05jzXSViU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1VrEbfoloU3aAohS7g3gwilwX1DnHTIgvsa6jg3Z/RI+186MNU7KDZuLq+hyLxt6k UncT9XqjbAvG/6mxtG06aFp0jpZu7fnRqzLrU5gqFW5zaaYSQJY3uwp0fw2/cQvEF6 MBdyW4RhvK9mYPwfnOi6XKe9OJtz+gZ2eJw/a46E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40074: ipv4: start using dst_dev_rcu() Date: Tue, 28 Oct 2025 12:48:51 +0100 Message-ID: <2025102819-CVE-2025-40074-8719@gregkh> X-Mailer: git-send-email 2.51.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=1990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pCWHlhhyg41RZHl1r4Kelv+YSaSYA1Ri4pYGibQAtxI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa5vd1t3Zb+S456apkqvizKvd0ivMGv9pJMQfSbyxR rGnI6m7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay7CnDgj2zJfJvayf88brh 25BkYndT8PSNHoYFDVbXg30Ut7tY5z9hmuyVcsa5vqMAAA== 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: ipv4: start using dst_dev_rcu() Change icmpv4_xrlim_allow(), ip_defrag() to prevent possible UAF. Change ipmr_prepare_xmit(), ipmr_queue_fwd_xmit(), ip_mr_output(), ipv4_neigh_lookup() to use lockdep enabled dst_dev_rcu(). The Linux kernel CVE team has assigned CVE-2025-40074 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 and fixed in 6.17.3 with commit 923e0734c386984d45de508528a7a7ad91d791cc Issue introduced in 4.13 with commit 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 and fixed in 6.18-rc1 with commit 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8 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-40074 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/ipv4/icmp.c net/ipv4/ip_fragment.c net/ipv4/ipmr.c net/ipv4/route.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/923e0734c386984d45de508528a7a7ad91d791cc https://git.kernel.org/stable/c/6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8