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 18D3B182D29 for ; Thu, 30 May 2024 15:36:13 +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=1717083373; cv=none; b=f+D3LrobSHON/JSZHdszm3ebpPOgU3U+dmAMo0N2LKxcdwIraeWzBY87AdLKjRqWYbS+5URDDLpLA42rgJ0w2PqykOXcfYdTWSbcHBNnbsVdxRDev93KwHl/UF0NbaLNyqWDtYR0YjzJKphIN+i7rgI+6ERK3+UcpFMolcbfJ8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083373; c=relaxed/simple; bh=95uVcqEJPbufN2TLTZh8A36sclyjhHlvkXqzLQ7rwLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=njwL9zjvP4A+Mqspj7aNdrK/zlUSeZ+6M4u0avaf+EPT5EH6TicNtRkMQZeLrzwXhj/9I3Opdn5UCl7TbeLlgiXm1XrwQUibEb1YxFnwLJtgvqEPJfJwPX++aDIACZlk02O7gmshKJPZLnFFxXXh6FqH+BJ+XdG0AYQ6WnCM6/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jl3962NX; 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="Jl3962NX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A04C6C4AF08; Thu, 30 May 2024 15:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083373; bh=95uVcqEJPbufN2TLTZh8A36sclyjhHlvkXqzLQ7rwLs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Jl3962NX6bymVDyUGXoXEhlsb9lRbL8zN+Q1F7tlw65RP6zLyjZDXxZHp5qniwERD nmIJ8r8PFp2X8p9/sGYDNDjE2MnFdJ/r4xQnW8mu6e5+q+eMjoOgMHo7faItcav9HQ jan7rTM576DKPquKkGuY66s5giEsbMiy31z0KzK8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36945: net/smc: fix neighbour and rtable leak in smc_ib_find_route() Date: Thu, 30 May 2024 17:35:42 +0200 Message-ID: <2024053039-CVE-2024-36945-18ae@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=2183; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=95uVcqEJPbufN2TLTZh8A36sclyjhHlvkXqzLQ7rwLs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc04bX/pwgpvb1ejNHtfVrz63rPjg+2OnyF+t5JmNx UdSufLmdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVBYyzOEIrzh04PrJ89fs Fb0CeL+EB5+dmsKw4LAeR5WM2IpEN3YZ199PnWti11XvBAA= 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: net/smc: fix neighbour and rtable leak in smc_ib_find_route() In smc_ib_find_route(), the neighbour found by neigh_lookup() and rtable resolved by ip_route_output_flow() are not released or put before return. It may cause the refcount leak, so fix it. The Linux kernel CVE team has assigned CVE-2024-36945 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e5c4744cfb59 and fixed in 6.1.91 with commit d5a466ab6e78 Issue introduced in 5.16 with commit e5c4744cfb59 and fixed in 6.6.31 with commit 5df93c029a90 Issue introduced in 5.16 with commit e5c4744cfb59 and fixed in 6.8.10 with commit da91e447d06d Issue introduced in 5.16 with commit e5c4744cfb59 and fixed in 6.9 with commit 2ddc0dd7fec8 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-36945 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/smc/smc_ib.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/d5a466ab6e78d6f2e0f64435f1e17246c8e941ff https://git.kernel.org/stable/c/5df93c029a907b0ff5a4eeadd77ba06ff0a277d2 https://git.kernel.org/stable/c/da91e447d06dc649fcf46e59122e7bf8f0b2e0db https://git.kernel.org/stable/c/2ddc0dd7fec86ee53b8928a5cca5fbddd4fc7c06