Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A80F33B47D8 for ; Thu, 28 May 2026 09:45:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961516; cv=none; b=uAatSpaFdb8ZitaBy59S1fpWY6Zw3nzgV9gO74NFNNJVcPTvN7VZmTEXaf8529Ijhb4367i37jtbtVFMFsxwaZH4klhqWTihF+/GNDX/oLpGlzoy+VikMxiHDM3N4KhWbYXolqSzlCDnfRV1CKK990r0BnCmHEt8enAwrjtoOE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961516; c=relaxed/simple; bh=LY+Cxsc8ZFQF5Ndv/eERUgEGWdEWvdRgvvHoJtNEH0I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r/GdWuUkwj6tzL79F3wvSyWjusjRiUUmLWqyS55+KEhxNIp4qs0sVmGUU/JRKN698NFKLJidH++Woq6B+TETz6SgRlyGagk7xSwGIC6GFWc/ifexyZ6By6voJM1qOKWESnxWP9/+tNrLW0ThtsQ7PrmUhPTeb+Hb7e+CKuWOWfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UIUKs+TV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UIUKs+TV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF4AB1F000E9; Thu, 28 May 2026 09:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961513; bh=Rd0UlvpA9o/uc6GtWcOldi/hTKAIa3bDt2U8oAnUtms=; h=From:To:Cc:Subject:Date:Reply-To; b=UIUKs+TV60nYcsDFjIYXd42tdMh4JomKu920M3xKYKcbyRyP2sjgQ+M8tgzVF0d+v QJYurXN/XtcVN/mCDz3DfIJQZBtn61okDihA7fy2iGN2osmLoXJc6aXuIIvhLts/e8 D1GEMNjt+2LoSeGAbv0EVuCv9r6pNzWZVhsCxzqs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46234: vsock: fix buffer size clamping order Date: Thu, 28 May 2026 11:41:09 +0200 Message-ID: <2026052840-CVE-2026-46234-bed5@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2947; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jO4su5TjOTUObXUXKFfcb4DL0jIl9Tnzn8IHM9ySmJo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSvDP+Lp624lDzIqv+x75r3DRnCb46lGMqKbZyt0KST y7PQrWyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIyhOGBUe7b/wQeX5tcn7C BnfdQ9fnfuLS2sUwV7QkP+VkyOrq0p18pc21WaffxFSvAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: vsock: fix buffer size clamping order In vsock_update_buffer_size(), the buffer size was being clamped to the maximum first, and then to the minimum. If a user sets a minimum buffer size larger than the maximum, the minimum check overrides the maximum check, inverting the constraint. This breaks the intended socket memory boundaries by allowing the vsk->buffer_size to grow beyond the configured vsk->buffer_max_size. Fix this by checking the minimum first, and then the maximum. This ensures the buffer size never exceeds the buffer_max_size. The Linux kernel CVE team has assigned CVE-2026-46234 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 and fixed in 6.6.140 with commit a998a7e250bf976539e05a00ec64a81292afecaa Issue introduced in 5.5 with commit b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 and fixed in 6.12.90 with commit 310da27932dd0afe7ce7456dfe1f0814c3301f41 Issue introduced in 5.5 with commit b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 and fixed in 6.18.32 with commit 2602f7bb5818e92315feeaeb71d8ce4d5c9ab160 Issue introduced in 5.5 with commit b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 and fixed in 7.0.9 with commit 0b68881501460c3761f196469e1e503218c5e536 Issue introduced in 5.5 with commit b9f2b0ffde0c9b666b2b1672eb468b8f805a9b97 and fixed in 7.1-rc1 with commit d114bfdc9b76bf93b881e195b7ec957c14227bab 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-2026-46234 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/vmw_vsock/af_vsock.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/a998a7e250bf976539e05a00ec64a81292afecaa https://git.kernel.org/stable/c/310da27932dd0afe7ce7456dfe1f0814c3301f41 https://git.kernel.org/stable/c/2602f7bb5818e92315feeaeb71d8ce4d5c9ab160 https://git.kernel.org/stable/c/0b68881501460c3761f196469e1e503218c5e536 https://git.kernel.org/stable/c/d114bfdc9b76bf93b881e195b7ec957c14227bab