{"id":"CVE-2026-98298","summary":"dmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()","details":"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.","modified":"2026-10-08T02:52:56.593891275Z","published":"2026-10-06T08:45:56.417Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98298.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98298.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98298"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c8acd6aa6bed3c0fd7898202f4ebc534db9085f2"},{"fixed":"f448a5f5bd10d792440a1b08cf2e8f311767032d"},{"fixed":"2148db529f082d6e3ca95413bf943442f4ef30cc"},{"fixed":"d920c07aa6d89ec11afdb6976aafaee9563a5234"},{"fixed":"4a33886057e6d127555efb022879c583e966acc5"},{"fixed":"88a505330eb06128f7ce79a4c5e4832b7601b3d1"},{"fixed":"bae65e4925928f77824ca0103122e2ed20ef5802"},{"fixed":"54ccc01012a240476edf641bf1a2b8bff54fe6ae"},{"fixed":"075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98298.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.7.0"},{"fixed":"5.10.271"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98298.json"}}],"schema_version":"1.9.0"}