{"id":"CVE-2026-98242","revision":"5245b89fe251485fa570d22504e98f18","records":[{"revision":"5245b89fe251485fa570d22504e98f18","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98242","aliases":[],"title":"dma-buf: Fix silent overflow for phys vec to sgt","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: Fix silent overflow for phys vec to sgt\n\nIn case MMIO size is bigger than 4G and peer2peer DMA goes\nthrough host bridge, we trigger a code path that assigns the\ntotal linked IOVA (which is greater than 4G) to mapped_len.\n\nPreviously, `mapped_len` was declared as 32-bit `unsigned int`.\nWhen accumulating `size_t` lengths, this leads to a silent wrap-around.\nThis truncation causes truncated lengths to be passed to functions\nlike `fill_sg_entry()`.\n\nFix this by changing `mapped_len` to `size_t` (64-bit). While\nat it, fix similar potential overflow issues in `calc_sg_nents`\nby using `check_add_overflow()` for `nents` and using\n`unsigned int` for the loop iterator in `fill_sg_entry` to match.","state":0,"publishedAt":"2026-10-06T08:45:12.662+00:00","modifiedAt":"2026-10-19T09:16:13.758+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/dma-buf/dma-buf-mapping.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c\",\n                            \"lessThan\": \"6b98fd7106d4e486f432664893dcd4d6fa3a9693\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c\",\n                            \"lessThan\": \"b344ca94e8cc85796f16ea25e2e5a8e0303fe813\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/dma-buf/dma-buf-mapping.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.19\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.19\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.8\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/6b98fd7106d4e486f432664893dcd4d6fa3a9693","https://git.kernel.org/stable/c/b344ca94e8cc85796f16ea25e2e5a8e0303fe813"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98242","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98242","identifiers":["CVE-2026-98242"]},"retained":false,"historicalAffected":[]}],"coverage":[]}