CVE-2026-143394: xfrm: zero-initialise km_event in the replay-notify path
In the Linux kernel, the following vulnerability has been resolved:
xfrm: zero-initialise kmevent in the replay-notify path
xfrmreplaynotify(), xfrmreplaynotifybmp() and xfrmreplaynotifyesn() declare a struct kmevent on the stack and initialise only its .event and .data.aevent fields, leaving .seq and .portid uninitialised. buildaevent() then builds the XFRMMSGNEWAE message with those fields:
nlmsgput(skb, c->portid, c->seq, ...)
so the netlink header of a replay event carries uninitialised stack values rather than defined ones. This was confirmed at runtime rather than by inspection alone: the .seq and .portid carried in that header hold values that nothing in the replay path assigns.
The request-driven paths set these header fields from the requester (xfrmgetae() / xfrmnewae()); only the kernel-originated replay path leaves them unset. Zero-initialise the event so the header fields are 0, the correct value for a kernel-originated notification.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Zero-initialise the stack-allocated struct km_event in xfrm_replay_notify(), xfrm_replay_notify_bmp(), and xfrm_replay_notify_esn() so replay-event header fields such as .seq and .portid are defined.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel XFRM replay-notification path are affected. The issue occurs when the kernel generates an XFRM_MSG_NEWAE replay event; request-driven XFRM paths initialize the relevant netlink header fields and are not the affected path.
What must occur for the uninitialized values to be exposed?
The kernel must emit a replay notification through xfrm_replay_notify(), xfrm_replay_notify_bmp(), or xfrm_replay_notify_esn(). In that kernel-originated path, the netlink message header is built using stack values for sequence number and port ID that were not assigned.
What can be done if the fix cannot be applied immediately?
The provided data does not identify a configuration workaround. Mitigation therefore requires avoiding or limiting reliance on XFRM replay notifications until a kernel containing the zero-initialization fix is deployed.