CVE-2026-31664

published 24 Apr 2026 · updated 13 Nov 2026

xfrm: clear trailing padding in build_polexpire()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eda30846ea54f8ed218468e5480c8305ca645e37, Kernel 6.18.23, Kernel 6.19.13 and 12 more.

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().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <eda30846ea54f8ed218468e5480c8305ca645e37, >=6.13 <6.18.23, >=6.19 <6.19.13, >=6.2 <6.6.135, >=6.7 <6.12.82, =2.6.12, =7.0, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a5127501c8d30b5728791b1e340284ca5c9cc4bd, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ac6985903db047eaff54db929e4bf6b06782788e, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b1dfd6b27df35ef4f87825aa5f607378d23ff0f2, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c221ed63a2769a0af8bd849dfe25740048f34ef4, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e1af65c669ebb1666c54576614c01a7f9ffcfff6, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e6f4ffe8596947a595c9544e73a73adcb0568b88, >=2.6.12.1 <6.1.169, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <71a98248c63c535eaa4d4c22f099b68d902006d0eda30846ea54f8ed218468e5480c8305ca645e37, 6.18.23, 6.19.13, 6.6.135, 6.12.82, a5127501c8d30b5728791b1e340284ca5c9cc4bd, ac6985903db047eaff54db929e4bf6b06782788e, b1dfd6b27df35ef4f87825aa5f607378d23ff0f2, c221ed63a2769a0af8bd849dfe25740048f34ef4, e1af65c669ebb1666c54576614c01a7f9ffcfff6, e6f4ffe8596947a595c9544e73a73adcb0568b88, 6.1.169, 71a98248c63c535eaa4d4c22f099b68d902006d0
linux-kernel: Kernel>=2.6.12 <5.10.258, >=5.11.0 <5.15.209, >=5.16.0 <6.1.169, >=6.13.0 <6.18.23, >=6.19.0 <6.19.13, >=6.2.0 <6.6.135, >=6.7.0 <6.12.825.10.258, 5.15.209, 6.1.169, 6.18.23, 6.19.13, 6.6.135, 6.12.82

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-31664 severity on Zeptric[![CVE-2026-31664](https://zeptric.io/badge/cve/CVE-2026-31664.svg)](https://zeptric.io/cve/CVE-2026-31664)