Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3CF5526C386 for ; Fri, 9 May 2025 06:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773168; cv=none; b=unMy5ZEdvb/jkxErHBSuRXhlNUx8U1IsT5KxbouH3NNYSY0bQw7EtFxIAfymhU3gah5Z6EmizNCqIVZRjaJuZERIpHO2QdTCCqp3DGDzGOa5pK2/r+CVjx4sQP9fATSzB0nD5eh5PdojbyWI934ueJ7gJOFrTOLqRRmKV1GY04U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773168; c=relaxed/simple; bh=IRYPmjYHpy3pirVWTGWw519JJzgRBkb3p4/ubNjiQ1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BM6qkVSNOoAV+FKwKRlk569L7XSUkyeq0t+cVTzNxCtyHuxbZnsCQDHN19lvmsG/2ZY9zu0OUOOAjorQvSkQtqQjv7Gq7N8TWtaXVa8W87AanmRZaPQqpwLj183DNj41Btfx0VAM9MbauyNJRTKhZEG11YW6dTUwFwGJBRzrkvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QfpGWwSv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QfpGWwSv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CA69C4CEE4; Fri, 9 May 2025 06:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773168; bh=IRYPmjYHpy3pirVWTGWw519JJzgRBkb3p4/ubNjiQ1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QfpGWwSvLm0dtmYxUGHBpbgIbLakcX/jquaY1FLn0cFWySiXzwNS/Lo8cyCm888ua I6c9PIp7cCWHtMJV0XtmJw4ppxKL39GdrYWx9CStusInA5xODjM9p1bDDn0MMi7kht JbMxyXadYRA5JmjVlPdnWFm12boOWZAXm1CykjR4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37879: 9p/net: fix improper handling of bogus negative read/write replies Date: Fri, 9 May 2025 08:45:46 +0200 Message-ID: <2025050943-CVE-2025-37879-a59f@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2466; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wzE+yNsAFpKi1KK0FmRBqahWBoZkEiQhpsMIUumXdos=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS6ZPXvTnYtlU79f7FleGVi8MW3M1K+yM/89jzDIeN /c4dQpUdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXtQzLGhZPvf2367iLQ++ XVtfm8RYpJOQOZ9hwSXOqSsvZ939sNruOztLQdeD80s7NAA= 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: 9p/net: fix improper handling of bogus negative read/write replies In p9_client_write() and p9_client_read_once(), if the server incorrectly replies with success but a negative write/read count then we would consider written (negative) <= rsize (positive) because both variables were signed. Make variables unsigned to avoid this problem. The reproducer linked below now fails with the following error instead of a null pointer deref: 9pnet: bogus RWRITE count (4294967295 > 3) The Linux kernel CVE team has assigned CVE-2025-37879 to this issue. Affected and fixed versions =========================== Fixed in 6.1.136 with commit 468ff4a7c61fb811c596a7c44b6a5455e40fd12b Fixed in 6.6.89 with commit a68768e280b7d0c967ea509e791bb9b90adc94a5 Fixed in 6.12.26 with commit c548f95688e2b5ae0e2ae43d53cf717156c7d034 Fixed in 6.14.5 with commit 374e4cd75617c8c2552f562f39dd989583f5c330 Fixed in 6.15-rc1 with commit d0259a856afca31d699b706ed5e2adf11086c73b 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-2025-37879 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: net/9p/client.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/468ff4a7c61fb811c596a7c44b6a5455e40fd12b https://git.kernel.org/stable/c/a68768e280b7d0c967ea509e791bb9b90adc94a5 https://git.kernel.org/stable/c/c548f95688e2b5ae0e2ae43d53cf717156c7d034 https://git.kernel.org/stable/c/374e4cd75617c8c2552f562f39dd989583f5c330 https://git.kernel.org/stable/c/d0259a856afca31d699b706ed5e2adf11086c73b