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 525673DBB3 for ; Fri, 17 May 2024 11:52:36 +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=1715946756; cv=none; b=aF+dBu0lkQQu00bUa73nt3pbMUIwkDO4xJPf9A/e0HaHfCXfS3kTwwWM68mP63a5kfgU0weH5PgyZ4fTmbEf7qcGJ+h62MdygCtm28/vqvSB9JD5W0xu6XKvHP5i5GTwo/GG/0bkwKkL0Rt/O+NwzQc/bLGE4dSn/mF1ZXRv8Fc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946756; c=relaxed/simple; bh=tbaUDhinMpj7Q2bznFT+Wb1xylm9v7o5ESw623+vh8s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ALvEIg/ZCXO3r1BJeTvIWEFaXTtG8HjibHHI0I2XG5/yCuKQNbWva6Ls2PHLRbO6vnl03bA1zBH7nTcn6tbBkzaUvR+/qhDKzQzTWD3t3rI9OGkNOZYLGobdFF9xX+CVUKJc0SwAcogwDWSf3cZtf3cvosDC5BAWb9WBDAJSGSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a3vDqvXr; 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="a3vDqvXr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB669C2BD11; Fri, 17 May 2024 11:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946756; bh=tbaUDhinMpj7Q2bznFT+Wb1xylm9v7o5ESw623+vh8s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a3vDqvXrQU0ahqDxIWhVXGhTCUuSU+KdkgRZT4p3hj8AupNKWNAQF6I3WCebVZS9A XSCUlvIpmSbZobYcYtMhZIR92/ezGI4PxGdXyjvjUryAm2FkeuisJpDiGVRYwrAPoj ItE1RzHDum6jyS9ELsbrKrFRx/pBuR/dZ21O1J/Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27417: ipv6: fix potential "struct net" leak in inet6_rtm_getaddr() Date: Fri, 17 May 2024 13:52:09 +0200 Message-ID: <2024051703-CVE-2024-27417-3841@gregkh> X-Mailer: git-send-email 2.45.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=2707; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tbaUDhinMpj7Q2bznFT+Wb1xylm9v7o5ESw623+vh8s=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuLo+bH7kvMNv41HZ5s/n/xedfMbxf1K25WNdqT/R/+ 8kzH0+w64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJrF7JMD9ZfI613SqGL5rG 93O+tpdZCk12iGNYcPTDhyIB5anczh1uxhkHtzy1mnf+HwA= 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 potential "struct net" leak in inet6_rtm_getaddr() It seems that if userspace provides a correct IFA_TARGET_NETNSID value but no IFA_ADDRESS and IFA_LOCAL attributes, inet6_rtm_getaddr() returns -EINVAL with an elevated "struct net" refcount. The Linux kernel CVE team has assigned CVE-2024-27417 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 5.4.271 with commit 9d4ffb5b9d87 Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 5.10.212 with commit 810fa7d5e520 Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 5.15.151 with commit 8a54834c03c3 Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 6.1.81 with commit 1b0998fdd857 Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 6.6.21 with commit 44112bc5c74e Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 6.7.9 with commit 33a1b6bfef6d Issue introduced in 4.20 with commit 6ecf4c37eb3e and fixed in 6.8 with commit 10bfd453da64 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-27417 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/addrconf.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/9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132 https://git.kernel.org/stable/c/810fa7d5e5202fcfb22720304b755f1bdfd4c174 https://git.kernel.org/stable/c/8a54834c03c30e549c33d5da0975f3e1454ec906 https://git.kernel.org/stable/c/1b0998fdd85776775d975d0024bca227597e836a https://git.kernel.org/stable/c/44112bc5c74e64f28f5a9127dc34066c7a09bd0f https://git.kernel.org/stable/c/33a1b6bfef6def2068c8703403759024ce17053e https://git.kernel.org/stable/c/10bfd453da64a057bcfd1a49fb6b271c48653cdb