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 97F203D6F for ; Thu, 1 May 2025 12:57:51 +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=1746104271; cv=none; b=lV3AS8VVIoWryY1pOhXhusRVPguO6cqpp2B+tChuniDWvPlrdaOV3NvsokTUyUe2Zk1RMgshbaQNq/oDtybT+laNAJ7o9eNnz64+nHwT4t5EVFXDslrzKFruoEcWwaad8chlI2f7pW9U13TEYrzH8zBnm9GpsEgwxUF7qfdwkek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104271; c=relaxed/simple; bh=00tY3p33MXxmillLoSnCcffT+jvosCNCicIqIOv7PBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QQNWBR1J2Q3zFLEDNvlyITS88tsZvveNWboxZI7kBpxIktRf7K3ZjVTqyhnq3MpBRlI5cPNEy9SJkGaTenvQ3KkGv3L4+kft9rMu14drLcIDlYxaTjIKdIdMAApXLgRa8bXn/ptaEZjoLinDxPkMbfEJp3ZgHw4BNZtQu6cTE1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ygNorUVT; 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="ygNorUVT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92144C4CEE3; Thu, 1 May 2025 12:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104271; bh=00tY3p33MXxmillLoSnCcffT+jvosCNCicIqIOv7PBI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ygNorUVTHg6M3fndB32cICVonhdTlqEWyvwKXHb3S7vY0tUnoAEaJlmNgjBfEq/J8 E7jVFK1ys9/fupUazW0iRrY23Q5p8aNktAwngslliFCKl/M0dVyikULC+G+qvaJFV1 qj/42saZFpQ9G4Ds3Po80ucR/N6Ovkc2Yc1JtAxE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-23144: backlight: led_bl: Hold led_access lock when calling led_sysfs_disable() Date: Thu, 1 May 2025 14:56:24 +0200 Message-ID: <2025050125-CVE-2025-23144-d85a@gregkh> X-Mailer: git-send-email 2.49.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=3054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=awsNuvYrKVLqQTOqxCvUOZwj4QjF03ltbSSqF7OfZ3M=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+ZVG87esC927YdJOHslLaayOqgavFS7rfDXMc1JvT T5w+uztjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI3isM83Pb3t82LpnaE5l4 d9PBPyxeJqsPyjPM0/UOSGF2P7x6y4+26Bg2dy1h3sD7AA== 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: backlight: led_bl: Hold led_access lock when calling led_sysfs_disable() Lockdep detects the following issue on led-backlight removal: [ 142.315935] ------------[ cut here ]------------ [ 142.315954] WARNING: CPU: 2 PID: 292 at drivers/leds/led-core.c:455 led_sysfs_enable+0x54/0x80 ... [ 142.500725] Call trace: [ 142.503176] led_sysfs_enable+0x54/0x80 (P) [ 142.507370] led_bl_remove+0x80/0xa8 [led_bl] [ 142.511742] platform_remove+0x30/0x58 [ 142.515501] device_remove+0x54/0x90 ... Indeed, led_sysfs_enable() has to be called with the led_access lock held. Hold the lock when calling led_sysfs_disable(). The Linux kernel CVE team has assigned CVE-2025-23144 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit ae232e45acf9621f2c96b41ca3af006ac7552c33 and fixed in 6.6.88 with commit 1c82f5a393d8b9a5c1ea032413719862098afd4b Issue introduced in 5.6 with commit ae232e45acf9621f2c96b41ca3af006ac7552c33 and fixed in 6.12.24 with commit 61a5c565fd2442d3128f3bab5f022658adc3a4e6 Issue introduced in 5.6 with commit ae232e45acf9621f2c96b41ca3af006ac7552c33 and fixed in 6.13.12 with commit 11d128f7eacec276c75cf4712880a6307ca9c885 Issue introduced in 5.6 with commit ae232e45acf9621f2c96b41ca3af006ac7552c33 and fixed in 6.14.3 with commit b8ddf5107f53789448900f04fa220f34cd2f777e Issue introduced in 5.6 with commit ae232e45acf9621f2c96b41ca3af006ac7552c33 and fixed in 6.15-rc1 with commit 276822a00db3c1061382b41e72cafc09d6a0ec30 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-2025-23144 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/video/backlight/led_bl.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/1c82f5a393d8b9a5c1ea032413719862098afd4b https://git.kernel.org/stable/c/61a5c565fd2442d3128f3bab5f022658adc3a4e6 https://git.kernel.org/stable/c/11d128f7eacec276c75cf4712880a6307ca9c885 https://git.kernel.org/stable/c/b8ddf5107f53789448900f04fa220f34cd2f777e https://git.kernel.org/stable/c/276822a00db3c1061382b41e72cafc09d6a0ec30