CVE-2026-80843 PUBLISHED

xfrm: fix xfrm_state_construct() auth-trunc leak

Assigner: Linux
Reserved: 26.08.2026 Published: 04.09.2026 Updated: 04.09.2026

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

xfrm: fix xfrm_state_construct() auth-trunc leak

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

xfrm_state_construct() then treats !x->props.aalgo as "no auth algorithm attached yet" and calls attach_auth(). 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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to 958ae9f261319e1cdc44879886bcda2263258cca (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to fb7f3e74789a3c89647f4eb768f6dfaf4a751e72 (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to ba0c110c205855b3f1e3130d8c0fdb484d704c8c (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to c8837bbe792257af547fd1c0252553ce13148795 (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to 71d42da01740ec6557837bebec0bc48cfc3b4c39 (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to cf67361e78dca488d6e4df8396a53e6745a3a80e (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to 37426395cb90ef217beec8407a14bd82153793d3 (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to be19d20e53a239572bb2a28efcc1cd2b069b1ef9 (excl.)
  • affected from 4447bb33f09444920a8f1d89e1540137429351b6 to c12cbf56320fb633484ee0ca1fb7d68d6b64b213 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.33 is affected
  • unaffected from 0 to 2.6.33 (excl.)
  • unaffected from 5.10.269 to 5.10.* (incl.)
  • unaffected from 5.15.220 to 5.15.* (incl.)
  • unaffected from 6.1.187 to 6.1.* (incl.)
  • unaffected from 6.6.156 to 6.6.* (incl.)
  • unaffected from 6.12.108 to 6.12.* (incl.)
  • unaffected from 6.18.49 to 6.18.* (incl.)
  • unaffected from 7.1.13 to 7.1.* (incl.)
  • unaffected from 7.2.3 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References