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 D89FC1E6337 for ; Wed, 4 Sep 2024 19:58:32 +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=1725479912; cv=none; b=Oro1e8R2yBAoKZUgeMsRPk7EUeWjqskS+mIUKft4eHTz1AoQIS6kuQznWb0hEwV3mRJIolxlMozSPq11Z9oBMhXsyOpYFPk0K1zvBDVROI6SpVvUHMD2m26+bSe2z7p22TcCNMqkL3RXzCV2yptzskH2zMVJK29RFP1TSw8RoYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479912; c=relaxed/simple; bh=lD/k91s424FLlA87Y5FVBXUgZdCJDyccwkhEtTgheP8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bIBJc1bOyjhKTIsqO+CYpQ4O4tdc4s5aoqYiucp2+R20apC9SOa86VT04ihhuMD8KNK3VBykYc6Sf3JR+sm+fiGIvDhk9sapkqEU22xSOGH+JltMhlDpeLEiCiScjcQYtfKyHpGGXph05WJen3hvi9gIw3vA2Lx0CVqUlYRk4u8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2TBkiCIt; 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="2TBkiCIt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52C91C4CEC2; Wed, 4 Sep 2024 19:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479912; bh=lD/k91s424FLlA87Y5FVBXUgZdCJDyccwkhEtTgheP8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2TBkiCItILTAZXVhG2tNwx/xoRmSzPDU7exH4NoMKMW79ynDou9quUUq/hy2vSkgo z+i1VbnfN99CkGFpOzSoko2NFNipXCW1Szh+WIcFTDmqY2gzOOazdDWqvx+YyoSKqk LgqwLEqvloxmv3HfSRNw80BxtBr595K3gm929T3g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44996: vsock: fix recursive ->recvmsg calls Date: Wed, 4 Sep 2024 21:57:01 +0200 Message-ID: <2024090448-CVE-2024-44996-8b26@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=2266; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lD/k91s424FLlA87Y5FVBXUgZdCJDyccwkhEtTgheP8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3djcYd36YFZLM3cCobZQmLiLx44Wh3X7rE3LO9meVg +pXXszsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImEfmGY77R/2redO+VvPVpo mKMQ8nXTpfBPWxkWnNzLsdJSJpmBMW1Fyt33Fe4NkX0WAA== 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: vsock: fix recursive ->recvmsg calls After a vsock socket has been added to a BPF sockmap, its prot->recvmsg has been replaced with vsock_bpf_recvmsg(). Thus the following recursiion could happen: vsock_bpf_recvmsg() -> __vsock_recvmsg() -> vsock_connectible_recvmsg() -> prot->recvmsg() -> vsock_bpf_recvmsg() again We need to fix it by calling the original ->recvmsg() without any BPF sockmap logic in __vsock_recvmsg(). The Linux kernel CVE team has assigned CVE-2024-44996 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 634f1a7110b4 and fixed in 6.6.48 with commit 921f1acf0c3c Issue introduced in 6.4 with commit 634f1a7110b4 and fixed in 6.10.7 with commit b4ee8cf1acc5 Issue introduced in 6.4 with commit 634f1a7110b4 and fixed in 6.11-rc4 with commit 69139d2919dd 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-44996 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/af_vsock.h net/vmw_vsock/af_vsock.c net/vmw_vsock/vsock_bpf.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/921f1acf0c3cf6b1260ab57a8a6e8b3d5f3023d5 https://git.kernel.org/stable/c/b4ee8cf1acc5018ed1369150d7bb3e0d0f79e135 https://git.kernel.org/stable/c/69139d2919dd4aa9a553c8245e7c63e82613e3fc