wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6f7853f3cbe457067e9fe05461f56c7ea4ac488c · < 638d4148e166d114a4cd7becaae992ce1a815ed8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
The rtl8187_rx_cb() calculates the rx descriptor header address by subtracting its size from the skb tail pointer. However, it does not validate if the received packet (skb->len from urb->actual_length) is large enough to contain this header.
If a truncated packet is received, this will lead to a buffer underflow, reading memory before the start of the skb data area, and causing a kernel panic.
Add length checks for both rtl8187 and rtl8187b descriptor headers before attempting to access them, dropping the packet cleanly if the check fails.
From the CVE record · Linux
The Linux kernel rtl8187 Wi-Fi driver does not check whether a received packet is long enough to contain its descriptor header. If an attacker can cause the driver to receive a truncated packet, the resulting buffer underflow can cause a kernel panic. The input does not specify authentication or user-interaction requirements.
Check Linux kernel deployments that use the rtl8187 Wi-Fi driver; affected versions were not specified.