| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-57980: media: uvcvideo: Fix double free in error path |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| media: uvcvideo: Fix double free in error path |
| |
| If the uvc_status_init() function fails to allocate the int_urb, it will |
| free the dev->status pointer but doesn't reset the pointer to NULL. This |
| results in the kfree() call in uvc_status_cleanup() trying to |
| double-free the memory. Fix it by resetting the dev->status pointer to |
| NULL after freeing it. |
| |
| Reviewed by: Ricardo Ribalda <ribalda@chromium.org> |
| |
| The Linux kernel CVE team has assigned CVE-2024-57980 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 5.4.291 with commit d6e5ba2516c5bef87c1fcb8189b6f3cad7c64b2d |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 5.10.235 with commit 87522ef165e5b6de8ef98cc318f3335166a1512c |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 5.15.179 with commit 3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277 |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 6.1.129 with commit 9232719ac9ce4d5c213cebda23d72aec3e1c4c0d |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 6.6.76 with commit 6c36dcd662ec5276782838660f8533a7cb26be49 |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 6.12.13 with commit d1f8e69eec91d5a75ef079778a5d0151db2a7f22 |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 6.13.2 with commit d8e63dd7b6683969d3d47c7b8e9635f96d554ad4 |
| Issue introduced in 2.6.28 with commit a31a4055473bf0a7b2b06cb2262347200d0711e1 and fixed in 6.14 with commit c6ef3a7fa97ec823a1e1af9085cf13db9f7b3bac |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-57980 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/media/usb/uvc/uvc_status.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/d6e5ba2516c5bef87c1fcb8189b6f3cad7c64b2d |
| https://git.kernel.org/stable/c/87522ef165e5b6de8ef98cc318f3335166a1512c |
| https://git.kernel.org/stable/c/3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277 |
| https://git.kernel.org/stable/c/9232719ac9ce4d5c213cebda23d72aec3e1c4c0d |
| https://git.kernel.org/stable/c/6c36dcd662ec5276782838660f8533a7cb26be49 |
| https://git.kernel.org/stable/c/d1f8e69eec91d5a75ef079778a5d0151db2a7f22 |
| https://git.kernel.org/stable/c/d8e63dd7b6683969d3d47c7b8e9635f96d554ad4 |
| https://git.kernel.org/stable/c/c6ef3a7fa97ec823a1e1af9085cf13db9f7b3bac |