hostapd/wpa_supplicant - new release v2.12.1
Jouni Malinen
j at w1.fi
Tue Dec 1 15:18:49 PST 2026
New versions of wpa_supplicant and hostapd were just
released and are now available from https://w1.fi/
This release is a bug fix release from the 2_12 branch and the main
branch will continue to be used for 2.13 development.
This includes fixes to numerous security vulnerabilities included cases
that can result in memory corruption, double freeing of heap
allocations, excessive resources consumption, and process
termination. Upgrading to this version is encouraged for all existing
use cases since the fixes apply wide range of functionalities and
practically all past releases. Some of the issues are accessible without
needing any authentication.
The following ChangeLog entries highlight some of the main changes:
hostapd:
* EAP-TTLS: fix bounds checking for AVPs to avoid reading beyond the
end of a buffer, fix a potential double free on unexpected
EAP-Message AVPs
* RADIUS: fix an issue in Message-Authenticator validation that could
result in process termination on receiving a malformed message
* fix parsing of link reconfiguration to avoid reading beyond the end
of a buffer
* fix off-by-one out-of-bounds read in NAN USD frame parsing
* EAP-PEAP: fix bounds checking for SoH TLV, fix key derivation with
TLS 1.3 cryptobinding
* fix SAE-PK KEK derivation for groups 20 and 21
* fix SAE password tracking for cases where STAs change the password
they use
* fix RSN overriding to not require RSN Selection element when a STA
uses the SNonce cookie
* fix FT resource request processing to avoid cass that could end up
writing beyond the end of a buffer
* fix FT VLAN ID determination with ft_psk_generate_local=1
* fix DPP PKEX processing to not read beyond the buffer
* fix DPP-over-TCP cases that could result in using freed memory or
dereferencing a NULL pointer
* limit PMKSA caching to cases that use the same AKMP as the one that
was used when the PMKSA was created
* clear FT PMK-R0/R1 cache entries on RADIUS DAS disconnect
* use the newer wolfSSL API for EAP-FAST ticket handling
* fix Session-Identifier derivation for EAP-SAKE
* fix per-STA random IGTK generation for GTK/IGTK-disabled cases to
not use uninitialized stack memory
* various other security improvements and hardening, and general fixes
wpa_supplicant:
* fix issues in SAE processing that could result in process
termination or use of freed memory and double freeing a heap
allocation
* fix beacon reporting to avoid cases that could result in an
infinite loop or unbounded memory consumption
* EAP-TTLS: fix bounds checking for AVPs to avoid reading beyond the
end of a buffer, fix a potential double free on unexpected
EAP-Message AVPs
* fix parsing of group keys in WNM sleep mode exit
* restrict access and allowed locations for writing configuration
files (see the new -x command line argument); this applies to both
the main wpa_supplicant configuration file and EAP-FAST PAC file
* fix processing of P2PS ASP service queries to avoid reading beyond
then end of a buffer
* fix SAE-PK KEK derivation for groups 20 and 21
* fix DPP PKEX processing to not read beyond the buffer
* fix cases where an unexpected DPP message could result in process
termination in AP/P2P GO mode
* use the newer wolfSSL API for EAP-FAST ticket handling
* fix Wi-Fi Direct R2 use of PMKSA caches to avoid a sequence that
could result in accessing out-of-bounds memory
* fix DPP-over-TCP cases that could result in using freed memory or
dereferencing a NULL pointer
* fix a potential NULL pointer deferencing in PASN with unexpected
wrapped FILS data contents
* fix Session-Identifier derivation for EAP-SAKE
* various other security improvements and hardening, and general fixes
git shortlog for 2.12 -> 2.12.1:
Alejandro Pacheco (2):
DPP: Check PKEX Encrypted Key attribute length against the curve
wpa_supplicant: Clear WPA/EAPOL config when the current network is removed
Amarnath Hullur Subramanyam (2):
SAE-PK: Fix KEK derivation with SAE-KEY-EXT groups 20 and 21
FILS: Fix NULL dereference of cur_pmksa in fils_process_auth()
Andrei Otcheretianski (1):
EAP-MSCHAPv2: Fix NULL pointer arithmetic in failure message parsing
Benjamin Berg (1):
nl80211: Select a new association link on link removal
Brandon Arrendondo (19):
FT: Fix off-by-2 buffer bounds check in wpa_ft_process_rdie()
Fix OOB read of HE Capabilities optional field in get_max_nss_capability()
EHT: Fix OOB read in hostapd_parse_link_reconf_req_sta_profile()
AP: Fix OOB read of STA's HE-MCS map in check_valid_he_mcs()
AP: Fix off-by-one OOB read in NAN USD public action frame parsing
EAP-PEAP server: Fix SoH vendor-specific TLV length check to require 8 bytes
NAN: Handle a theoretical N_min == N_max case in determining duration
EAP-TTLS server: Require 2 bytes of cached-session success data, not 1
AP: Avoid NULL as snprintf %s argument for BSS transition management query
P2P2: Fix NULL pointer deref in p2p_ctrl_connect() bstapmethod parsing
P2P: Fix uninitialized read in RemovePersistentGroup D-Bus handler
BoringSSL: Fix signed/unsigned loop bound bug in ocsp_find_signer()
nl80211: Fix NULL snprintf %s argument in BRCM vendor event log
EAP-PEAP server: Fix NULL deref on TLS encrypt failure path
config_none: Avoid NULL as snprintf %s argument in wpa_config_write()
config_winreg: Avoid NULL as snprintf %s argument in wpa_config_write()
P2P: Fix NULL ssid deref in wpas_dbus_get_group_obj_path()
WNM: Fix NULL bss deref in post-scan roaming-rules block
HS20 OSU: Check for NULL url deref in browser-* http_req()
Brent (1):
nl80211: Pass AKM to GTK rekey offload
Chaitanya Tata (1):
json: Fix maybe-uninitialized warning in json_parse()
Christopher Griffin (1):
nl80211: Do not drop DFS state events for a BSS without a frequency
Chung-Hsien Hsu (1):
wpa_supplicant: Fix PMKSA caching with 802.1X 4-way handshake offload
Daniel Gabay (2):
nl80211: Verify frame length before reading auth_alg
RSN: Honor PMKSA flush address
Dominic White (2):
nl80211: Do not send zero HE OBSS PD offsets
EAP-PEAP server: Fix TLS 1.3 cryptobinding key derivation
Gaole Zhang (1):
radiotap: Reject radiotap information with unknown bits
Gustavo Bertoli (2):
Do not stall after a connection failure with multiple networks
SAE: Clear anti-clogging token on authentication timeout
Harshitha Prem (2):
mesh: Fix EHT setup order in ibss_mesh_setup_freq()
hostapd: Validate HE and EHT capabilities on 6 GHz
Ilan Peer (3):
P2P: Clear 'pending_listen_freq' on stop_listen()
AP: Do not drop a maximum length KCK from the PMKSA entry
OpenSSL: Replace X509_cmp_current_time() deprecated in 4.0
Jonah Petri (1):
EAP: Fix D-Bus Get EapMethods when IEEE8021X_EAPOL is disabled
Jouni Malinen (94):
EAP-TTLS: Be more careful with AVP header checking
GAS server: Separate GAS peers from more generic STA entries
MBO: Ignore MBO element in BTM if PMF is not used in RSNA
WNM: Fix WNM sleep mode support for larger group management keys
WNM: Fix subelement length check WNM sleep mode exit
WNM: Fix group key parsing from WNM sleep mode exit
RADIUS: Fix Message-Authenticator attribute validation
PASN: Explicitly check Authentication frame length in processing functions
Ensure the temporary config file gets created and is not a symlink
Verify that fclose() succeeds on temporary configuration file
wpa_supplicant option to restrict configuration file location
P2PS: Fix ASP service prefix parsing to avoid reading beyond the buffer
AP MLD: Use a larger buffer for association response
AP MLD: Resize the temporary buffer for MLE construction if needed
AP MLD: Check remaining room in Key Delivery element construction
WNM: More thorough checks for pending WNM Sleep Mode Response frames
WNM: Deauthenticate on WNM Sleep Mode Response frame timeout
WNM: Discard group key handshake message 1 while in WNM sleep mode
Fix PMKSA entry removal
SAE: Make sure the needed state is available in sae_write_confirm()
PASN: Write per-network pasn_groups into config file
RSNO: Do not require RSN Selection element from STA that uses SNonce cookie
MBO: Do not clear expired SAE PMKSA on MBO updates during an association
FT: Ignore request requests without any resource descriptors
FT: Do not allow RIC related items to consume all available room
Simplify remaining buffer room calculation in send_assoc_resp()
Check buffer room when writing Timeout Interval element
FT: Ignore request descriptors with invalid or incomplete element(s)
FT: Do not process RIC-Request in initial MD association
wpa_passphrase: Avoid maybe-unitialized warning with gcc -Os
crypto: Fix a typo in function documentation
EAP-TTLS server: Fix sending of protected success on TLSv1.3 resumption
Restart EAPOL authenticator on association after EAPOL-Logoff
P2P: Revert GO BSSID copying from PCC client fallback fix
DPP: Cancel offchannel TX wait before starting postponed connection
P2P: Clear p2p_pd_before_go_neg on use
nl80211: Do not print misleading info about allowing foreign address
Do not try to fetch MLO info without association
EAP-FAST: Mask control characters from PAC text strings
PASN: Do not print debug information at MSG_ERROR level
xml: Avoid compiler warning on strchr() masking const marking
xml: Remove calls to deprecated libxml2 cleanup functions
tests: Enable PMF in MBO testing
SAE: Fix anti-clogging token freeing in error cases
RRM: Fix beacon reporting of a zero-length element
RRM: Skip too long elements when constructing a beacon report
RRM: Stop beacon report construction if no progress can be made
P2PS: Fix handling of zero-length SD Request for ASP
DPP: Discard DPP GAS requests in AP mode if no global DPP context
RSN: Do not allow PMKSA caching with mismatching AKMP
FT: Clear PMK-R0/PMK-R1 cache when clearing PMKSA
tests: RADIUS DAS Disconnect with FT
P2P2: Fix selection of the PMKSA cache for invitation
WPS ER: Remove CR/LF from parsed URLs
DPP3: Avoid use of freed memory in Controller on TCP failure with PKEX
TLS: Reject excessively large Diffie-Hellman primes
EHT: Fix EHT MCS/NSS validation
FST: Make sure there is room in buffer for sesson list
TLS: Do not use potentially freed memory in OCSP signature check
TLS: Clear the full temporary buffer in TLS PRF helper functions
OpenSSL: Fix memory leak on error paths in OCSP response handling
PASN: Fix the check for FILS Session element
WPS: Avoid NULL pointer deference in UPnP event retry debug print
EAP-FAST: Restrict permission to the PAC file
EAP-FAST: Use conf_file_prefix as a constraint for PAC file
DPP: Do not debug print received config object details
DPP2: Fix processing of unexpected Presence/Reconfig Announcement
ndis: Validate SSID length from OID_802_11_SSID
ndis: Validate IEs length in OUI_822_11_BSSID_LIST
WPS UPnP: Reject callback URLs with CR/LF
HS 2.0: Do not debug print PPS MO username/password
DPP: Do no debug print configurationObject JSON without -K on command line
EAP-SIM/AKA: Do not debug print derived keys by default
xml: Do not print URI in debug print since it could be freed
GnuTLS: Fix error path freeing of memory
EAP-TEAP: Do not dump Basic-Password-Auth-Resp TLV to debug log without -K
wpa_gui: Validate event message contents before use
EAP: Remove debug printing of private material without -K
Interworking: Do not include password in debug print
WPS: Mask control characters from Enrollee seen and PIN needed events
P2P: Do not evict the peer in ongoing GO negotiation
P2P: Filter out control characters from device names
TLS: Fix PS check in PKCS#1 decryption
HTTP: Remove unused functionality
WNM: Discard notification URLs with unexpected control characters
ERP: Mask out control characters from debug printed NAI
EAP-SAKE: Fix Session-Id derivation
Do not print token key for comeback tokens in debug log by default
FT: Fix unique random IGTK generation for GTK-disabled cases
Clear stack variables in SHA256 and SHA384 TLS PRF
BoringSSL: Fix memory leak on error paths in OCSP response handling
WNM: Remove remaining key data from debug logs by default in error case
WPS: Send the credential received event only to control interface
Preparations for v2.12.1 release
Juliusz Sosinowicz (1):
wolfSSL: Implement EAP-FAST ticket handling with new API
Junyu Lai (1):
P2P: Check PBMA attribute length before reading bootstrap
Karsten Sperling (1):
EAPOL auth: Populate eap_type_authsrv when eap_server=1
Louis Kotze (2):
Revert "MLD: Scan the channels of missing links for the ML probe"
MLD: Fix off-by-one read of Common Info Length in Basic MLE accessors
Manish Dharanenthiran (1):
nl80211: Update AP MLD active_links bitmap during start_ap
Nicolò Sala (1):
nl80211: Do not attempt multicast NAN USD registration without support
Nilanka de Silva (1):
nl80211: Deliver the client poll result to the BSS it was sent on
Oldřich Jedlička (3):
FT: Use the VLAN ID of the PSK with ft_psk_generate_local=1
SAE: Do not keep a tracked password that stopped working
tests: SAE password tracking with a STA changing its password
Ozgun Kultekin (1):
EAP-TTLS: Do not call realloc() with size 0 for EAP-Message AVPs
Paul Adelsbach (1):
wolfSSL: Reject ECDH peer keys with unexpected length
Pooventhiran G (1):
Support non-AP MLD bssid match with an AP MLD for 4-way handshake
Pradeep Palanisamy (8):
hostapd: Fix missing deinit on RADIUS init failure
crypto_internal: Fix wrong union member used in DES CBC encrypt
hostapd: Fix out-of-bounds read in anqp_add_nai_realm()
proc_coord: Fix stack buffer overflow in invalid sender PID parsing
crypto_linux: Fix wrong size argument in linux_af_alg_socket()
crypto: Fix missing skcipher deinit in an aes_unwrap() error path
LibTomCrypt: Fix aes_decrypt() to use aes_ecb_decrypt()
dhcp_snoop: Fix length validation in handle_dhcp()
Purushottam Kushwaha (1):
DPP: Fix push button announcement retry on TX failure
Ragunanthan Selvaraj (1):
AP MLD: Store IEEE 802.1X PMKSA in MLD-level cache for MLO STAs
Ruth Mekonnen (3):
EAP-TTLS: Reject non-TNC inner EAP methods when starting TNC
IBSS: Clean up existing peer auth state machine on re-init
P2P: Keep GO and newer peer entries when adding group clients
Shivani Baranwal (2):
P2P: Require DFS authorization for 160 MHz radar channels
P2P: Fix PCC client fallback to an R1 Auto GO
Suraj P Kizhakkethil (2):
Refactor extended capability bit clearing into a helper function
Fix TWT responder support being advertised when disabled
Wei Zhang (1):
nl80211: Add FT-SAE AKMs to the fallback key_mgmt capability
Xiangfei Ding (3):
OpenSSL: Do not assume NUL termination when logging DN field mismatch
OpenSSL: Replace deprecated ASN1_STRING_data() in OCSP check
BoringSSL: Use a new marshalling API for uncompressed EC points
Xiaoyi Suo (2):
WPA: Explicitly clear PTK derivation buffers
MACsec: Explicitly clear MSK and CAK
mjanapar (1):
P2P: Reject P2P_CONNECT when P2P is unavailable
diffstat has following to say about the changes:
146 files changed, 2241 insertions(+), 1196 deletions(-)
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list