|
| 1 | +From 07e931dcdbdefe3e26217bea411e020a55c2ab86 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Kanishk-Bansal <kbkanishk975@gmail.com> |
| 3 | +Date: Wed, 26 Mar 2025 15:50:07 +0000 |
| 4 | +Subject: [PATCH] Fix CVE CVE-2025-24912 in wpa_supplicant |
| 5 | + |
| 6 | +Upstream Reference: https://w1.fi/cgit/hostap/commit/?id=726432d7622cc0088ac353d073b59628b590ea44 |
| 7 | +--- |
| 8 | + src/radius/radius_client.c | 15 +++++++-------- |
| 9 | + 1 file changed, 7 insertions(+), 8 deletions(-) |
| 10 | + |
| 11 | +diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c |
| 12 | +index ee9e46d..8f93325 100644 |
| 13 | +--- a/src/radius/radius_client.c |
| 14 | ++++ b/src/radius/radius_client.c |
| 15 | +@@ -922,13 +922,6 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx) |
| 16 | + roundtrip / 100, roundtrip % 100); |
| 17 | + rconf->round_trip_time = roundtrip; |
| 18 | + |
| 19 | +- /* Remove ACKed RADIUS packet from retransmit list */ |
| 20 | +- if (prev_req) |
| 21 | +- prev_req->next = req->next; |
| 22 | +- else |
| 23 | +- radius->msgs = req->next; |
| 24 | +- radius->num_msgs--; |
| 25 | +- |
| 26 | + for (i = 0; i < num_handlers; i++) { |
| 27 | + RadiusRxResult res; |
| 28 | + res = handlers[i].handler(msg, req->msg, req->shared_secret, |
| 29 | +@@ -939,6 +932,13 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx) |
| 30 | + radius_msg_free(msg); |
| 31 | + /* fall through */ |
| 32 | + case RADIUS_RX_QUEUED: |
| 33 | ++ /* Remove ACKed RADIUS packet from retransmit list */ |
| 34 | ++ if (prev_req) |
| 35 | ++ prev_req->next = req->next; |
| 36 | ++ else |
| 37 | ++ radius->msgs = req->next; |
| 38 | ++ radius->num_msgs--; |
| 39 | ++ |
| 40 | + radius_client_msg_free(req); |
| 41 | + return; |
| 42 | + case RADIUS_RX_INVALID_AUTHENTICATOR: |
| 43 | +@@ -960,7 +960,6 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx) |
| 44 | + msg_type, hdr->code, hdr->identifier, |
| 45 | + invalid_authenticator ? " [INVALID AUTHENTICATOR]" : |
| 46 | + ""); |
| 47 | +- radius_client_msg_free(req); |
| 48 | + |
| 49 | + fail: |
| 50 | + radius_msg_free(msg); |
| 51 | +-- |
| 52 | +2.45.2 |
| 53 | + |
0 commit comments