wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4.19.276, Kernel 5.4.235, Kernel 5.15.99 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails Syzkaller detected a memory leak of skbs in ath9k_hif_usb_rx_stream(). While processing skbs in ath9k_hif_usb_rx_stream(), the already allocated skbs in skb_pool are not freed if ath9k_hif_usb_rx_stream() fails. If we have an incorrect pkt_len or pkt_tag, the input skb is considered invalid and dropped. All the associated packets already in skb_pool should be dropped and freed. Added a comment describing this issue. The patch also makes remain_skb NULL after being processed so that it cannot be referenced after potential free. The initialization of hif_dev fields which are associated with remain_skb (rx_remain_len, rx_transfer_len and rx_pad_len) is moved after a new remain_skb is allocated. Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.38 <4.19.276, >=4.20 <5.4.235, >=5.11 <5.15.99, >=5.16 <6.1.16, >=5.5 <5.10.173, >=6.2 <6.2.3, >=44b23b488d44e56d467764ecb661830e5b02b308 <3fc6401fafde11712a83089fa2cc874cfd10e2cd, >=44b23b488d44e56d467764ecb661830e5b02b308 <61490d2710277e8a55009b7682456ae22f8087cf, >=44b23b488d44e56d467764ecb661830e5b02b308 <9acdec72787af1bc8ed92711b52118c8e3e638a2, >=44b23b488d44e56d467764ecb661830e5b02b308 <c766e37fccd5a5c5059be7efcd9618bf8a2c17c3, >=44b23b488d44e56d467764ecb661830e5b02b308 <cd8316767099920a5d41feed1afab0c482a43e9f, >=44b23b488d44e56d467764ecb661830e5b02b308 <f26dd69f61eff2eedf5df2d199bdd23108309947, =2.6.38, >=44b23b488d44e56d467764ecb661830e5b02b308 <0af54343a76263a12dbae7fafb64eb47c4a6ad38 | 4.19.276, 5.4.235, 5.15.99, 6.1.16, 5.10.173, 6.2.3, 3fc6401fafde11712a83089fa2cc874cfd10e2cd, 61490d2710277e8a55009b7682456ae22f8087cf, 9acdec72787af1bc8ed92711b52118c8e3e638a2, c766e37fccd5a5c5059be7efcd9618bf8a2c17c3, cd8316767099920a5d41feed1afab0c482a43e9f, f26dd69f61eff2eedf5df2d199bdd23108309947, 0af54343a76263a12dbae7fafb64eb47c4a6ad38 |
| linux-kernel: Kernel | >=2.6.38 <4.19.276, >=4.20.0 <5.4.235, >=5.11.0 <5.15.99, >=5.16.0 <6.1.16, >=5.5.0 <5.10.173, >=6.2.0 <6.2.3 | 4.19.276, 5.4.235, 5.15.99, 6.1.16, 5.10.173, 6.2.3 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket