CVE-2026-64579: xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsert

Published Aug 5, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

xfrm: policy: preallocate inexact bins before xfrmhashrebuild reinsert

xfrmhashrebuild()'s first loop preallocates the bins/chains the reinsert loop needs, so the reinsert (after hlistdelrcu()) cannot allocate or fail. But its guard is inverted: it skips policies with prefixlen < threshold and preallocates for the rest.

prefixlen < threshold is exactly when policyhashbysel() returns NULL and the reinsert takes the allocating xfrmpolicyinexactinsert() path. So the loop preallocates for the exact policies (which never allocate) and skips the inexact ones, whose bin/node is then allocated GFPATOMIC during reinsert. On failure the error path only WARNONCE()s and continues, leaving a poisoned bydst node; the next rebuild's hlistdelrcu() dereferences LISTPOISON2 and takes a GPF. Reachable under memory pressure, deterministic via failslab.

Invert the guard so preallocation covers exactly the reinserted policies; the reinsert then allocates nothing and cannot fail.

Crash: Oops: general protection fault, probably for non-canonical address 0xfbd59c0000000024: 0000 [#1] SMP KASAN NOPTI KASAN: maybe wild-memory-access in range [0xdead...] ... Workqueue: events xfrmhashrebuild RIP: 0010:xfrmhashrebuild+0x5b3/0x1190 RAX: dead000000000122 (LISTPOISON2 + offset) ... Call Trace: hlistdelrcu (include/linux/rculist.h:599) xfrmhashrebuild (net/xfrm/xfrmpolicy.c:1365) processonework (kernel/workqueue.c:3322) workerthread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) ... Kernel panic - not syncing: Fatal exception in interrupt

Event History

Aug 5, 2026
CVE Published
via MITRE·08:09 AM
Data Sourced
via MITRE·08:09 AM
Description
Data Sourced
via NVD·08:16 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-64579?

The severity of CVE-2026-64579 is rated as 46.

2

How do I fix CVE-2026-64579?

To fix CVE-2026-64579, update to the latest version of the Linux kernel where this vulnerability has been resolved.

3

What type of vulnerability is CVE-2026-64579?

CVE-2026-64579 is a kernel vulnerability related to memory management in the xfrm hash rebuild process.

4

Who is affected by CVE-2026-64579?

All users running affected versions of the Linux kernel where xfrm functionality is utilized may be at risk due to CVE-2026-64579.

5

What systems are impacted by CVE-2026-64579?

CVE-2026-64579 affects systems using specific configurations of the Linux kernel that implement xfrm policies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203