CVE-2026-80843: xfrm: fix xfrm_state_construct() auth-trunc leak

Published Sep 4, 2026
·
Updated

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

xfrm: fix xfrmstateconstruct() auth-trunc leak

attachauthtrunc() can allocate x->aalg while leaving x->props.aalgo at zero when the selected auth algorithm has no sadbalgid. One real case is cmac(aes).

xfrmstateconstruct() then treats !x->props.aalgo as "no auth algorithm attached yet" and calls attachauth(). That overwrites x->aalg and loses the first allocation. Any later failure or teardown only frees the replacement pointer.

Check whether x->aalg is already attached instead of inferring that state from x->props.aalgo.

Event History

Sep 4, 2026
CVE Published
via MITRE·03:54 PM
Data Sourced
via MITRE·03:54 PM
Description

Frequently Asked Questions

1

What configuration is needed to trigger the leak?

The affected path requires an auth-trunc algorithm that allocates x->aalg but has no sadb_alg_id. The description identifies cmac(aes) as a real example.

2

When does memory remain leaked?

After attach_auth_trunc() allocates x->aalg, xfrm_state_construct() can incorrectly call attach_auth() and overwrite that pointer. A subsequent failure or teardown frees only the replacement allocation, leaving the original allocation leaked.

3

What code change resolves the issue?

The fix checks whether x->aalg is already attached rather than using x->props.aalgo being zero to determine whether an authentication algorithm has been attached.

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