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 D21D4490BE3 for ; Fri, 25 Sep 2026 10:27:30 +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=1790332052; cv=none; b=EFgiJX075bIhk9t37E0+Y2SnU0mvV/HuyFQyfY2NrvS559k99j4Z1Nc1XdDLIMyap2wl0S2NxpawAtPBN950oBrwsRfEBFK6/gCvUf38VPup/XY0Z12monKmnO8JVvL1WzMloIRm3D5BLOfY+2nKGd/LcXtflzcWSGk/K8tbSzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332052; c=relaxed/simple; bh=Llj7X2Zt9Fx/tuEwY3+2JDCjTO2XlsJAf3SflN2FIiU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m/93RdC5rfa3CTovk07Bu09JWsDHmo+GFmTKlD9KU8k3xlzXcdaQd6oEjkEopDqqMEWL5h8ZH7UOx+ztnfziQ3ozVfwR1rpv5oqXk1ey0zRSnoY8W326z5v/4X2lFMcaG4KiPBGlHE2AkK5a3DyMZYmIOSzbhSej0/gJgkOPnTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rwxpfAr0; 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="rwxpfAr0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 319F21F000FF; Fri, 25 Sep 2026 10:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332050; bh=pCtfo9xinJe4cdsofGqbgwRRD+wcVmRoTi+wj3q3HRU=; h=From:To:Cc:Subject:Date:Reply-To; b=rwxpfAr04lxpmhpOpS3d3bGUimUrcBpH68EAhBG0+pBYbiFa4CIQUPFKx40jb2JkL 1YPIZFkZCUPqpOIVa7MU2gqQkqIOytIFKYcntlQ8a5mON04K8/5qh/M71O6m+Oq10T 2oy4ScLRuracRJpUsQFsDXhtM/gzzt+Ko6lpMYaY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97618: io_uring/net: don't overconsume buffers when using MSG_TRUNC Date: Fri, 25 Sep 2026 12:23:18 +0200 Message-ID: <2026092503-CVE-2026-97618-5b8e@gregkh> X-Mailer: git-send-email 2.55.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=2662; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VbOXYBzkAjWHlOayAxTFTekarn+gN9mpUAo6BlTa3wE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvL3zF/qUZef7ep9McNnyoebA/s1rbaNj7v4q8Drxo j5k0cevHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZBuG+SHzzHibL/NG55z7 dHB/RUeI78QLnQzz7CfJSUQ/UdQtXJxSt+JAgN03VtMYAA== 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: io_uring/net: don't overconsume buffers when using MSG_TRUNC When a recv/recvmsg is issued with MSG_TRUNC and the incoming packet is larger than the provided buffer, the net layer returns the full length of the packet rather than the number of bytes actually copied into the buffer. As a result, io_uring advances more of the provided buffer ring than was actually filled. Use the actual filled region size to consume the buffer, but still return the full size to preserve MSG_TRUNC semantics. Take care with multishot, because that seems to already truncate the consumption based on the available payload size. This was reported in https://github.com/axboe/liburing/issues/1619. [axboe: fold in size_t unsigned fix] The Linux kernel CVE team has assigned CVE-2026-97618 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 6.18.53 with commit 927d96f91c582b319d104ecf50ec935a8dc29193 Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 7.2.7 with commit 2e70ea75c7bb38a6dc212975f887310f14f7c043 Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 7.3-rc3 with commit 6028b543884f8735e057ec9eea4908cd61cab230 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-97618 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: io_uring/net.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/927d96f91c582b319d104ecf50ec935a8dc29193 https://git.kernel.org/stable/c/2e70ea75c7bb38a6dc212975f887310f14f7c043 https://git.kernel.org/stable/c/6028b543884f8735e057ec9eea4908cd61cab230