CVE-2026-31664
xfrm: clear trailing padding in build_polexpire()
Check your servers for CVE-2026-31664
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31664 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.71% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a5127501c8d30b5728791b1e340284ca5c9cc4bd affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e6f4ffe8596947a595c9544e73a73adcb0568b88 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ac6985903db047eaff54db929e4bf6b06782788e affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c221ed63a2769a0af8bd849dfe25740048f34ef4 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before eda30846ea54f8ed218468e5480c8305ca645e37 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b1dfd6b27df35ef4f87825aa5f607378d23ff0f2 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e1af65c669ebb1666c54576614c01a7f9ffcfff6 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 71a98248c63c535eaa4d4c22f099b68d902006d0
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.169 up to and including 6.1.* unaffected from 6.6.135 up to and including 6.6.* unaffected from 6.12.82 up to and including 6.12.* unaffected from 6.18.23 up to and including 6.18.* unaffected from 6.19.13 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31664 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31664
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31664
trivy image --scanners vuln IMAGE | grep CVE-2026-31664
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a5127501c8d30b5728791b1e340284ca5c9cc4bd git.kernel.org
- https://git.kernel.org/stable/c/e6f4ffe8596947a595c9544e73a73adcb0568b88 git.kernel.org
- https://git.kernel.org/stable/c/ac6985903db047eaff54db929e4bf6b06782788e git.kernel.org
- https://git.kernel.org/stable/c/c221ed63a2769a0af8bd849dfe25740048f34ef4 git.kernel.org
- https://git.kernel.org/stable/c/eda30846ea54f8ed218468e5480c8305ca645e37 git.kernel.org
- https://git.kernel.org/stable/c/b1dfd6b27df35ef4f87825aa5f607378d23ff0f2 git.kernel.org
- https://git.kernel.org/stable/c/e1af65c669ebb1666c54576614c01a7f9ffcfff6 git.kernel.org
- https://git.kernel.org/stable/c/71a98248c63c535eaa4d4c22f099b68d902006d0 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2026-31664 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse