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 EEFE819F13F for ; Wed, 26 Feb 2025 02:12:47 +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=1740535968; cv=none; b=kq3MHf5GBI6mMgs9gmqPqfrvTLqrqjUEkrlxQ7Wvs5Evs06LxOMjxMJ5uYhTXDn44rNYmJsRedhevoaHsBa89NqD3lp6ZZetBmV+dblVEluWDBCQJe1OtgmWzUxazNgU0tnBZNu59RxuVFxDAL1sx2LVa/4lECP49xRz0MJoUKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535968; c=relaxed/simple; bh=THM91Fz9NHATRpqKsgf+mNbA74laN11IE+/5T6xF8g4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kTmIk0KNUja3wIZFf8uHyiMf3ijd7Z606EDCMV5SEsZoG/yj+LkFaX8OGWq12OZpIt5N9m4OtwSxF6i3UvvgtD742MoIAYXPl4uXYcYjuIzrWQwTa3kt9FupIFEJzlR5DynArG/8MSCEJQ9iXcL+eGYn9xRLeUJa0JfXV07TPL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R6Y62pbk; 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="R6Y62pbk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5391CC4CEE6; Wed, 26 Feb 2025 02:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535967; bh=THM91Fz9NHATRpqKsgf+mNbA74laN11IE+/5T6xF8g4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=R6Y62pbk/CsOmQBsB0KFMghWSChlu9EtyiesJJMNKaNQ0QUg6vE1roQgBYOt3bVk/ 8Lv0uAQ8P83Ogz8XB6CeXOnHecwh7w7p5rU9FFxtUg+okhwKrmZM9/igQQYjhauSHg cWJnawApYOYz1vY3jMS1jxZAizkyGlb0CrT3QpEM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49310: char: xillybus: fix a refcount leak in cleanup_dev() Date: Wed, 26 Feb 2025 03:09:44 +0100 Message-ID: <2025022635-CVE-2022-49310-d185@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=2000; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=THM91Fz9NHATRpqKsgf+mNbA74laN11IE+/5T6xF8g4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yh9IRvw+uPfiKdYPPAVe4a2Cj65r/cxfUxNWdWtKt KXy+qRFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARA3uG+Wkte31fvVauis+4 wsF/J71h2TyNEwzz6/kNnr1k3yuSF//eK++rf6SqwLp7AA== 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: char: xillybus: fix a refcount leak in cleanup_dev() usb_get_dev is called in xillyusb_probe. So it is better to call usb_put_dev before xdev is released. The Linux kernel CVE team has assigned CVE-2022-49310 to this issue. Affected and fixed versions =========================== Fixed in 5.15.47 with commit bc8fceda3b89006e8a7dda8a097d36045d044c25 Fixed in 5.17.15 with commit 21f1f167d727f3f857e26d509ef5a6d47fd31bc3 Fixed in 5.18.4 with commit e277b95acdab84cd5d2f8d537a37aef6d21e988b Fixed in 5.19 with commit b67d19662fdee275c479d21853bc1239600a798f 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-2022-49310 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/char/xillybus/xillyusb.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/bc8fceda3b89006e8a7dda8a097d36045d044c25 https://git.kernel.org/stable/c/21f1f167d727f3f857e26d509ef5a6d47fd31bc3 https://git.kernel.org/stable/c/e277b95acdab84cd5d2f8d537a37aef6d21e988b https://git.kernel.org/stable/c/b67d19662fdee275c479d21853bc1239600a798f