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 216BC21E0BB for ; Sat, 4 Oct 2025 07:34:32 +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=1759563272; cv=none; b=mDvULbRmAYVMZBvcgkgwq1V5g/hwN96zRf6LJEFM5TIS2M21CAgVxmS+/WhlfnOUiDhWB7eYOJzpmCJXeE+/unHY+NHzLOCCLtFUMphJyG1W7/7Cyyf3cSStOhXzzd3jMeTZkbNX3f2MJlWuMpHq1BHlhrjPdXYON7j425SsXwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563272; c=relaxed/simple; bh=Ua/BqhxnYO+jK1Vic+6ObGn3ko77W+Vs2uhUmcAF1xQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YlBJi64VTE9ZH4H6VMEN6HbCgn3rCaV6ty09wgLvVtQZffIg4ugyQoXV9JYCh92sV8pCbiqQTwnwlMYVgaVie002f1oQPMX9mmgl57NHFyWM4VgPRq0Zd4lCGiuHM0tOFof4BUpKDI+IvEB7YKIZGFfcJyj7hyST2/hokX1JvYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xry3SM+x; 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="Xry3SM+x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96337C4CEF1; Sat, 4 Oct 2025 07:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563272; bh=Ua/BqhxnYO+jK1Vic+6ObGn3ko77W+Vs2uhUmcAF1xQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Xry3SM+xRkeVu5B3ETrZZYDRVKLWILFn5AdbJTU3a8lzcp5+E0/M056Oq6Zqb+aE/ YbkfcnQMSMUPjju8vV7LGBOXbbK9YtvN7bJ4u/8sKqvK0sZ2LUdd/tchalYz3elxa8 o1opw/tZxbLUpt3fblIgWipFAbF8u4AwsTRjlkOs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39937: net: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer Date: Sat, 4 Oct 2025 09:33:21 +0200 Message-ID: <2025100418-CVE-2025-39937-c8f7@gregkh> X-Mailer: git-send-email 2.51.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=3304; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s/zUp3llHtGLLEKcGPlKWH+8hZmqjaEgWUUcuISCnXk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzu7LuM6r1/nvs2LsH7uHVtIL3vArT0gJdFpufnfj1 L7AZwzLOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiDK8ZFsye8uxOukJjz3Jv ixSBVjXplYyPKxkWTFy02tP4zT+VfbPSji56cm7rjsA+BQA= 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: net: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer Since commit 7d5e9737efda ("net: rfkill: gpio: get the name and type from device property") rfkill_find_type() gets called with the possibly uninitialized "const char *type_name;" local variable. On x86 systems when rfkill-gpio binds to a "BCM4752" or "LNV4752" acpi_device, the rfkill->type is set based on the ACPI acpi_device_id: rfkill->type = (unsigned)id->driver_data; and there is no "type" property so device_property_read_string() will fail and leave type_name uninitialized, leading to a potential crash. rfkill_find_type() does accept a NULL pointer, fix the potential crash by initializing type_name to NULL. Note likely sofar this has not been caught because: 1. Not many x86 machines actually have a "BCM4752"/"LNV4752" acpi_device 2. The stack happened to contain NULL where type_name is stored The Linux kernel CVE team has assigned CVE-2025-39937 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit 7d5e9737efda16535e5b54bd627ef4881d11d31f and fixed in 6.1.154 with commit 47ade5f9d70b23a119ec20b1c6504864b2543a79 Issue introduced in 4.6 with commit 7d5e9737efda16535e5b54bd627ef4881d11d31f and fixed in 6.6.108 with commit 689aee35ce671aab752f159e5c8e66d7685e6887 Issue introduced in 4.6 with commit 7d5e9737efda16535e5b54bd627ef4881d11d31f and fixed in 6.12.49 with commit 21ba85d9d508422ca9e6698463ff9357c928c22d Issue introduced in 4.6 with commit 7d5e9737efda16535e5b54bd627ef4881d11d31f and fixed in 6.16.9 with commit 21a39b958b4bcf44f7674bfbbe1bbb8cad0d842d Issue introduced in 4.6 with commit 7d5e9737efda16535e5b54bd627ef4881d11d31f and fixed in 6.17 with commit b6f56a44e4c1014b08859dcf04ed246500e310e5 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-39937 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: net/rfkill/rfkill-gpio.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/47ade5f9d70b23a119ec20b1c6504864b2543a79 https://git.kernel.org/stable/c/689aee35ce671aab752f159e5c8e66d7685e6887 https://git.kernel.org/stable/c/21ba85d9d508422ca9e6698463ff9357c928c22d https://git.kernel.org/stable/c/21a39b958b4bcf44f7674bfbbe1bbb8cad0d842d https://git.kernel.org/stable/c/b6f56a44e4c1014b08859dcf04ed246500e310e5