{"schema":"threatline.record/2","record":{"id":"CVE-2026-98242","aliases":[],"summary":"dma-buf: Fix silent overflow for phys vec to sgt","details":"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.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98242","source_modified_at":"2026-10-19T09:16:13.758Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c","lessThan":"6b98fd7106d4e486f432664893dcd4d6fa3a9693","status":"affected","versionType":"git"},{"version":"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c","lessThan":"b344ca94e8cc85796f16ea25e2e5a8e0303fe813","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98242","source_modified_at":"2026-10-19T09:16:13.758Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.19","status":"affected"},{"version":"0","lessThan":"6.19","status":"unaffected","versionType":"semver"},{"version":"7.2.8","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98242","source_modified_at":"2026-10-19T09:16:13.758Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6b98fd7106d4e486f432664893dcd4d6fa3a9693","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00155,"percentile":0.04317,"score_date":"2026-10-23"},"published_at":"2026-10-06T08:45:12.662Z","modified_at":"2026-10-19T09:16:13.758Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98242","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T09:16:13.758Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98242","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/6b98fd7106d4e486f432664893dcd4d6fa3a9693"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/b344ca94e8cc85796f16ea25e2e5a8e0303fe813"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T09:16:13.758Z","content_hash":"5eb2e5f1430fd094b5d2ec8cb542255de8ae0146968ccb3b1c6feeb7d26f0bcc"}}
