Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B04B3B8D40 for ; Tue, 6 Oct 2026 10:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282231; cv=none; b=nSk3fQC0opCqWOo0R7BtTe96F0AsV+H6K7/u1EB74fofiu+F7js5ha2/GxfVUmQ6RcBvYNShz+LxvUdoVL4dGAZzEM8J2iFnuV7rZ+Yc8/fzBSLDBE+nsZuNKPQ3rkJJ0iovOxmTUCWbWEsQZg1ZYrYTjg2Ct0qb9KrZSs8vhjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282231; c=relaxed/simple; bh=QsJJfcTQlVzODf5UTDH0TdiJj5akK7V+k5oprnXJ/EE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JIOJW0/HH8cRZX40HyuBx81adqgKUHNmP0uOZtPV+zG8xzdwW9FPWHzndx+g7ozCWrk3taJYh1i5xymPHp1/OAX0UMAxSnWAWi9/CaN86UztdjNETW6gQMYM1PkXVshyR2ctRpt8cGs5LDFGdRgutIIuxTrNCJ971gyvc1kms5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0Fer8/pM; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0Fer8/pM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBA5A1F000FF; Tue, 6 Oct 2026 10:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282230; bh=iHdfjXHdbgaCQtZXFxx6Fk8Np6OgBX8JHMBlvg4TTeI=; h=From:To:Cc:Subject:Date:Reply-To; b=0Fer8/pMl+//vdgeeAkIrGJqvCPMDRzaOPLuNkELk5d3LHb3BGWBC54083q60e5xQ ANXzCKE+X+0BxZcE7vdrDrZHnXm2wUxy5J5rAgNePsPAdmSq0yC6pQq1mGnIJizNSn AqxoZc1/P0QAGprq8l9RB0LCa0P/0bY6UPHsRKoM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98242: dma-buf: Fix silent overflow for phys vec to sgt Date: Tue, 6 Oct 2026 10:45:43 +0200 Message-ID: <2026100650-CVE-2026-98242-faa3@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2433; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zz+SSGDze0yIT8XMrYd7M+AO3FVLNwOUNpmxjYDurI4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtjJLMn6WfshmcuRfZj1zqJDEjBUZUi+na5d+PtVps uioNOP1jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI4k6GeRq1nmf29myZzWmS WHnzyc22aXHaEQwLuifuqXsqvfR2+fs4QzUn171tOof9AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: dma-buf: Fix silent overflow for phys vec to sgt In case MMIO size is bigger than 4G and peer2peer DMA goes through host bridge, we trigger a code path that assigns the total linked IOVA (which is greater than 4G) to mapped_len. Previously, `mapped_len` was declared as 32-bit `unsigned int`. When accumulating `size_t` lengths, this leads to a silent wrap-around. This truncation causes truncated lengths to be passed to functions like `fill_sg_entry()`. Fix this by changing `mapped_len` to `size_t` (64-bit). While at it, fix similar potential overflow issues in `calc_sg_nents` by using `check_add_overflow()` for `nents` and using `unsigned int` for the loop iterator in `fill_sg_entry` to match. The Linux kernel CVE team has assigned CVE-2026-98242 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c and fixed in 7.2.8 with commit 6b98fd7106d4e486f432664893dcd4d6fa3a9693 Issue introduced in 6.19 with commit 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c and fixed in 7.3-rc4 with commit b344ca94e8cc85796f16ea25e2e5a8e0303fe813 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98242 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/dma-buf/dma-buf-mapping.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6b98fd7106d4e486f432664893dcd4d6fa3a9693 https://git.kernel.org/stable/c/b344ca94e8cc85796f16ea25e2e5a8e0303fe813