From mboxrd@z Thu Jan 1 00:00:00 1970 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 748F93CDBAA for ; Mon, 8 Jun 2026 15:42:17 +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=1780933338; cv=none; b=l99sJ7y2Y/+Hed52rQDVk8BqCN/+5OwKxg3EjFPWFYOing+aphJONe/kAzURRyra7xwKjAQLWslG7kcOku9dAzuWLEBnUgtCEZWUfhktFDwD6ZzfBW7gqUFiEcwL35l1nkselO+sM+4eSm7vTnn/NQ7uU5l1QVj2Zwbu6/o6qQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780933338; c=relaxed/simple; bh=IF+3nrP//miFKSYI3L6ibZF3PRkdHD+nc3tacMjia2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sz9xQl0XYra1qsMIcBgmGxrP2B3iCSf2l0iNmoUCZ1I+UrL4YkyKdk9oLw9gm4dWPP/ke92GMmKblboriZH0mmS7Fl/pcr/4tWBjPdLtBOx0YiFrYQDwGimc5eratvJxdTvLm582GhEdsd+RdSy2b96O3WG8w+XXmyTOjHkkcGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d8lcmWvt; 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="d8lcmWvt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84DB81F00893; Mon, 8 Jun 2026 15:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780933337; bh=JHT8H97ygNlXdBKsuuza6QiLd6S5ZB73k8ZN4Ru+cwQ=; h=From:To:Cc:Subject:Date:Reply-To; b=d8lcmWvtlGchATkqLw735ifeAkArExDzOh2LpAcf1LRC0HTnznvdFmi/1BxZvmNjR JYi7dKbXVnrumxIiZfV6qJeqp3nx24ID8pXFjbKsCM7Q5nrlC8pdFB7OTaNT2XfZG9 mmI7g/SBZmsvogEOuyAsLJuYD1s43lFBr2AypM5A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46281: vmalloc: fix buffer overflow in vrealloc_node_align() Date: Mon, 8 Jun 2026 17:40:45 +0200 Message-ID: <2026060842-CVE-2026-46281-60c8@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=2553; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B4COmW8nknwbDGmpAvsBXLvQ5lglMomv1ESkuL62h18=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlqj6pkrHX/mRTLrRJ9sL7lZlz/xJm5Mke3d+0Srd6xd +ZGx9fhHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRK+YM84zdlTf2yU5tMImt nLao5vC1/8buGgzzsw4f81gW+sn6uk3/3osXb/cmzZyrCQA= 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: vmalloc: fix buffer overflow in vrealloc_node_align() Commit 4c5d3365882d ("mm/vmalloc: allow to set node and align in vrealloc") added the ability to force a new allocation if the current pointer is on the wrong NUMA node, or if an alignment constraint is not met, even if the user is shrinking the allocation. On this path (need_realloc), the code allocates a new object of 'size' bytes and then memcpy()s 'old_size' bytes into it. If the request is to shrink the object (size < old_size), this results in an out-of-bounds write on the new buffer. Fix this by bounding the copy length by the new allocation size. The Linux kernel CVE team has assigned CVE-2026-46281 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 4c5d3365882dbbc0784688784904f440d7a4c0f1 and fixed in 6.18.27 with commit e9b057a44deff4c59c13f44672a5cc74dcd57522 Issue introduced in 6.18 with commit 4c5d3365882dbbc0784688784904f440d7a4c0f1 and fixed in 7.0.4 with commit b281adf71f786c325eb6d6d1582d4d05313438a8 Issue introduced in 6.18 with commit 4c5d3365882dbbc0784688784904f440d7a4c0f1 and fixed in 7.1-rc2 with commit 82d1f01292d3f09bf063f829f8ab8de12b4280a1 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-46281 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: mm/vmalloc.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/e9b057a44deff4c59c13f44672a5cc74dcd57522 https://git.kernel.org/stable/c/b281adf71f786c325eb6d6d1582d4d05313438a8 https://git.kernel.org/stable/c/82d1f01292d3f09bf063f829f8ab8de12b4280a1