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 D49AB28F8 for ; Mon, 1 Apr 2024 08:33:29 +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=1711960410; cv=none; b=fcch0tI1Xl3sHZ8HabHYLe0Wv2vC9XGuhYypHmhRTFn2Zuk2Ej6NDPgnJhHACkGLrV+nv9dbF19NXbJ6/gMtX//A1zsATwESeaFqpfK7am6SnNovLm275hCb/QQQnz9nlk3cPrhTru1RdAvGSB+NKggdktpiBJdL+oXMF4xDF5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711960410; c=relaxed/simple; bh=om3r1qWmjbshIkz+xjd1ihqhbPFHF/nQVpwJA7GTON0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G8MwSwOPxTtEeZOktZnsDcr2Mly757dPWKbYuAF4fLwO/Xl4aM2cszN/4DIGwO4JeMcxgVhOe+JVQlUwxbA97MiJpbHT8Sd+q+uLJX5iLoaeTrJBpMF3ZXZ2nmWjECD0ndIUWqRzF7nI5eOiQoSMHJWWDRwtqlwRf4RrUbvcMXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x7XCK7Lx; 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="x7XCK7Lx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A5ABC433F1; Mon, 1 Apr 2024 08:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711960409; bh=om3r1qWmjbshIkz+xjd1ihqhbPFHF/nQVpwJA7GTON0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x7XCK7LxYXA77zwlxHqWvSl/YeWCwBfX12BGHLW3wI7IR7VKqd1kd8DsuXFaUZ6Ag R7YddwRBfEFoAm0cF3VAOpldOrh3n9bYbjqjPBptDksZ/08piuU7dHhwABVeHX+U5v WNkMILvqeJjQjBKpXaud4ESieH0zsjkNKvDGcTXs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26653: usb: misc: ljca: Fix double free in error handling path Date: Mon, 1 Apr 2024 10:33:23 +0200 Message-ID: <2024040122-CVE-2024-26653-7903@gregkh> X-Mailer: git-send-email 2.44.0 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=2015; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=om3r1qWmjbshIkz+xjd1ihqhbPFHF/nQVpwJA7GTON0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlchcGuvzJOV1llrrRS98kxvq0R8N1iQ2RN87OgBvaFg QHrTizuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm8KGBYcK5v663cRxcSpBz4 M94fNxIyZPuiyTCT8bWM+w2eyqSDvYt/+DdMe9B9dtZhAA== 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: usb: misc: ljca: Fix double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function ljca_auxdev_release calls kfree(auxdev->dev.platform_data) to free the parameter data of the function ljca_new_client_device. The callers of ljca_new_client_device shouldn't call kfree() again in the error handling path to free the platform data. Fix this by cleaning up the redundant kfree() in all callers and adding kfree() the passed in platform_data on errors which happen before auxiliary_device_init() succeeds . The Linux kernel CVE team has assigned CVE-2024-26653 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit acd6199f195d and fixed in 6.9-rc2 with commit 7c9631969287 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-26653 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/usb/misc/usb-ljca.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/7c9631969287a5366bc8e39cd5abff154b35fb80