wifi: cw1200: fix TX padding OOB read leaking heap data to device
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b66539a4dab128fafaad736b53ce15c19d14d561, Kernel 5897945635aa5413595bf696127493be96c08e2d, Kernel 678c8f4ba285649d5418a858d5d4f30c728a54ad and 12 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: cw1200: fix TX padding OOB read leaking heap data to device The TX path rounds the transfer size up to the bus alignment (align_size(), up to 511 bytes for SDIO, 1 byte for SPI) but sends the padded length straight from the frame buffer, which has no room reserved for the padding. cw1200_data_write() therefore reads past the end of the frame and the bus transfer carries those bytes to the device. A bogus device can collect up to 511 bytes of kernel heap data per TX frame. The RX path does not have this problem: it allocates the skb with the aligned length (alloc_len) before reading. Compute the exact padding with the bus align_size() callback, make sure queued TX frames have tailroom for it, and zero the padding bytes before the transfer so nothing past the frame is exposed. This is not expected to change driver behavior on most cases: frame contents and transfer sizes are unchanged, only the content of the padding bytes (previously undefined stale memory, now zero), which the device never reads since the WSM header carries the real frame length. The skb expansion can only fail under memory exhaustion, in which case the frame is dropped like on the existing error paths of cw1200_tx(). Discovered by Atuin - Automated Vulnerability Discovery Engine.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a910e4a94f6923c8c988565525f017f687bf7205 <b66539a4dab128fafaad736b53ce15c19d14d561, >=a910e4a94f6923c8c988565525f017f687bf7205 <5897945635aa5413595bf696127493be96c08e2d, >=a910e4a94f6923c8c988565525f017f687bf7205 <678c8f4ba285649d5418a858d5d4f30c728a54ad, >=a910e4a94f6923c8c988565525f017f687bf7205 <71f693a0ecccf36532dd2790f7969da6c71d5d23, >=a910e4a94f6923c8c988565525f017f687bf7205 <7c1611780823b76219cb1478db53dfd890c4a9a2, >=a910e4a94f6923c8c988565525f017f687bf7205 <8e8e4d0b15f174d964a48b1c54dc8828e5ae87c5, >=a910e4a94f6923c8c988565525f017f687bf7205 <a7eae7547ae1443bfbca2cb90d3ef5e501d6445c, >=a910e4a94f6923c8c988565525f017f687bf7205 <b0e97bd40e0c2cb1a3530ef8f6250aacf3224515, =3.11 | b66539a4dab128fafaad736b53ce15c19d14d561, 5897945635aa5413595bf696127493be96c08e2d, 678c8f4ba285649d5418a858d5d4f30c728a54ad, 71f693a0ecccf36532dd2790f7969da6c71d5d23, 7c1611780823b76219cb1478db53dfd890c4a9a2, 8e8e4d0b15f174d964a48b1c54dc8828e5ae87c5, a7eae7547ae1443bfbca2cb90d3ef5e501d6445c, b0e97bd40e0c2cb1a3530ef8f6250aacf3224515 |
| linux-kernel: Kernel | >=5.11.0 <5.15.224, >=5.16.0 <6.1.191, >=6.13.0 <6.18.56, >=6.19.0 <7.2.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=3.11.0 <5.10.273 | 5.15.224, 6.1.191, 6.18.56, 7.2.10, 6.6.160, 6.12.113, 5.10.273 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket