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 3E3B03DBB3 for ; Fri, 17 May 2024 11:52:39 +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=1715946759; cv=none; b=UKSFY/XduGmU29znd/SZcElkQMH3s/kgDh6/UXtOzYVnFss7Rfgx3CpzLXthzaJR+Ta+7zcWynqc/I+R3fdmhzh9qsPo53cj/HuAVWcP7hUHERDX1Yv4CtxBMEWGoKUt7g/aHCx3UC6gNpvHOIUuDyPbfZuRK+I2BF0fimB4Gtw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946759; c=relaxed/simple; bh=Y99CXAYoVZnLK+Os5+OSAlatvh18l5cNxKF24DCiFqk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fi3ONLRmbJhMhxUv86hCHhgSkvXbZCVeF5lKsE7a0ZiEQZ3uNgTR6MsbpUbZmQvn9aA0EPFln6iXB3A73I7OjOcT3FMTh/1R5Zr3sI9FnEJZv5OzgXSj/5/PsOl5wXknJZWYpZM6uKzRUefPO3r2mtLAzGv4iaYJvWt1zNOqle8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CauFhMVY; 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="CauFhMVY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B05E7C2BD11; Fri, 17 May 2024 11:52:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946759; bh=Y99CXAYoVZnLK+Os5+OSAlatvh18l5cNxKF24DCiFqk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CauFhMVYWJGKA0m2QgV55h/K64/ptMxPKIVs8C3a2ijOHHPfSWGIwCafTRxOvt5RU XePUAjV+n516EQqr7qjDWfa34jILAc7KS0abIEWRWxbylmmUb2AIJ2zziK2U1jc80P pL5WDaOceF7MtgVRrTp1lRhbMeHFBczjiCp8Vldw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27418: net: mctp: take ownership of skb in mctp_local_output Date: Fri, 17 May 2024 13:52:10 +0200 Message-ID: <2024051703-CVE-2024-27418-3cda@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=2350; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y99CXAYoVZnLK+Os5+OSAlatvh18l5cNxKF24DCiFqk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuLo+bWZ9GGL2QnXxqfirzdZbHjcXMy2bcln9e/yKP4 7+R5dKIjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIqXqGBRe/JtVxun2K3MK0 +Y6M0wr1Uy6xJQzzo0LzV0/4LLviyfRvjiHf/htp1vIlAAA= 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: mctp: take ownership of skb in mctp_local_output Currently, mctp_local_output only takes ownership of skb on success, and we may leak an skb if mctp_local_output fails in specific states; the skb ownership isn't transferred until the actual output routing occurs. Instead, make mctp_local_output free the skb on all error paths up to the route action, so it always consumes the passed skb. The Linux kernel CVE team has assigned CVE-2024-27418 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 833ef3b91de6 and fixed in 6.1.81 with commit a3c8fa54e904 Issue introduced in 5.15 with commit 833ef3b91de6 and fixed in 6.6.21 with commit cbebc55ceace Issue introduced in 5.15 with commit 833ef3b91de6 and fixed in 6.7.9 with commit a639441c880a Issue introduced in 5.15 with commit 833ef3b91de6 and fixed in 6.8 with commit 3773d65ae515 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-27418 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/mctp.h net/mctp/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/a3c8fa54e904b0ddb52a08cc2d8ac239054f61fd https://git.kernel.org/stable/c/cbebc55ceacef1fc0651e80e0103cc184552fc68 https://git.kernel.org/stable/c/a639441c880ac479495e5ab37e3c29f21ae5771b https://git.kernel.org/stable/c/3773d65ae5154ed7df404b050fd7387a36ab5ef3