CVE-2026-31664·Kernel vulnerability
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().
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.13
Fixed in: 6.19.13
How to fix this CVE
Update your Linux kernel to version 6.19.13 or later to patch the memory disclosure vulnerability in the xfrm subsystem. This vulnerability allows uninitialized kernel heap memory to leak to unprivileged userspace processes through netlink multicast messages. Apply the patch immediately on systems running kernel versions 6.19 through 6.19.12, particularly those with xfrm (IPsec) policy expiration monitoring enabled.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r | grep -E '^6\.19\.(0|1|2|3|4|5|6|7|8|9|10|11|12)($|-)'
- Verify xfrm module is loaded: lsmod | grep -i xfrm or cat /proc/modules | grep xfrm
- Check for xfrm policy listeners in netlink: grep -r XFRMNLGRP_EXPIRE /var/log/kern.log* 2>/dev/null || journalctl -k | grep -i xfrm
- Confirm patch applied: cat /proc/version and verify kernel version is 6.19.13 or later, or verify via: git log --oneline | grep -i 'clear trailing padding'
FAQ
What is CVE-2026-31664?
CVE-2026-31664 is a kernel information disclosure vulnerability in the xfrm (IPsec transform) subsystem where uninitialized heap memory from struct xfrm_user_polexpire is leaked to unprivileged userspace listeners via netlink multicast, potentially exposing sensitive kernel data.
Is CVE-2026-31664 being actively exploited?
No, there is no evidence of active exploitation in the wild and this CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the information disclosure nature means it should still be patched promptly.
What versions of Kernel are affected by CVE-2026-31664?
Linux kernel versions 6.19 through 6.19.12 are vulnerable. The fix is included in kernel 6.19.13 and later versions.
How do I check if my server is vulnerable to CVE-2026-31664?
Run 'uname -r' and check if the output matches 6.19.0 through 6.19.12. If it does, and xfrm is active on your system (check with 'lsmod | grep xfrm'), your system is vulnerable.
Does Defensia detect CVE-2026-31664?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31664 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/71a98248c63c535eaa4d4c22f099b68d902006d0
- https://git.kernel.org/stable/c/a5127501c8d30b5728791b1e340284ca5c9cc4bd
- https://git.kernel.org/stable/c/ac6985903db047eaff54db929e4bf6b06782788e
- https://git.kernel.org/stable/c/b1dfd6b27df35ef4f87825aa5f607378d23ff0f2
- https://git.kernel.org/stable/c/c221ed63a2769a0af8bd849dfe25740048f34ef4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31664. Free for 1 server.
Get started free