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).
Published: 2026-09-03
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel’s Loongson2 MMC reordering functions, the macro for_each_sg correctly iterates over scatterlist entries, but the code incorrectly accesses elements using &sg[i] and sg_dma_len(&sg[i]). This misinterpretation treats the sg pointer as an array base and indexes it again, which can read from or write to wrong or out‑of‑bounds entries. The resulting memory corruption can corrupt kernel data structures, potentially leading to a kernel panic, data corruption, or other reliability issues. The description does not claim elevation of privilege, but the corruption could stop system operation.

Affected Systems

The bug resides in the loongson2 series drivers of the Linux kernel, specifically the functions ls2k0500_mmc_reorder_cmd_data and ls2k2000_mmc_reorder_cmd_data. Any system running a kernel that includes these functions before the patch is potentially affected. No specific downstream kernel releases or version ranges are listed, so the vulnerability applies to all builds containing the unpatched functions.

Risk and Exploitability

EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting no widely known exploits. However, the nature of the defect—out‑of‑bounds access in a privileged kernel component—represents a severe security risk. The likely attack vector is a local attacker able to craft or influence MMC traffic to the affected board; the attacker would need some form of access to MMC commands, potentially via a compromised application or an embedded environment. The impact of successful exploitation could be a kernel crash or data corruption, resulting in a denial of service or further exploitation if the corrupted state is exploitable. Without publicly released exploit code, the threat remains theoretical, but the severity warrants immediate mitigation.

Generated by OpenCVE AI on September 3, 2026 at 13:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the Loongson2 MMC reorder fix
  • If an update cannot be applied immediately, restrict or disable MMC device access on affected boards to prevent malicious traffic from reaching the kernel
  • Monitor system logs for MMC‑related errors or kernel crashes; if incidents occur, perform a reboot and investigate persistence

Generated by OpenCVE AI on September 3, 2026 at 13:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 03 Sep 2026 14:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-727

Thu, 03 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
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).
Title mmc: loongson2: Fix sg iteration in data reorder functions
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-04T04:58:28.127Z

Reserved: 2026-08-26T14:34:25.790Z

Link: CVE-2026-80748

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:14.410

Modified: 2026-09-04T05:17:14.773

Link: CVE-2026-80748

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T16:00:07Z

Weaknesses