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 3F1FA14375C for ; Tue, 21 May 2024 15:07:06 +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=1716304026; cv=none; b=cpd9b7EhPvREW4TmeSywWpC/dSBAAivSjlR7TDq1YawHxzqn++qyEM8LZ405dfcsJpQxKHEEXlG6AmtvwrGR5dd9u9E1OxSDq8qqwmtGXo/e1s386eZz2Xwe0MHGZrlg7svwPRHRUG7Mh4fYJFx9o6Ir2/A26F99B7BsGFAg4dQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304026; c=relaxed/simple; bh=3v1Y+iKj9kOeO7XjaFnGPXM8todxEfsbkG8yrxtydlc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fysdDG1w5vQCSXGsVJDTDi8p5PjRGIFgo5XLMZ51bVqAf1+cslOCWB6c2y2l7rrz/nm5/VKCaq5edElD5E9B32thbXmNk+HBF+YSEfBbZL6Pye7WmEzFtiz2kx0aqu4RkjMqw+ik/qxEliLuY54wWOKNNZrhe2VhyeHJ92aaCV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ubErkb61; 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="ubErkb61" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDE73C2BD11; Tue, 21 May 2024 15:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304026; bh=3v1Y+iKj9kOeO7XjaFnGPXM8todxEfsbkG8yrxtydlc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ubErkb61eO8PszbXQbDONEtyr52x9/lln3fsENr3K/G3ghKa6UWqBgct/+LSbMKK3 VQMg4A50T3ohgHpd9KGg4SHCWifjbQmWdjtJp/9RoceTfetTqgSyVVQOqzSZH2HrXj aI1UKb25WhddGeV9FtbCVsMVyLdn+Xio0REpIZ8A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47405: HID: usbhid: free raw_report buffers in usbhid_stop Date: Tue, 21 May 2024 17:04:22 +0200 Message-ID: <2024052150-CVE-2021-47405-b693@gregkh> X-Mailer: git-send-email 2.45.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=2448; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3v1Y+iKj9kOeO7XjaFnGPXM8todxEfsbkG8yrxtydlc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+26+FnLlV9tJwY0d5+KZYsxt9z61Mz7SUfXhwYrZcU h2D1s3DHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR+ZkMC7Y8iWpzYAmfu8P+ xCPVKydFsh7rPmVYMKXk5+4dsxLmmR6u0TveWHB0i7LAYgA= 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: HID: usbhid: free raw_report buffers in usbhid_stop Free the unsent raw_report buffers when the device is removed. Fixes a memory leak reported by syzbot at: https://syzkaller.appspot.com/bug?id=7b4fa7cb1a7c2d3342a2a8a6c53371c8c418ab47 The Linux kernel CVE team has assigned CVE-2021-47405 to this issue. Affected and fixed versions =========================== Fixed in 4.4.286 with commit 7ce4e4914661 Fixed in 4.9.285 with commit efc5c8d29256 Fixed in 4.14.249 with commit c3156fea4d8a Fixed in 4.19.209 with commit 764ac04de056 Fixed in 5.4.151 with commit 965147067fa1 Fixed in 5.10.71 with commit f7ac4d24e161 Fixed in 5.14.10 with commit 2b704864c92d Fixed in 5.15 with commit f7744fa16b96 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-2021-47405 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/hid/usbhid/hid-core.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/7ce4e49146612261265671b1d30d117139021030 https://git.kernel.org/stable/c/efc5c8d29256955cc90d8d570849b2d6121ed09f https://git.kernel.org/stable/c/c3156fea4d8a0e643625dff69a0421e872d1fdae https://git.kernel.org/stable/c/764ac04de056801dfe52a716da63f6e7018e7f3b https://git.kernel.org/stable/c/965147067fa1bedff3ae1f07ce3f89f1a14d2df3 https://git.kernel.org/stable/c/f7ac4d24e1610b92689946fa88177673f1e88a3f https://git.kernel.org/stable/c/2b704864c92dcec2b295f276fcfbfb81d9831f81 https://git.kernel.org/stable/c/f7744fa16b96da57187dc8e5634152d3b63d72de