CVE-2026-98229: xfrm: save input state data before secpath resets

Published Oct 6, 2026
·
Updated

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

xfrm: save input state data before secpath resets

xfrminput() stores the current xfrmstate in the skb secpath while it continues receive-side processing. Some input paths can reset that secpath before xfrminput() has finished dereferencing the state.

Receive callback users such as VTI and XFRM interfaces can reset the secpath. The VTI receive path does so before checking whether the packet crosses network namespaces, while the XFRM interface path does so only for cross-network-namespace packets. The XFRMMAXDEPTH error path can also reset the secpath before the final drop callback reports the current state's protocol.

If secpathreset() drops the last state reference while the state is concurrently deleted, xfrminput() can still dereference the freed state when selecting transportfinish() or reporting the drop callback protocol.

Save the state protocol on the stack while the state is still valid, and use the already saved address family for transportfinish(). A larval XFRMSTATEACQ state has no type, so retain nexthdr as its protocol. This preserves the existing drop-path fallback while avoiding the post-reset state dereferences without adding an extra state reference to every received packet.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 6, 2026
CVE Published
via MITRE·08:45 AM
Data Sourced
via MITRE·08:45 AM
DescriptionSeverity
Data Sourced
via NVD·09:18 AM
DescriptionSeverity
Oct 7, 2026
Data Sourced
via Microsoft·08:13 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are most exposed to this issue?

Systems using VTI receive processing or XFRM interfaces are the relevant exposure cases. VTI can reset the security path before checking network-namespace crossing, while XFRM interfaces do so for packets crossing network namespaces.

2

What conditions are involved in triggering the use-after-free?

A receive-side path must reset the packet's secpath while xfrm_input() still needs the current xfrm_state, and the last state reference must be dropped while that state is concurrently deleted. The XFRM_MAX_DEPTH error path can also reset secpath before the final drop callback uses the state's protocol.

3

Are larval XFRM acquisition states handled differently by the fix?

Yes. A larval XFRM_STATE_ACQ state has no type, so the fix retains nexthdr as its protocol to preserve the existing drop-path fallback.

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