]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-SIM/AKA peer: Fix use-after-free for privacy identity
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 22 Jan 2024 09:47:00 +0000 (11:47 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 22 Jan 2024 09:47:00 +0000 (11:47 +0200)
commite3d6fce848856feb6d835e52a2f50472c19a5950
tree75be9649cb6de0af43f3b96dff030c2b77f765b6
parentfd71cae6c971ff98d9093342d36871d3cec03694
EAP-SIM/AKA peer: Fix use-after-free for privacy identity

When the privacy protected itentity is used for EAP-SIM/AKA, the buffer
containing the identity was freed just before its use. Fix that by
reordering the operations.

Fixes: 881cb4198b55 ("EAP-SIM/AKA peer: Simplify identity selection for MK derivation")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/eap_peer/eap.c