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 9A37223C8D5 for ; Sat, 4 Oct 2025 07:34:13 +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=1759563253; cv=none; b=b9pghF5TVSYP3dfeq9aw2/DvUxBExJQShJn2A1IhgfJ2CMulvcE3a7ep7krlhm8GUGQpvuNoEOm1vceHUYLFxgH+5+UezhrIUqCo7PEZ7Jr2haGOIcW5lqErMldDDVXNhjHLLUxJMX5OvXGcjyLOlpoD9V0WZj3G4Fxou1IXn+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563253; c=relaxed/simple; bh=a4pTqnhYiJxrecI7QYKiWHap5l7m9rJcJBxG9BUpPMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HOlmeQO345Cbvwg0I9fBMNx4Wm7ja4KFm9K61dmPRIFmgwEmYUIajb210SQ4k7BQmb+CRjepwPJF5yYSVDUfpXHeNGvVkYuZhCTBbNLnOjlgK9TNkBDaW2jni1kzYHErt0nYhfE26MsTfalpc5NYMyhS2DIPrtQL0ZG7YASVquk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gSJabdRs; 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="gSJabdRs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 250F6C4CEF1; Sat, 4 Oct 2025 07:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563253; bh=a4pTqnhYiJxrecI7QYKiWHap5l7m9rJcJBxG9BUpPMs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gSJabdRsvsxmU0MHWe2Hwga2FlLlWDSE1UB4EiWFatdhfA7yew41SVl95HwfwaR9v hbRUMCgNvDkmH2NS9US6kZkMdeXagjIFSYE8iqUUejjY64Ycs4zFB9LfRWyGgBtYie myDpI6571ix1O6+BeYHjBg21tzjL3VmyIZQ3oNb0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39952: wifi: wilc1000: avoid buffer overflow in WID string configuration Date: Sat, 4 Oct 2025 09:33:36 +0200 Message-ID: <2025100421-CVE-2025-39952-e36c@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=2542; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hRxOqCRXGbqJOD3LjmOenlzWkJaAHTA6TFvlVnR7NiY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzh4USY+wvn7+9hfhbae8DbLPMnnPefb1p8b6ZbvX+ Pb9PrV/bUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxPAIwzwle5Yrwf+Sb59/ 6mUia2vC6+q0nJFhnvWH/X9NXjyo4qwLn7Si56pYaQXDDQA= 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: wifi: wilc1000: avoid buffer overflow in WID string configuration Fix the following copy overflow warning identified by Smatch checker. drivers/net/wireless/microchip/wilc1000/wlan_cfg.c:184 wilc_wlan_parse_response_frame() error: '__memcpy()' 'cfg->s[i]->str' copy overflow (512 vs 65537) This patch introduces size check before accessing the memory buffer. The checks are base on the WID type of received data from the firmware. For WID string configuration, the size limit is determined by individual element size in 'struct wilc_cfg_str_vals' that is maintained in 'len' field of 'struct wilc_cfg_str'. The Linux kernel CVE team has assigned CVE-2025-39952 to this issue. Affected and fixed versions =========================== Fixed in 6.6.108 with commit 6085291a1a5865d4ad70f0e5812d524ebd5d1711 Fixed in 6.12.49 with commit 2203ef417044b10a8563ade6a17c74183745d72e Fixed in 6.16.9 with commit ae50f8562306a7ea1cf3c9722f97ee244f974729 Fixed in 6.17 with commit fe9e4d0c39311d0f97b024147a0d155333f388b5 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-39952 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/net/wireless/microchip/wilc1000/wlan_cfg.c drivers/net/wireless/microchip/wilc1000/wlan_cfg.h 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/6085291a1a5865d4ad70f0e5812d524ebd5d1711 https://git.kernel.org/stable/c/2203ef417044b10a8563ade6a17c74183745d72e https://git.kernel.org/stable/c/ae50f8562306a7ea1cf3c9722f97ee244f974729 https://git.kernel.org/stable/c/fe9e4d0c39311d0f97b024147a0d155333f388b5