From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B718F41D11E for ; Thu, 3 Sep 2026 08:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788424055; cv=none; b=GLYjXpECQwVdsWe/Fxvw8YY85RU/jTP2z6syN5AHC78D1z47uL8FHBzpz1iQgN2ecUMyEr3kPco8WfuH14lHh1TlOKzdFxhu4h/j5Dr5YWbHaS5B2JcWL/31K9SOzfSDEDpeK1tOOQLd9guPEc7tDV4aMFHXatbEg3guS9uFVIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788424055; c=relaxed/simple; bh=JuG+ZMrA1iS0xnoUlTZAQh0xl7X1xwVBXVKHXTYd/7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tEvutmZ4OZ7QnATHHjokzjgJyV9UPnQq35YXGGF/3gigNmTl3zlgM8MNB9v6NFx0vdz4+lGjdDztAU1SP2UDBKqZSyJdctNUrFIbsr/cO5RmSLjQxyryu5VJNJIaFeOfRN7PcQC48c1MN6aH6aNhqP075sYdBZf78xuKRE70JqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZIpaSqL6; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZIpaSqL6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCEA81F00A3A; Thu, 3 Sep 2026 08:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788424054; bh=EajFBAQOxCWxKHUrlRvOjQ0UTIQtll26QyZdXhSq6oQ=; h=From:To:Cc:Subject:Date:Reply-To; b=ZIpaSqL6hTM3woi25kDeutjBOi88U7Y2xTrDAoJXrFxBjRIln64y3lFovl32UHQZg G28w7BxzmtLwm317MFHHejT4qRM40ObSsMVZrgKe6L+z0MQBHZvrS9VCBAZgQ3SF4a ArpHDVm6ZcXtVvBxYunzfycQawnNZRhltF7YOdHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80748: mmc: loongson2: Fix sg iteration in data reorder functions Date: Thu, 3 Sep 2026 10:26:45 +0200 Message-ID: <2026090338-CVE-2026-80748-a055@gregkh> X-Mailer: git-send-email 2.55.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=2419; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PET2JOvfR9gRI+XGJcj5OIdHkPMpNsccft48r2ZZXuQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkz9e2Ot+b8T2R2DrTbF7hPdJbphedqxxQWmu98u2Xb/ dqVC3dLdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1LcwzLNd9NPo8yrrja9c /8dvtlqWaLWpRJ9hnkL/WVXxGfyH1CumtvgIzNm9ZpnYQwA= 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: mmc: loongson2: Fix sg iteration in data reorder functions In ls2k0500_mmc_reorder_cmd_data() and ls2k2000_mmc_reorder_cmd_data(), the for_each_sg() macro already iterates over the scatterlist entries, with 'sg' pointing to the current entry. However, the code incorrectly uses '&sg[i]' and 'sg_dma_len(&sg[i])' inside the loop, which treats 'sg' as an array base and indexes it again, leading to access of wrong sg entries (or out-of-bounds if the list is not an array). The Linux kernel CVE team has assigned CVE-2026-80748 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 2115772014bdac368317e997ed15016cf2792665 and fixed in 6.18.46 with commit 8f7f7a6d5aed8f346a1c936fba02033c73a337dc Issue introduced in 6.17 with commit 2115772014bdac368317e997ed15016cf2792665 and fixed in 7.1.10 with commit db368164383c46f256ed8152a41ae9300e615028 Issue introduced in 6.17 with commit 2115772014bdac368317e997ed15016cf2792665 and fixed in 7.2 with commit 00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c 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-80748 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/mmc/host/loongson2-mmc.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/8f7f7a6d5aed8f346a1c936fba02033c73a337dc https://git.kernel.org/stable/c/db368164383c46f256ed8152a41ae9300e615028 https://git.kernel.org/stable/c/00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c