From mboxrd@z Thu Jan 1 00:00:00 1970 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 C93AC1EBA19 for ; Mon, 8 Dec 2025 01:20:17 +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=1765156817; cv=none; b=UtQrvH4MRp4YeZ0azAXD3NQRhVgKACFWPua1gqX2hkcNQEenRcJeGMFLIe8CCk2nf0aqNPjL6e38Ke36C4RAIeWRJl1BvF760XbiDyMY4Y+C+UpG2wwncOFW3YBt0M9cSZsfs75GmZEh4QlLT26XJyK8PbA6y9ohVbIVmVhKqC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156817; c=relaxed/simple; bh=kQ7kaPDJ2KZyilO1g+b/XQiYLdXqeqyXuxpCtGIE29U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fm6c8/ae1kQgqTIXBQ+kybKt3YWdX+EgNgFz4BfCyH8JU86MJiXDtEsYLcKVH4HlAE/GTxFqYuj8qLKIUt5TejckkWeSPGEPzHnYNZIR3IU/u6DXh75VLM6U9MXWiKtVblYiS8osY/n7vp1nldEeng7N8HDPZCMtObO2t+mpVxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yhepyOyr; 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="yhepyOyr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51E5EC4CEFB; Mon, 8 Dec 2025 01:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156817; bh=kQ7kaPDJ2KZyilO1g+b/XQiYLdXqeqyXuxpCtGIE29U=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yhepyOyr70rwVocNlVSkmDD157xmIMakJV7nAvDUFtF4kZQdbH54zXLHhuhLwIK6Q SIBpY3FjJDV2wbqTAW+RTbNv5dEFZPiDknnxAY6kOAuhjJPt0H4uq1RYFgsE2L69zD tiYPJAMe100KD6K9g780cUaN1wJKozryfKwzC0+w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53759: HID: hidraw: fix data race on device refcount Date: Mon, 8 Dec 2025 10:19:58 +0900 Message-ID: <2025120844-CVE-2023-53759-c444@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2729; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uehuTKJ/4nVDGJZCbtOWMhbnXGalk2WFCGlvpM0Wn1c=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6hsKvnDbm+jFKBfZ+/3uVjG7puW5RD9S4m8J1+EnF zZsbGDviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInozGBY0L9spdM5t90Ve2uC ZnCeSXt70EpuO8McTvcGk/dxP19+l92oPnFHk9sDNeObAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: hidraw: fix data race on device refcount The hidraw_open() function increments the hidraw device reference counter. The counter has no dedicated synchronization mechanism, resulting in a potential data race when concurrently opening a device. The race is a regression introduced by commit 8590222e4b02 ("HID: hidraw: Replace hidraw device table mutex with a rwsem"). While minors_rwsem is intended to protect the hidraw_table itself, by instead acquiring the lock for writing, the reference counter is also protected. This is symmetrical to hidraw_release(). The Linux kernel CVE team has assigned CVE-2023-53759 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 8590222e4b021054a7167a4dd35b152a8ed7018e and fixed in 6.1.37 with commit 879e79c3aead41b8aa2e91164354b30bd1c4ef3b Issue introduced in 5.17 with commit 8590222e4b021054a7167a4dd35b152a8ed7018e and fixed in 6.3.11 with commit ff348eabd97577da974d3db7038857f28c61d2bd Issue introduced in 5.17 with commit 8590222e4b021054a7167a4dd35b152a8ed7018e and fixed in 6.4.1 with commit 05b47034e2488c2924e5c032e20a1979d012b5b5 Issue introduced in 5.17 with commit 8590222e4b021054a7167a4dd35b152a8ed7018e and fixed in 6.5 with commit 944ee77dc6ec7b0afd8ec70ffc418b238c92f12b 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-2023-53759 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/hidraw.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/879e79c3aead41b8aa2e91164354b30bd1c4ef3b https://git.kernel.org/stable/c/ff348eabd97577da974d3db7038857f28c61d2bd https://git.kernel.org/stable/c/05b47034e2488c2924e5c032e20a1979d012b5b5 https://git.kernel.org/stable/c/944ee77dc6ec7b0afd8ec70ffc418b238c92f12b