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 66E35207A0F for ; Tue, 1 Apr 2025 15:42:03 +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=1743522123; cv=none; b=Y53YtdYVgckGFADGgYdBZmwXUkfYECE5C6xFgsAeaZ2ZEYkxI0VL1rSVGlLJ9hJYdyd6T9d677pfHNqv4yq/l0qKqGJNhDcujZRyoBkFokgOy0gvfFxHr+8Ume8e5HbQcgTs62Avtkxg7s8G5dpPCzkLARV4ez6boKdwxuXvWlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522123; c=relaxed/simple; bh=v4COLSAL7B5JIpmsSji4OEPI4qdwOt/v/ySytjag7Uk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Onph2KOwcodeUNZOKHaKtWIq2u5rtTnyJGZycvAHdeuUuFGHwx/QD+h5n7c/pahQJJKUgg013LSKzv4C7xsmOYplOe1e72ETUzODm0/ZmQG8C2n+Nk9m1fAP02PnHAwLL09Ts/sh80tnIzek9JrlptVetRgVeq6hWY/XDU7bPQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RADd87EY; 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="RADd87EY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2B97C4CEE4; Tue, 1 Apr 2025 15:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522123; bh=v4COLSAL7B5JIpmsSji4OEPI4qdwOt/v/ySytjag7Uk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RADd87EYP5ALpgkmYfEuR03sriPA4k8gAS9i7BvEceZNphsu60wuplJwP1ULikv75 mZDsM6KyQiS7Y0ebgOxjM4PGKGK2gVmnHY7jbScEBrPfOGaNucnj5kd6R4P1PeCEqW OzKWtUVfj/AoW+u28Pzs/m9hiwrOHG5RCg1RGcPU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21905: wifi: iwlwifi: limit printed string from FW file Date: Tue, 1 Apr 2025 16:39:29 +0100 Message-ID: <2025040129-CVE-2025-21905-348b@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=3450; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v4COLSAL7B5JIpmsSji4OEPI4qdwOt/v/ySytjag7Uk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvODa2a82c/+KVmz7zxeteDXdMuFaxCH6uSdly7tylI +8XBuawdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE2B8zzM8Tam48euz5Xlcm /YxrPN6+/esUlBkWbBbe3dI828HurNGimXMun5hUaLJTAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: iwlwifi: limit printed string from FW file There's no guarantee here that the file is always with a NUL-termination, so reading the string may read beyond the end of the TLV. If that's the last TLV in the file, it can perhaps even read beyond the end of the file buffer. Fix that by limiting the print format to the size of the buffer we have. The Linux kernel CVE team has assigned CVE-2025-21905 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 5.4.291 with commit 38f0d398b6d7640d223db69df022c4a232f24774 Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 5.10.235 with commit c0e626f2b2390472afac52dfe72b29daf9ed8e1d Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 5.15.179 with commit 47616b82f2d42ea2060334746fed9a2988d845c9 Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 6.1.131 with commit 88ed69f924638c7503644e1f8eed1e976f3ffa7a Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 6.6.83 with commit b02f8d5a71c8571ccf77f285737c566db73ef5e5 Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 6.12.19 with commit f265e6031d0bc4fc40c4619cb42466722b46eaa9 Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 6.13.7 with commit 59cdda202829d1d6a095d233386870a59aff986f Issue introduced in 5.2 with commit aee1b6385e29e472ae5592b9652b750a29bf702e and fixed in 6.14 with commit e0dc2c1bef722cbf16ae557690861e5f91208129 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-21905 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/intel/iwlwifi/iwl-drv.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/38f0d398b6d7640d223db69df022c4a232f24774 https://git.kernel.org/stable/c/c0e626f2b2390472afac52dfe72b29daf9ed8e1d https://git.kernel.org/stable/c/47616b82f2d42ea2060334746fed9a2988d845c9 https://git.kernel.org/stable/c/88ed69f924638c7503644e1f8eed1e976f3ffa7a https://git.kernel.org/stable/c/b02f8d5a71c8571ccf77f285737c566db73ef5e5 https://git.kernel.org/stable/c/f265e6031d0bc4fc40c4619cb42466722b46eaa9 https://git.kernel.org/stable/c/59cdda202829d1d6a095d233386870a59aff986f https://git.kernel.org/stable/c/e0dc2c1bef722cbf16ae557690861e5f91208129