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 1C61A1E6DFF for ; Wed, 4 Sep 2024 19:57:12 +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=1725479833; cv=none; b=ahk+UXQ18gushlayoPfQKfXYo4RximqR9oOND5HYQv6h6VinOfGfYjyhFsuFfMIYxLNXz8z+PUL2Hoxbxq/JYnFsbmTTCAwkDwtbs6Xv0nJut5fv8CezZkrBMrW3Q4fGMPAW8eo8dTCm2w/bozfXJ5D3ixRNqCqwAdRvnn9oPLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479833; c=relaxed/simple; bh=/5gCSrxRdGZ/kcEVbB0iGGwQXWPY/UZ0YsESPE4IeTM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PhaYjJuh6EEz6o9COKoHwqBBqn0Lr55VFMCRuXCYyuUrYRYVd1dQyh7b0EhPhHjXvYES2Fy3SXxottiX6pqWXzk5kIfwrvG+5kBcJhdoV2zZbZcDsLXphu5K3zqWgtgHeIPCq+ThK4YelBjIrrbXElGQGN5iLCzOr3oDls39h5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dEiDFTa+; 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="dEiDFTa+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 509F4C4CEC2; Wed, 4 Sep 2024 19:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479832; bh=/5gCSrxRdGZ/kcEVbB0iGGwQXWPY/UZ0YsESPE4IeTM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dEiDFTa+SUknf4wQSF6p3z6QNSGYrQKTb1UBWsMJHXVnS56s8ilFf3MFCAyvyLWOr 7Rat8i/Oto/iESrhdw3tKpM3FXJMNHSQVBqfk9mlFJL+M9DJ7wLzcnVBP4XHLtsbwZ zdPcLC6m6g29DLZsB9LcVY5bSEtQRLmufWSOh0TQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44986: ipv6: fix possible UAF in ip6_finish_output2() Date: Wed, 4 Sep 2024 21:56:51 +0200 Message-ID: <2024090445-CVE-2024-44986-1197@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=2520; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/5gCSrxRdGZ/kcEVbB0iGGwQXWPY/UZ0YsESPE4IeTM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dtfWMV2aYzXz3dVnkvavp8dE5ZsdOalWxXqo89Gnf ZJ7Uv9864hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ3PzLsGCP+atf4Wzft9lM O7e7bOd3xvauTB2G+ZGmtiGb9W4FtPnM3NwQ/3JnB/+C1QA= 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: ipv6: fix possible UAF in ip6_finish_output2() If skb_expand_head() returns NULL, skb has been freed and associated dst/idev could also have been freed. We need to hold rcu_read_lock() to make sure the dst and associated idev are alive. The Linux kernel CVE team has assigned CVE-2024-44986 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 5796015fa968 and fixed in 5.15.166 with commit e891b36de161 Issue introduced in 5.14 with commit 5796015fa968 and fixed in 6.1.107 with commit 3574d28caf9a Issue introduced in 5.14 with commit 5796015fa968 and fixed in 6.6.48 with commit 6ab6bf731354 Issue introduced in 5.14 with commit 5796015fa968 and fixed in 6.10.7 with commit 56efc2531967 Issue introduced in 5.14 with commit 5796015fa968 and fixed in 6.11-rc5 with commit da273b377ae0 Issue introduced in 5.4.137 with commit ded37d03440d Issue introduced in 5.10.55 with commit 2323690eb058 Issue introduced in 5.13.7 with commit b34c668a867f 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-44986 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/ipv6/ip6_output.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/e891b36de161fcd96f12ff83667473e5067b9037 https://git.kernel.org/stable/c/3574d28caf9a09756ae87ad1ea096c6f47b6101e https://git.kernel.org/stable/c/6ab6bf731354a6fdbaa617d1ec194960db61cf3b https://git.kernel.org/stable/c/56efc253196751ece1fc535a5b582be127b0578a https://git.kernel.org/stable/c/da273b377ae0d9bd255281ed3c2adb228321687b