Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A2D3145B25 for ; Thu, 27 Feb 2025 02:08:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622133; cv=none; b=R2FH0nqMC7IZ3zP5sBcbuBhxfpdSshcGz7If0LdBYrjvUDfgV9yz+fRzrRH+O7NRDfwauOgkBRINf5937fu6Yu5qqjjkRUm246zrqcKkGW5xVjTBrYejLDxlb0OuV8K4zX5XG0Rxj3c5lfg5paUHafJgar0ccmLQMmL2QXdA0xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622133; c=relaxed/simple; bh=PclDke6W9VcdJ3NuosCua+8E2H/8etCe1V8yuFghWrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=smjpyNMn9pN0QpOUaM89DuMG6jx/b6N76iIZ3exv+8wS2+fVv5w/a0y375Abf0LqzHXQj7CcR2yaCF/d1kx7CBY1gQCcwP1VSixp8qKAvFX5mA3zKBbJbbEyO24IjVT4GjnSKLYmb2f7nTvrEGf0xG+LwYgkjVaXnmq414dHEGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IkwW74v9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IkwW74v9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BAE7C4CED6; Thu, 27 Feb 2025 02:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622133; bh=PclDke6W9VcdJ3NuosCua+8E2H/8etCe1V8yuFghWrk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IkwW74v9TLvrAUSA+7e+7wzRe7w1VzKjs7Ijg5lRZ63pujcYBCwbFD2bVT2y9EcYe Rx7XISCmjiRBcyvCv+kgZVtJpQR1yCtaUL59baE91Yuhcwm7ShtU54sSSiQ8HaIZSI KtUEeJ7fndPtS4vlY4p668ywFRmgAlGAkC6ntuXw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57980: media: uvcvideo: Fix double free in error path Date: Wed, 26 Feb 2025 18:05:39 -0800 Message-ID: <2025022634-CVE-2024-57980-4b5a@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2824; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PclDke6W9VcdJ3NuosCua+8E2H/8etCe1V8yuFghWrk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T+TdKxFr7yrb1bPNsOxPz/zJoZ7FTseEFOZphTOfP Z5Y8cexI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZi/4xhnv1c82XH/6/zDHCZ IPVz7eYdsUuXJzPMLw/WuBxR4jRpn8H0wyesee2eGGwQAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 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 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-rc1 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/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