3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00
iwd/src
Denis Kenzior efecce772f eapol: Fix memory allocation issues
When the EAPOL-Key data field is encrypted using AES Wrap, check
that the data field is large enough before calculating the expected
plaintext length.

Previously, if the encrypted data field was smaller than 8 bytes, an
integer underflow would occur when calculating the expected plaintext
data length. This would cause iwd to try to allocate a huge amount of
memory, which causes it to abort and terminate. If the data field was
equal to 8 bytes, iwd would try to allocate 0 bytes of memory, making
l_new return NULL, which subsequently causes iwd to crash on a NULL
pointer deference.

Reported-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
2018-07-16 10:51:13 -05:00
..
agent.c agent: Add new request types 2018-04-19 11:49:41 -05:00
agent.h agent: Add new request types 2018-04-19 11:49:41 -05:00
ap.c ap: use netdev_del_station API 2018-07-03 16:45:29 -05:00
ap.h ap: removed unused ap_event enum 2018-07-02 15:34:26 -05:00
backtrace.c build: check for existence of execinfo.h 2018-05-17 17:42:28 -05:00
backtrace.h backtrace: Try to find absolute executable path 2017-03-16 15:17:41 -05:00
common.c scan: Move scan_get_security to common.c 2018-05-24 19:22:16 -05:00
common.h scan: Move scan_get_security to common.c 2018-05-24 19:22:16 -05:00
crypto.c crypto: Use l_pkcs5_pbkdf2 in place of local pbkdf2_sha1 2017-10-09 14:34:31 -05:00
crypto.h eapol: Tighten up GTK/IGTK KDE validation 2017-10-19 16:47:35 -05:00
dbus.c dbus: Add dbus_error_from_errno 2018-07-02 12:24:33 -05:00
dbus.h dbus: Add dbus_error_from_errno 2018-07-02 12:24:33 -05:00
device.c device: fix incomplete variable replacement 2018-07-13 11:41:49 -05:00
device.h device: Introduce __device_connect_network 2018-07-02 12:25:47 -05:00
eap-aka.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-gtc.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-md5.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-mschapv2.c eap-mschapv2: Fix uninitialized use of memory 2018-06-15 07:55:41 -05:00
eap-mschapv2.h eap-mschap: Add crypto functions for mschapv2 2016-12-14 22:46:18 -06:00
eap-peap.c eap-peap: add warning for the missing M flag 2018-07-02 20:28:08 -05:00
eap-private.h eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-pwd.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-sim.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-tls.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-ttls.c eap-ttls: Rename eap to phase2_eap for clarity 2018-06-20 13:55:15 -05:00
eap-wsc.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap-wsc.h eap-wsc: Send credential obtained events 2016-09-13 13:32:47 -05:00
eap.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eap.h eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
eapol.c eapol: Fix memory allocation issues 2018-07-16 10:51:13 -05:00
eapol.h netdev/eapol: removed eapol deauthenticate 2018-06-27 16:17:14 -05:00
ecc.c ecc: added byte conversion functions 2018-05-04 19:33:55 -05:00
ecc.h ecc: added byte conversion functions 2018-05-04 19:33:55 -05:00
ftutil.c netdev: Handle the FT Authentication Response message 2017-01-12 10:33:40 -06:00
ftutil.h netdev: Handle the FT Authentication Response message 2017-01-12 10:33:40 -06:00
genbuiltin make: plugin system for build 2017-11-28 13:20:33 -06:00
handshake.c handshake: remove handshake related netdev events 2018-06-22 14:21:50 -05:00
handshake.h netdev: fixed key setting failure 2018-07-03 16:45:25 -05:00
ie.c ie: Allow building an empty IE sequence in ie_tlv_builder_finalize 2017-09-22 11:59:06 -05:00
ie.h ie: Add missing #include and forward declaration 2018-05-24 15:54:32 -05:00
iwd-dbus.conf dbus: Add hwsim interface to DBus policy file 2017-03-09 11:45:41 -06:00
iwd.h scan: Move scan_get_security to common.c 2018-05-24 19:22:16 -05:00
iwd.service.in iwd.service: Use multi-user target 2018-05-22 11:28:02 -05:00
knownnetworks.c iwd: Move network_init & network_exit to iwd.h 2018-05-24 19:22:12 -05:00
knownnetworks.h knownnetworks: Implement KnownNetworks interface 2016-06-21 11:41:37 -05:00
main.c iwd: Move network_init & network_exit to iwd.h 2018-05-24 19:22:12 -05:00
mpdu.c mpdu: Refactor Authentication frame validation 2017-09-22 12:18:06 -05:00
mpdu.h mpdu: Refactor Authentication frame validation 2017-09-22 12:18:06 -05:00
netdev.c netdev: expose netdev_del_station 2018-07-03 16:45:29 -05:00
netdev.h netdev: expose netdev_del_station 2018-07-03 16:45:29 -05:00
network.c network: set Hidden=true for new hidden networks 2018-07-11 16:09:42 -05:00
network.h network: add network info accessors 2018-07-11 15:20:55 -05:00
plugin.c plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
plugin.h plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
rfkill.c rfkill: Fix wiphy ID lookup 2016-07-20 15:29:39 -05:00
rfkill.h Add rfkill enable/disable and watch support 2016-07-07 13:21:08 -05:00
scan.c scan: Fix triggered flag setting 2018-07-13 12:34:59 -05:00
scan.h scan: add ssid parameter 2018-06-29 13:48:09 -05:00
simauth.c simauth: remove unregister API 2017-12-14 16:22:09 -06:00
simauth.h simauth: remove unregister API 2017-12-14 16:22:09 -06:00
simutil.c eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
simutil.h eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
storage.c storage: Simplify storage_network_open 2018-06-14 20:53:39 -05:00
storage.h storage: Return const char * 2016-06-10 09:59:59 -05:00
util.c util: Add util_ssid_is_hidden 2018-06-28 11:37:06 -05:00
util.h util: Add util_ssid_is_hidden 2018-06-28 11:37:06 -05:00
watchlist.c watchlist: Fix memory leak 2017-10-18 19:29:24 -05:00
watchlist.h watchlist: added macro for notifying with no args 2017-11-16 14:10:47 -06:00
wiphy.c wiphy: Rename get_ext_feature API 2018-05-24 15:24:16 -05:00
wiphy.h wiphy: Rename get_ext_feature API 2018-05-24 15:24:16 -05:00
wsc.c netdev: fixed key setting failure 2018-07-03 16:45:25 -05:00
wsc.h wsc: Squash wsc_sm structure 2016-09-13 14:53:30 -05:00
wscutil.c wscutil: Fix invalid type conversion 2017-08-30 16:58:14 -05:00
wscutil.h wscutil: Add wsc_pin_generate 2017-02-17 12:27:13 -06:00