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 9A2793E0235 for ; Fri, 24 Apr 2026 14:48:38 +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=1777042118; cv=none; b=GoEueFg1Jg4c/rIY3s5a4x8yEo0wqIvqj0H2cpA0y9ikwlrXqyrYOUSHMN4EAgMiTfllOxTRmAO1+dRgrUke9SGz9yIsx4FaGLsyxkYXzHvvAZFVv5mV891I+ne3peM0UHP9U6/PRkpaALhcaomyfo/Q9/cAbthtCRz8/XgSOac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042118; c=relaxed/simple; bh=CSk5QbZu9OyEKxQ7ySE869Js5VMdTOgMVxWe4CcDVto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z7F0dXtSN2LiXrxW9eIoUO9nQ23zT1sPR5xQLcCh3G/3mnGmnRv9ul9CVI1wbsiD45E8wtPuH1Xu9AUKxhr3u+8lc2wGWYfC3i0s9+V04cIl163LtlkN54O75qOK67lgW9KcpWNkn/P0YL7+7Ic0MnchgSL8iYJX1LcRPdh+gTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uP5xg9yB; 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="uP5xg9yB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 280AFC19425; Fri, 24 Apr 2026 14:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042118; bh=CSk5QbZu9OyEKxQ7ySE869Js5VMdTOgMVxWe4CcDVto=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uP5xg9yB4Jis/89llMraRAyFpQNWQaqcxRl5o15aEe34OPL+wfL7PkeTHCyDglrII QoPlUoBqp596sGyQyp6DWXIwc2AewJ+5vrJrTjf/61ogN4zocabtOf+hfRPLh30rpk hejXShWp0pVplk+3YXR4JXnju1cmnwTIhQ1RGGKU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31664: xfrm: clear trailing padding in build_polexpire() Date: Fri, 24 Apr 2026 16:46:26 +0200 Message-ID: <2026042405-CVE-2026-31664-d315@gregkh> X-Mailer: git-send-email 2.53.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=3187; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y0YXO0R1FM5YfdhtabJt9tXDydvQ/A+o/A9RvNFCTAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm3Tz91S5pIT5/PVWdf3mtOYnx84PvTMdvz3/kL033 tHX+nxVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkminDPMWPl86U9O6I096+ 8V35pJa8l87JcQwLmnI2fjh0bGdwQLdCm2Rv6TGGzY0mAA== 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: xfrm: clear trailing padding in build_polexpire() build_expire() clears the trailing padding bytes of struct xfrm_user_expire after setting the hard field via memset_after(), but the analogous function build_polexpire() does not do this for struct xfrm_user_polexpire. The padding bytes after the __u8 hard field are left uninitialized from the heap allocation, and are then sent to userspace via netlink multicast to XFRMNLGRP_EXPIRE listeners, leaking kernel heap memory contents. Add the missing memset_after() call, matching build_expire(). The Linux kernel CVE team has assigned CVE-2026-31664 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.169 with commit ac6985903db047eaff54db929e4bf6b06782788e Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.135 with commit c221ed63a2769a0af8bd849dfe25740048f34ef4 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.82 with commit eda30846ea54f8ed218468e5480c8305ca645e37 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.23 with commit b1dfd6b27df35ef4f87825aa5f607378d23ff0f2 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.19.13 with commit e1af65c669ebb1666c54576614c01a7f9ffcfff6 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0 with commit 71a98248c63c535eaa4d4c22f099b68d902006d0 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-31664 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/xfrm/xfrm_user.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/ac6985903db047eaff54db929e4bf6b06782788e https://git.kernel.org/stable/c/c221ed63a2769a0af8bd849dfe25740048f34ef4 https://git.kernel.org/stable/c/eda30846ea54f8ed218468e5480c8305ca645e37 https://git.kernel.org/stable/c/b1dfd6b27df35ef4f87825aa5f607378d23ff0f2 https://git.kernel.org/stable/c/e1af65c669ebb1666c54576614c01a7f9ffcfff6 https://git.kernel.org/stable/c/71a98248c63c535eaa4d4c22f099b68d902006d0