CVE-2026-80748
nicheOut-of-bounds scatterlist access in Linux kernel Loongson2 MMC driver
CVE-2026-80748 is a memory-safety bug in the Linux kernel's mmc/loongson2 driver used with Loongson 2K0500 and 2K2000 SoCs, where the ls2k0500_mmc_reorder_cmd_data() and ls2k2000_mmc_reorder_cmd_data() functions iterate scatterlists incorrectly. Because the for_each_sg() macro already advances a pointer to the current entry, the additional &sg[i] / sg_dma_len(&sg[i]) indexing inside the loop treats that pointer as an array base, accessing the wrong scatterlist entries or reading out of bounds when the list is chained rather than a flat array. The bug is triggered when the driver processes MMC command data mapped across multiple scatterlist entries, as can occur during MMC/SD data transfers on affected hardware; a local low-privileged attacker could potentially leverage the resulting out-of-bounds access to cause kernel memory corruption, information disclosure, or a crash, consistent with the CVSS 7.8 (AV:L/PR:L, high C/I/A) rating. Only systems running a Linux kernel that includes this driver on Loongson 2K0500 or 2K2000 hardware are affected; mainstream x86/ARM systems are not. No public proof of concept is known, the issue is not in CISA KEV, and EPSS estimates only a 0.2% probability of exploitation within 30 days.
What to do: Update the kernel to a release or vendor build that incorporates the upstream fix ('mmc: loongson2: Fix sg iteration in data reorder functions'); the provided data does not state a fixed version, so track vendor/stable-tree advisories for the backport. In the meantime, limit local unprivileged access on Loongson 2K0500/2K2000 systems running this driver and confirm whether your kernel configuration actually enables the loongson2 MMC driver, since unaffected configs need no action.
| Linux kernel, mmc/loongson2 MMC driver (runs on Loongson 2K0500 and 2K2000 SoCs) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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).
- Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the news0 stories
No ingested article mentions this CVE yet.