AZL-118715: CVE-2026-143394 affecting package kernel 6.6.161.1-1
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 struct km_event in xfrm_replay_notify(), xfrm_replay_notify_bmp(), and xfrm_replay_notify_esn() so the replay-event header fields .seq and .portid are defined as 0.
Event History
Frequently Asked Questions
Who can observe the affected replay notifications?
The issue affects consumers of XFRM_MSG_NEWAE netlink replay-event notifications. Request-driven XFRM paths are not affected because they set the sequence and port ID from the requester.
What information is exposed by the flaw?
The netlink header can contain uninitialised stack values in its sequence and port ID fields. The replay-notify path does not assign those fields before constructing the kernel-originated notification.
Is an attacker required to send a request to trigger the affected path?
No. The affected path is the kernel-originated replay notification path, unlike the request-driven xfrm_get_ae() and xfrm_new_ae() paths.
What behavior should the corrected implementation have?
Kernel-originated replay notifications should use zero for the netlink header sequence and port ID. The fix zero-initialises the km_event structure before the notification is built.