CVE-2022-50740
In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs() Syzkaller reports a long-known leak of urbs in ath9k_hif_usb_dealloc_tx_urbs(). The cause of the leak is that usb_get_urb() is called but usb_free_urb() (or usb_put_urb()) is not called inside usb_kill_urb() as urb->dev or urb->ep fields have not been initialized and usb_kill_urb() returns immediately. The patch removes trying to kill urbs located in hif_dev->tx.tx_buf because hif_dev->tx.tx_buf is not supposed to contain urbs which are in pending state (the pending urbs are stored in hif_dev->tx.tx_pending). The tx.tx_lock is acquired so there should not be any changes in the list. Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Affected versions
Linux kernel versions
4.9.241,
4.14.203,
4.19.154,
5.4.73,
4.4.241,
5.8.17,
5.9.2,
5.10
and later are affected. Fixed in
4.9.337,
4.14.303,
4.19.270,
5.4.229,
5.10.163,
5.15.86,
6.0.16,
6.1.2,
6.2
and their respective stable series.
References
9 totalFrequently asked questions
-
What is CVE-2022-50740?
CVE-2022-50740 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.9.241 onward and has been patched in 4.9.337, 4.14.303, 4.19.270 and others. CVE-2022-50740 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2022-50740?
Yes. CVE-2022-50740 has been patched. Fixed versions include 4.9.337, 4.14.303, 4.19.270 and others. If you are running Linux kernel 4.9.241 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50740 actively exploited?
No. CVE-2022-50740 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.