From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 26CE13AE1B4 for ; Fri, 4 Sep 2026 15:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535037; cv=none; b=ESLMlayFG4tvHPqsgZSuRCqLJzVTTq9M2X9BOwo7jCeU987K7fsvpw4iPfxKUUa5SOYqoYAniZcmfDYqYSnCT4E1Izu+5zfhGEVHXIWjD/gMnReKpk+PxJXAIVaS3iGsPO3/mDQ9OrIcJ4aPkXjb2xNHz0UfHFaz9hlWXBnbnKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535037; c=relaxed/simple; bh=Q79Bo8oekdVt8zmjQfIEi88+oxQoYywT4Gj1LJ53sKk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B/gfTbi0X0vQhAavfpbHnF5clcJxX9R8rulISGvtXAYkMzqvSxh8uvgGSvMhU8EgYDqPstY7GprAmfBjxIu0xNylVhYJqh7Qk14q+tHhIT0Im9G7Q9ZMj0fYI+cd5GJTp4ghpXtQvGJO2Ik3aCHBWaqDknT7Eu1DUYYKhzCxI8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vCFvCQPI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vCFvCQPI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39B461F00A3F; Fri, 4 Sep 2026 15:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788535036; bh=DpibVcBIxV53/y0IuyJf7FJtS3Gf7HC5fRz4McP2hEQ=; h=From:To:Cc:Subject:Date:Reply-To; b=vCFvCQPIdZABGqKE7PNsVMxknfhtL4vRPEW9X8LmMpQHpdH7FolNsjTFLZUpfHZwR aOpMsMhQHKuLXE6l0+uJ5IG2YaIsQmtfWxTUXG1QqIr1mwQAVP2nfpvD2xOL2DOLs8 ENvAfKLG4QHkxAy2GOtXRKuutDnSjWHMesMfDXxY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80767: HID: sensor: custom: Fix use-after-free in enable_sensor Date: Fri, 4 Sep 2026 17:11:06 +0200 Message-ID: <2026090401-CVE-2026-80767-dfe9@gregkh> X-Mailer: git-send-email 2.55.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=3902; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CVpoeQxNjeFUldSeS34dZc20l/noQllkAlFrV1V4SlU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7rfOO2G50WTm/A0+JrfLp26Ye3rak2kLg5KeFBRZV V3M2sDK3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+bCIYX727INPtz+QkX0t zi919k4dW+l9ZWOGuVJMP4N2/14vtW11zLeo9+wma60S7wAA 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: sensor: custom: Fix use-after-free in enable_sensor enable_sensor_store() can call set_power_report_state(), which dereferences sensor_inst->power_state and sensor_inst->report_state. These pointers refer to entries in sensor_inst->fields. Create the field attributes before exposing the enable_sensor sysfs attribute, so enable_sensor cannot be accessed before the state it depends on has been initialized. On remove, delete enable_sensor before freeing the field attributes, so a concurrent sysfs write cannot dereference freed memory through power_state or report_state. The Linux kernel CVE team has assigned CVE-2026-80767 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 5.10.267 with commit c2be74b0272b7f8f60739e7aaf0d36c0befe7136 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 5.15.218 with commit d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 6.1.185 with commit d37ff4e3635c18af907f25712596f8ccec323751 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 6.6.154 with commit 2ce90cfc6646a32100feabd7110ae0352aa01167 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 6.12.106 with commit 244a1cb638370490ed74a8adb5cc3f1212602e32 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 6.18.47 with commit 8406d4b69d48bc72fb6f8812a65a17a1f903440b Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 7.1.11 with commit c0757f10610542d763bd0bf9bda455b78afeef0b Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 7.2.1 with commit 7bb79a3cf45e0805aef74457e19deb77e18cf196 Issue introduced in 4.1 with commit 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d and fixed in 7.3-rc1 with commit ad8fb82b04422f49530d2aa2753cc81d1c60102c 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-2026-80767 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/hid-sensor-custom.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/c2be74b0272b7f8f60739e7aaf0d36c0befe7136 https://git.kernel.org/stable/c/d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855 https://git.kernel.org/stable/c/d37ff4e3635c18af907f25712596f8ccec323751 https://git.kernel.org/stable/c/2ce90cfc6646a32100feabd7110ae0352aa01167 https://git.kernel.org/stable/c/244a1cb638370490ed74a8adb5cc3f1212602e32 https://git.kernel.org/stable/c/8406d4b69d48bc72fb6f8812a65a17a1f903440b https://git.kernel.org/stable/c/c0757f10610542d763bd0bf9bda455b78afeef0b https://git.kernel.org/stable/c/7bb79a3cf45e0805aef74457e19deb77e18cf196 https://git.kernel.org/stable/c/ad8fb82b04422f49530d2aa2753cc81d1c60102c