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 DB3B02EC54C for ; Tue, 30 Dec 2025 12:22:39 +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=1767097359; cv=none; b=fmOYLbGZf+OTQyIS4zuA9Tawnh6nKx0qk0b9WpdkXkqzhVpdwfv9jjhZavcDEoUYv0RjGHBpDhs1ZMBIl9jfabz2P0eEOX+pGEJGBMkOiNnpmSlWmL0t73/ZKmZYud3wrZzQQ0Qm6IdC5xXnDFSRbicgdwLUvN5UKW6Hb8QlEZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097359; c=relaxed/simple; bh=hrGvicfzMq5wG4709+d4q3Ed5zcSEOwzJI+ifyvL9sQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iNYonGUcRHecIsvk/VFvSZy5m9rHzfOhj2KjtPq6+fAO5+I7GpxQfm0RE3vk+wpoaGkFiE+ejjoqEaRP3kYyK1MZmAIvZMKMJXpbEUqy1bLW3haQYmbqiHwN70ajaMi2TJ34gI9cUirrWqP4Sy2szrLpzs2JdfxQqCUnyDozrE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pBiW+n5P; 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="pBiW+n5P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 679F7C4CEFB; Tue, 30 Dec 2025 12:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097359; bh=hrGvicfzMq5wG4709+d4q3Ed5zcSEOwzJI+ifyvL9sQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=pBiW+n5PEGcXilNO5fKShneMbxfop3+FVxgCWY2GEiuW6s4K/5wHeJ/EknoeqYjFR TAwzANfRP3rEA37m5TLWTLrJI16ClDeDdKsM7LyfxXZrizT7/zPYcsVEm3HgjqIAll aAeYztoURQKYUWvzkDR62aivWwxgR1rn2jl+/jVQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54279: MIPS: fw: Allow firmware to pass a empty env Date: Tue, 30 Dec 2025 13:20:45 +0100 Message-ID: <2025123003-CVE-2023-54279-1dfa@gregkh> X-Mailer: git-send-email 2.52.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=2823; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZgtTzn9Y42jMrUbc5LyrSl96SvktU4TwEDqt9+h5OVU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBh4v3avMd7lFQvZW1QGB70okO9i9Wkw1EKm5rl0c0t i/iFH3aEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJ82GYn+e0UG7rmoVRjnka TisuZqSr/hOfyTA/cP2iQ0Zi/d4/rnZdZNzay5DVFuoDAA== 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: MIPS: fw: Allow firmware to pass a empty env fw_getenv will use env entry to determine style of env, however it is legal for firmware to just pass a empty list. Check if first entry exist before running strchr to avoid null pointer dereference. The Linux kernel CVE team has assigned CVE-2023-54279 to this issue. Affected and fixed versions =========================== Fixed in 4.14.315 with commit f334b31625683418aaa2a335470eec950a95a254 Fixed in 4.19.283 with commit 830181ddced5a05a711dc9da8043203b1f33a77e Fixed in 5.4.243 with commit 0f91290774c798199ba4b8df93de5c3156b5163d Fixed in 5.10.180 with commit 47e61cadc7a5f3dffd42d2d6fda81be163f1ab82 Fixed in 5.15.111 with commit 3ef93b7bd9e042db240843f24a80e14da38c6830 Fixed in 6.1.28 with commit a6b54af407873227caef6262e992f5422cdcb6ae Fixed in 6.2.15 with commit ad79828f133e98585ab2236cad04a55eb7141bbe Fixed in 6.3.2 with commit aeed787bbbbe1b842beec9a065a36c915226f704 Fixed in 6.4 with commit ee1809ed7bc456a72dc8410b475b73021a3a68d5 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-2023-54279 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: arch/mips/fw/lib/cmdline.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/f334b31625683418aaa2a335470eec950a95a254 https://git.kernel.org/stable/c/830181ddced5a05a711dc9da8043203b1f33a77e https://git.kernel.org/stable/c/0f91290774c798199ba4b8df93de5c3156b5163d https://git.kernel.org/stable/c/47e61cadc7a5f3dffd42d2d6fda81be163f1ab82 https://git.kernel.org/stable/c/3ef93b7bd9e042db240843f24a80e14da38c6830 https://git.kernel.org/stable/c/a6b54af407873227caef6262e992f5422cdcb6ae https://git.kernel.org/stable/c/ad79828f133e98585ab2236cad04a55eb7141bbe https://git.kernel.org/stable/c/aeed787bbbbe1b842beec9a065a36c915226f704 https://git.kernel.org/stable/c/ee1809ed7bc456a72dc8410b475b73021a3a68d5