package/wpa_supplicant: add upstream 2020-2 security fix
PATCH 1/1 package/wpa_supplicant: add upstream 2020-2 security fix
Fixes the following security issue:
- wpa_supplicant P2P group information processing vulnerability (no CVE yet)
A vulnerability was discovered in how wpa_supplicant processing P2P (Wi-Fi Direct) group information from active group owners. The actual parsing of that information validates field lengths appropriately, but processing of the parsed information misses a length check when storing a copy of the secondary device types. This can result in writing attacker controlled data into the peer entry after the area assigned for the secondary device type. The overflow can result in corrupting pointers for heap allocations. This can result in an attacker within radio range of the device running P2P discovery being able to cause unexpected behavior, including termination of the wpa_supplicant process and potentially arbitrary code execution.
For more details, see the advisory:
https://w1.fi/security/2020-2/wpa_supplicant-p2p-group-info-processing-vulnerability.txt
--- package/wpa_supplicant/wpa_supplicant.hash | 1 + package/wpa_supplicant/wpa_supplicant.mk | 2 ++ 2 files changed, 3 insertions(+)
package/wpa_supplicant/wpa_supplicant.hash +1 -0
@@ -1,3 +1,4 @@ # Locally calculated sha256 fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17 wpa_supplicant-2.9.tar.gz sha256 9da5dd0776da266b180b915e460ff75c6ff729aca1196ab396529510f24f3761 README +sha256 c4d65cc13863e0237d0644198558e2c47b4ed91e2b2be4516ff590724187c4a5 0001-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch
package/wpa_supplicant/wpa_supplicant.mk +2 -0
@@ -11,6 +11,8 @@ WPA_SUPPLICANT_LICENSE_FILES = README WPA_SUPPLICANT_CPE_ID_VENDOR = w1.fi WPA_SUPPLICANT_CONFIG = $(WPA_SUPPLICANT_DIR)/wpa_supplicant/.config WPA_SUPPLICANT_SUBDIR = wpa_supplicant +WPA_SUPPLICANT_PATCH = \ + https://w1.fi/security/2020-2/0001-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch WPA_SUPPLICANT_DBUS_OLD_SERVICE = fi.epitest.hostap.WPASupplicant WPA_SUPPLICANT_DBUS_NEW_SERVICE = fi.w1.wpa_supplicant1 WPA_SUPPLICANT_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/
Signature · 1 line
2.20.1
Yann E. MORIN
AppliedPATCH 1/1 package/wpa_supplicant: add upstream 2020-2 security fix
Peter, All,
On 2021-02-05 13:13 +0100, Peter Korsgaard spake thusly:
Quoted 16 lines
Fixes the following security issue:
-
wpa_supplicantP2P group information processing vulnerability (no CVE yet)A vulnerability was discovered in how
wpa_supplicantprocessing P2P (Wi-Fi Direct) group information from active group owners. The actual parsing of that information validates field lengths appropriately, but processing of the parsed information misses a length check when storing a copy of the secondary device types. This can result in writing attacker controlled data into the peer entry after the area assigned for the secondary device type. The overflow can result in corrupting pointers for heap allocations. This can result in an attacker within radio range of the device running P2P discovery being able to cause unexpected behavior, including termination of thewpa_supplicantprocess and potentially arbitrary code execution.
Quoted 4 lines
For more details, see the advisory:
https://w1.fi/security/2020-2/wpa_supplicant-p2p-group-info-processing-vulnerability.txtSigned-off-by Peter Korsgaard <[email protected]>
Applied to master, thanks.
(I just moved the _PATCH near _VERSION and _SITE to keep similar things together)
Regards,
Yann E. MORIN.)
Quoted 34 lines
--- package/wpa_supplicant/wpa_supplicant.hash | 1 + package/wpa_supplicant/wpa_supplicant.mk | 2 ++ 2 files changed, 3 insertions(+)package/wpa_supplicant/wpa_supplicant.hash +1
-0@@ -1,3 +1,4 @@ # Locally calculated sha256 fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17 wpa_supplicant-2.9.tar.gz sha256 9da5dd0776da266b180b915e460ff75c6ff729aca1196ab396529510f24f3761 README +sha256 c4d65cc13863e0237d0644198558e2c47b4ed91e2b2be4516ff590724187c4a5 0001-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patchpackage/wpa_supplicant/wpa_supplicant.mk +2
-0@@ -11,6 +11,8 @@ WPA_SUPPLICANT_LICENSE_FILES = README WPA_SUPPLICANT_CPE_ID_VENDOR = w1.fi WPA_SUPPLICANT_CONFIG = $(WPA_SUPPLICANT_DIR)/wpa_supplicant/.config WPA_SUPPLICANT_SUBDIR = wpa_supplicant +WPA_SUPPLICANT_PATCH = \ + https://w1.fi/security/2020-2/0001-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch WPA_SUPPLICANT_DBUS_OLD_SERVICE = fi.epitest.hostap.WPASupplicant WPA_SUPPLICANT_DBUS_NEW_SERVICE = fi.w1.wpa_supplicant1 WPA_SUPPLICANT_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/Signature · 6 lines
2.20.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/wpa_supplicant: add upstream 2020-2 security fix
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Peter, All,
On 2021-02-05 13:13 +0100, Peter Korsgaard spake thusly:Quoted 16 lines
Fixes the following security issue:
-
wpa_supplicantP2P group information processing vulnerability (no CVE yet)A vulnerability was discovered in how
wpa_supplicantprocessing P2P (Wi-Fi Direct) group information from active group owners. The actual parsing of that information validates field lengths appropriately, but processing of the parsed information misses a length check when storing a copy of the secondary device types. This can result in writing attacker controlled data into the peer entry after the area assigned for the secondary device type. The overflow can result in corrupting pointers for heap allocations. This can result in an attacker within radio range of the device running P2P discovery being able to cause unexpected behavior, including termination of thewpa_supplicantprocess and potentially arbitrary code execution.
Quoted 6 lines
Quoted 4 lines
For more details, see the advisory:
https://w1.fi/security/2020-2/wpa_supplicant-p2p-group-info-processing-vulnerability.txtSigned-off-by Peter Korsgaard <[email protected]>Applied to master, thanks.
Thanks.
Quoted 2 lines
(I just moved the
_PATCHnear_VERSIONand_SITEto keep similar things together)
Fine. I did it like this for consistency with hostapd.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/wpa_supplicant: add upstream 2020-2 security fix
In reply to Peter KorsgaardQuoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes the following security issue:
-wpa_supplicantP2P group information processing vulnerability (no CVE yet)A vulnerability was discovered in how
wpa_supplicantprocessing P2P (Wi-Fi Direct) group information from active group owners. The actual parsing of that information validates field lengths appropriately, but processing of the parsed information misses a length check when storing a copy of the secondary device types. This can result in writing attacker controlled data into the peer entry after the area assigned for the secondary device type. The overflow can result in corrupting pointers for heap allocations. This can result in an attacker within radio range of the device running P2P discovery being able to cause unexpected behavior, including termination of thewpa_supplicantprocess and potentially arbitrary code execution.
Quoted 4 lines
For more details, see the advisory:
https://w1.fi/security/2020-2/wpa_supplicant-p2p-group-info-processing-vulnerability.txtSigned-off-by Peter Korsgaard <[email protected]>
Committed to 2020.02.x and 2020.11.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard