From mboxrd@z Thu Jan 1 00:00:00 1970 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 AE47B1A5B98 for ; Thu, 27 Feb 2025 02:19: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=1740622746; cv=none; b=k9YDJukJzyOgp7uLuUBfb/ArOZYS1KV/v1Z0FeTONv8JIq/YU+1myaJOwPn1Wlg9ZwbTn5wnOybBj1upVNSU/jUvEPXavFIU0eXrDFQzQtrHlkhNzRM8g9zOY2bi7XKmv9PbfIZfbmbu3DXeKVzW3qqViBjipOjtOxF9kLWRfdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622746; c=relaxed/simple; bh=ItaL7aJ1+L4vehIfdoaFDhqpzQX0G0u1nbcHR/y+TUc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nsvz9ctJHKI0Oq+Mbuwf7ReCgXB1+yxwgYlLzydi6zQuSllf2ntn7SIVxApkh9Qyx2qQciXk9ivMvZhLZL1LO2vRN8DZCxf/hyE/fWTSglVrjNetUXLh46OsEvAj4d3pusVXe/b3n3pZUNIxKHhRLcIEHlZ7Jh5on5JcpEDfo5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QI5TPjr1; 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="QI5TPjr1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2196BC4CEE8; Thu, 27 Feb 2025 02:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622746; bh=ItaL7aJ1+L4vehIfdoaFDhqpzQX0G0u1nbcHR/y+TUc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QI5TPjr1KIQNN8UP2rp8As6hQgIKzAMv+bISIA1p3li4+CpImWg1JF8yhaxiFUR1G fidn/cGmcYg4QseDEUD//E3eMoBtc5jG7Dj0oFLENBmL1jwCpF08R9HguAFWu8aLeP ykFwYMlttTcTDU02WlTWGOrQwVvCJL9kZ/d1Kd7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21791: vrf: use RCU protection in l3mdev_l3_out() Date: Wed, 26 Feb 2025 18:17:47 -0800 Message-ID: <2025022609-CVE-2025-21791-6074@gregkh> X-Mailer: git-send-email 2.48.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=2683; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ItaL7aJ1+L4vehIfdoaFDhqpzQX0G0u1nbcHR/y+TUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T6ue5ucT3KzM/SP6aczUUIskhd8dEitb3qz2kzoyM +zXo3K/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI31UMCxoOH0vNDGa78OPT v2nS3S8ml/x9msQwV+yuVt7s2T7c0r7FmlVR8e8EtXv+AwA= 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: vrf: use RCU protection in l3mdev_l3_out() l3mdev_l3_out() can be called without RCU being held: raw_sendmsg() ip_push_pending_frames() ip_send_skb() ip_local_out() __ip_local_out() l3mdev_ip_out() Add rcu_read_lock() / rcu_read_unlock() pair to avoid a potential UAF. The Linux kernel CVE team has assigned CVE-2025-21791 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit a8e3e1a9f02094145580ea7920c6a1d9aabd5539 and fixed in 6.1.129 with commit c7574740be8ce68a57d0aece24987b9be2114c3c Issue introduced in 4.9 with commit a8e3e1a9f02094145580ea7920c6a1d9aabd5539 and fixed in 6.6.79 with commit c40cb5c03e37552d6eff963187109e2c3f78ef6f Issue introduced in 4.9 with commit a8e3e1a9f02094145580ea7920c6a1d9aabd5539 and fixed in 6.12.16 with commit 022cac1c693add610ae76ede03adf4d9d5a2cf21 Issue introduced in 4.9 with commit a8e3e1a9f02094145580ea7920c6a1d9aabd5539 and fixed in 6.13.4 with commit 7b81425b517accefd46bee854d94954f5c57e019 Issue introduced in 4.9 with commit a8e3e1a9f02094145580ea7920c6a1d9aabd5539 and fixed in 6.14-rc3 with commit 6d0ce46a93135d96b7fa075a94a88fe0da8e8773 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-21791 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: include/net/l3mdev.h 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/c7574740be8ce68a57d0aece24987b9be2114c3c https://git.kernel.org/stable/c/c40cb5c03e37552d6eff963187109e2c3f78ef6f https://git.kernel.org/stable/c/022cac1c693add610ae76ede03adf4d9d5a2cf21 https://git.kernel.org/stable/c/7b81425b517accefd46bee854d94954f5c57e019 https://git.kernel.org/stable/c/6d0ce46a93135d96b7fa075a94a88fe0da8e8773