Linux
staging: rtl8723bs: fix missing shared-key auth challenge length check
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix missing shared-key auth challenge length check The WEP shared-key authentication handler uses the challenge-text element's attacker-controlled length without checking it against the fixed 128-byte chg_txt buffer. In OnAuthClient() the length from rtw_get_ie() - up to 255 - is used to perform memcpy() into the 128-byte pmlmeinfo->chg_txt, so a malicious AP sending a malformed WLAN_EID_CHALLENGE element can overflow/underfill chg_txt by up to 127 bytes. It is reachable over the air, before association, during shared-key authentication. In the case of an overflow, the driver can write out of bounds. In the case of an underfill, the driver can echo stale buffer memory. The challenge text is defined to be exactly 128 octets, which is already provided as the WLAN_AUTH_CHALLENGE_LEN define; require the element to be exactly that length before use.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 39ae1033071001af9bb4573ebdbb43bbbe88f749
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 4d018e7d7d908bdfcb5ecfa922b1d5cb9ddb3722
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 4ba402fd47009d20e51dbfc934abb562098ea35b
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 87c2f073d2aaea041d531b8e579c47570b54b3b7
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < a28a4b0592e4a37ea471bc0d308513a93133ce7e
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 6235b5156b48ed5d1ce3410d8f0b2fd67d30d944
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 2c56ef658ac8c6bca36bc5574715e8f717207c6c
Fixed in 39ae1033071001af9bb4573ebdbb43bbbe88f749, 4d018e7d7d908bdfcb5ecfa922b1d5cb9ddb3722, 4ba402fd47009d20e51dbfc934abb562098ea35b, 87c2f073d2aaea041d531b8e579c47570b54b3b7, a28a4b0592e4a37ea471bc0d308513a93133ce7e, 6235b5156b48ed5d1ce3410d8f0b2fd67d30d944, 2c56ef658ac8c6bca36bc5574715e8f717207c6c
- 4.12
Fixed in 0, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to 39ae1033071001af9bb4573ebdbb43bbbe88f749 or 4d018e7d7d908bdfcb5ecfa922b1d5cb9ddb3722 or 4ba402fd47009d20e51dbfc934abb562098ea35b or 87c2f073d2aaea041d531b8e579c47570b54b3b7 or a28a4b0592e4a37ea471bc0d308513a93133ce7e or 6235b5156b48ed5d1ce3410d8f0b2fd67d30d944 or 2c56ef658ac8c6bca36bc5574715e8f717207c6c or later.
Upgrade Linux to 0 or 5.15.216 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.