{"id":"CVE-2026-98298","aliases":["CVE-2026-98298"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()\n\nIn mmp_pdma_prep_slave_sg(), for_each_sg() iterates the scatterlist\nputting each entry into 'sg', but the entry length is read from 'sgl'\n(the list head) instead of 'sg' (the current entry):\n\n    for_each_sg(sgl, sg, sg_len, i) {\n        addr = sg_dma_address(sg);\n        avail = sg_dma_len(sgl);   /* should be 'sg' */\n\nConsequently 'avail' is always the length of the first entry. For\nmulti-sg lists this causes out-of-bounds reads when a later entry is\nshorter than the first, and silent data loss when it is longer.\nSingle-sg or uniformly-sized lists happen to mask the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()\n\nIn mmp_pdma_prep_slave_sg(), for_each_sg() iterates the scatterlist\nputting each entry into 'sg', but the entry length is read from 'sgl'\n(the list head) instead of 'sg' (the current entry):\n\n    for_each_sg(sgl, sg, sg_len, i) {\n        addr = sg_dma_address(sg);\n        avail = sg_dma_len(sgl);   /* should be 'sg' */\n\nConsequently 'avail' is always the length of the first entry. For\nmulti-sg lists this causes out-of-bounds reads when a later entry is\nshorter than the first, and silent data loss when it is longer.\nSingle-sg or uniformly-sized lists happen to mask the issue.","source":"cvelist"}],"published":"2026-10-06T08:45:56.417Z","modified":"2026-10-19T10:18:31.620Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"f448a5f5bd10d792440a1b08cf2e8f311767032d","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"2148db529f082d6e3ca95413bf943442f4ef30cc","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"d920c07aa6d89ec11afdb6976aafaee9563a5234","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"4a33886057e6d127555efb022879c583e966acc5","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"88a505330eb06128f7ce79a4c5e4832b7601b3d1","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"bae65e4925928f77824ca0103122e2ed20ef5802","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"54ccc01012a240476edf641bf1a2b8bff54fe6ae","status":"affected"},{"type":"git","introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2","fixed":"075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.7","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98298","url":"https://www.cve.org/CVERecord?id=CVE-2026-98298","licence":"CVE Terms of Use","modified":"2026-10-19T09:17:09.166Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98298","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98298","licence":"Public domain","modified":"2026-10-19T10:18:31.620Z"}],"updatedAt":"2026-11-25T22:59:42.321Z","epss":{"score":0.00184,"percentile":0.08416,"date":"2026-12-01T12:00:22.000Z"}}