Linux
staging: rtl8723bs: fix OOB read in OnAssocRsp() IE loop
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read in OnAssocRsp() IE loop The IE parsing loop in OnAssocRsp() advances by (pIE->length + 2) each iteration but only guards on i < pkt_len. When a malicious AP sends an AssocResponse whose last IE has only one byte remaining in the frame (the element_id byte lands at pkt_len-1), the loop reads pIE->length from pframe[pkt_len], which is one byte past the allocated receive buffer. Additionally, even when the header bytes are in bounds, pIE->length itself can extend the data window beyond pkt_len, silently passing a truncated IE to the handler functions. Add two guards at the top of the loop body: 1. Break if fewer than sizeof(*pIE) bytes remain (can't read header). 2. Break if the IE's declared data extends past pkt_len.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 3ae0577d3be9f1e2707cce4749da250054e25e3f
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 889ca6000ac7fa73457b041848fcb08e0d51b809
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1a52a05471494546f955a58e8c170c0c796c52d5
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 0406d746574e875d8778552eb674fcfbf5330bfb
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 0970dd47726a57e52013594e9fbf667586eb3673
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 04f612dc03427e0b1ac80a2611b5ac0ba93ac446
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 7e7741c8315e4160aead00a60cdd6f81ab880717
- >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < f9654207e92283e0acac5d64fe5f8835383b5a23
Fixed in 3ae0577d3be9f1e2707cce4749da250054e25e3f, 889ca6000ac7fa73457b041848fcb08e0d51b809, 1a52a05471494546f955a58e8c170c0c796c52d5, 0406d746574e875d8778552eb674fcfbf5330bfb, 0970dd47726a57e52013594e9fbf667586eb3673, 04f612dc03427e0b1ac80a2611b5ac0ba93ac446, 7e7741c8315e4160aead00a60cdd6f81ab880717, f9654207e92283e0acac5d64fe5f8835383b5a23
- 4.12
Fixed in 0, 5.10.273, 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 3ae0577d3be9f1e2707cce4749da250054e25e3f or 889ca6000ac7fa73457b041848fcb08e0d51b809 or 1a52a05471494546f955a58e8c170c0c796c52d5 or 0406d746574e875d8778552eb674fcfbf5330bfb or 0970dd47726a57e52013594e9fbf667586eb3673 or 04f612dc03427e0b1ac80a2611b5ac0ba93ac446 or 7e7741c8315e4160aead00a60cdd6f81ab880717 or f9654207e92283e0acac5d64fe5f8835383b5a23 or later.
Upgrade Linux to 0 or 5.10.273 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 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.