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 163E73DDDCD for ; Fri, 24 Apr 2026 14:38:10 +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=1777041490; cv=none; b=egcTLY6zLG1o6vx9kF1WQOoqEbyNoyUQ1/vr7FDZ7IBR5mRlxd/jwskmXHKejuMzMmFQwXIgqqBSxkhtyUMigYlDtYPcVjj4EFrFS/aP2iZXYTQowisY/mxBaP5MWQaYxV5+58Ax1JKRycMEtTWSXQRYv1ByWpYNovURtJDRdF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041490; c=relaxed/simple; bh=Tq+inShZJQRuuLVIZWq/bvlvh4/a8EEnKua0H2eTHb0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TRdeN8HVezd4SUC4EqNVEFuJTDOoWkMSYoKyFKA43W2NLldsEyXIN5vhDXt/X2ade/ahfloLSm4iY7BqJ42bb40mLFZv/O+I7Hl6NsTRyJQFpz0XYucAO7aLkBsQFYwB0C5YiCdTVJKBpU/4yfbR9nHuNn8s4nHALKZK9Y4ux+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jdzlTd83; 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="jdzlTd83" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A05FCC2BCB2; Fri, 24 Apr 2026 14:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041490; bh=Tq+inShZJQRuuLVIZWq/bvlvh4/a8EEnKua0H2eTHb0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jdzlTd83rlk5mM9kqkrkBajy6v3dIetn7MHxjrZMJSoGa8bggPXIV8KAkuz+IQS/F gqeRXs2kyWZ+exzOamzFENhRmqjzv8sW/eSG79F+py3Pp/YcxP4WSYRcj5DS/Rraji hUY2Nl43wBtzY7aqbek6xXVK+vp2okXOAAVbplN4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31559: LoongArch: Fix missing NULL checks for kstrdup() Date: Fri, 24 Apr 2026 16:36:03 +0200 Message-ID: <2026042458-CVE-2026-31559-01e9@gregkh> X-Mailer: git-send-email 2.53.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=2111; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5tYTmrpG884M2kU0XX1BHrsdkLf2OYFhV0skZeFHBMQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv68/t+3ukN4jlmfLtaoWoW74zxVZM5VxlOD3J7kvD/ oeWpcrdHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+3YMC+bIzNQ3krtf8yNU 8hXDtq07tkzYtJBhrtj7Q5OPi8899Msz4pHCDI8vd0x4pwAA 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: LoongArch: Fix missing NULL checks for kstrdup() 1. Replace "of_find_node_by_path("/")" with "of_root" to avoid multiple calls to "of_node_put()". 2. Fix a potential kernel oops during early boot when memory allocation fails while parsing CPU model from device tree. The Linux kernel CVE team has assigned CVE-2026-31559 to this issue. Affected and fixed versions =========================== Fixed in 6.12.80 with commit 5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 Fixed in 6.18.21 with commit a1da957c25cf751a2dce8fb7777f82ccbac0cb3e Fixed in 6.19.11 with commit b61a309743322fb57fb9afa9aa3495ac758e4f5e Fixed in 7.0 with commit 3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 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-2026-31559 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/loongarch/kernel/env.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/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1