{"api_version":"1","generated_at":"2026-10-27T09:11:53+00:00","cve":"CVE-2026-80748","urls":{"html":"https://cve.report/CVE-2026-80748","api":"https://cve.report/api/cve/CVE-2026-80748.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-80748","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-80748"},"summary":{"title":"mmc: loongson2: Fix sg iteration in data reorder functions","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: loongson2: Fix sg iteration in data reorder functions\n\nIn ls2k0500_mmc_reorder_cmd_data() and ls2k2000_mmc_reorder_cmd_data(),\nthe for_each_sg() macro already iterates over the scatterlist entries,\nwith 'sg' pointing to the current entry. However, the code incorrectly\nuses '&sg[i]' and 'sg_dma_len(&sg[i])' inside the loop, which treats\n'sg' as an array base and indexes it again, leading to access of\nwrong sg entries (or out-of-bounds if the list is not an array).","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-03 13:06:14","updated_at":"2026-09-04 05:17:14"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/8f7f7a6d5aed8f346a1c936fba02033c73a337dc","name":"https://git.kernel.org/stable/c/8f7f7a6d5aed8f346a1c936fba02033c73a337dc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/db368164383c46f256ed8152a41ae9300e615028","name":"https://git.kernel.org/stable/c/db368164383c46f256ed8152a41ae9300e615028","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c","name":"https://git.kernel.org/stable/c/00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-80748","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80748","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2115772014bdac368317e997ed15016cf2792665 8f7f7a6d5aed8f346a1c936fba02033c73a337dc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2115772014bdac368317e997ed15016cf2792665 db368164383c46f256ed8152a41ae9300e615028 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2115772014bdac368317e997ed15016cf2792665 00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.46 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.10 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"80748","cve":"CVE-2026-80748","epss":"0.001610000","percentile":"0.056270000","score_date":"2026-09-07","updated_at":"2026-09-08 00:05:27"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/mmc/host/loongson2-mmc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8f7f7a6d5aed8f346a1c936fba02033c73a337dc","status":"affected","version":"2115772014bdac368317e997ed15016cf2792665","versionType":"git"},{"lessThan":"db368164383c46f256ed8152a41ae9300e615028","status":"affected","version":"2115772014bdac368317e997ed15016cf2792665","versionType":"git"},{"lessThan":"00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c","status":"affected","version":"2115772014bdac368317e997ed15016cf2792665","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/mmc/host/loongson2-mmc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.46","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.46","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.10","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2","versionStartIncluding":"6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: loongson2: Fix sg iteration in data reorder functions\n\nIn ls2k0500_mmc_reorder_cmd_data() and ls2k2000_mmc_reorder_cmd_data(),\nthe for_each_sg() macro already iterates over the scatterlist entries,\nwith 'sg' pointing to the current entry. However, the code incorrectly\nuses '&sg[i]' and 'sg_dma_len(&sg[i])' inside the loop, which treats\n'sg' as an array base and indexes it again, leading to access of\nwrong sg entries (or out-of-bounds if the list is not an array)."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is in the Loongson-2K MMC host driver reached via local block I/O and MMC ioctls (SD writes trigger SD_APP_SEND_NUM_WR_BLKS; card init issues SD_SWITCH/SCR), not via any network protocol; it affects LoongArch desktops, kiosks, and embedded systems with SD/eMMC slots.\nAC:L - An attacker with SD-backed storage access can reliably drive the post-DMA reorder path on every qualifying transfer; the double-indexed for_each_sg bug deterministically accesses wrong scatterlist entries whenever sg_len exceeds one, without races or uncontrollable memory layout.\nPR:L - Any unprivileged local user writing to an SD-backed filesystem or opening the mmc block device can trigger the vulnerable reorder functions; no CAP_SYS_ADMIN, init-namespace root, or user-namespace capability is required.\nUI:N - Exploitation requires only the attacker's own writes, MMC_IOC_CMD ioctl sequences, or kernel auto-enumeration after SD insertion; no separate victim mount, login, or cooperative action is needed.\nS:U - Scatterlist mis-indexing corrupts kernel heap memory within the host kernel security boundary; this is standard local privilege-escalation impact, not VM escape, IOMMU bypass, or cross-container authority change.\nC:H - sg_virt(&sg[i]) on a mis-advanced pointer reads from wrong or out-of-bounds scatterlist entries, exposing adjacent kernel memory; out-of-bounds reads are rated High and can leak pointers usable for further exploitation.\nI:H - The reorder loop writes bitrev8x4/cpu_to_be32-transformed values through the mis-indexed scatterlist pointer, performing out-of-bounds kernel memory writes that can corrupt adjacent objects and enable arbitrary code execution.\nA:H - Corrupting adjacent kernel structures via the out-of-bounds scatterlist write can cause immediate kernel oops or panic; memory corruption bugs in interrupt context are rated High availability impact even when not fully weaponized."}]}],"providerMetadata":{"dateUpdated":"2026-09-04T04:58:28.127Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/8f7f7a6d5aed8f346a1c936fba02033c73a337dc"},{"url":"https://git.kernel.org/stable/c/db368164383c46f256ed8152a41ae9300e615028"},{"url":"https://git.kernel.org/stable/c/00179ed9fbe07799676e2cb63c4e7f0e7cd80a5c"}],"title":"mmc: loongson2: Fix sg iteration in data reorder functions","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-80748","datePublished":"2026-09-03T08:26:29.532Z","dateReserved":"2026-08-26T14:34:25.790Z","dateUpdated":"2026-09-04T04:58:28.127Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-03 13:06:14","lastModifiedDate":"2026-09-04 05:17:14","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"80748","Ordinal":"1","Title":"mmc: loongson2: Fix sg iteration in data reorder functions","CVE":"CVE-2026-80748","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"80748","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: loongson2: Fix sg iteration in data reorder functions\n\nIn ls2k0500_mmc_reorder_cmd_data() and ls2k2000_mmc_reorder_cmd_data(),\nthe for_each_sg() macro already iterates over the scatterlist entries,\nwith 'sg' pointing to the current entry. However, the code incorrectly\nuses '&sg[i]' and 'sg_dma_len(&sg[i])' inside the loop, which treats\n'sg' as an array base and indexes it again, leading to access of\nwrong sg entries (or out-of-bounds if the list is not an array).","Type":"Description","Title":"mmc: loongson2: Fix sg iteration in data reorder functions"}]}}}