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 36D1B4594D for ; Sat, 28 Dec 2024 09:46:51 +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=1735379212; cv=none; b=U65aV8tSqXrZDih2/ISlHwpgdDhw+ZOwtGHYepMfjiXBI1dgCigslMJDTmsOV4EUdy2JFYLi7WNw6am9S09AdTJBcF43yb2xEWzA5ZZMBjIpRoO/GYr0t8S8VpssesLd/Jvn+uMJz3ocBtuQH8OfO8NSRI1g6evmWnMCY376CL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379212; c=relaxed/simple; bh=/vXKy2Pqp/0c2Jly0ArKEIPEOXwYZeuXK3g16eGWgTE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gWaYGBAYoUf0jCif4B61ls9eOcTUzjyjgFcXGnzRS/ikSsjYinfUUZkGLfHAtmL4B9g9rpvhTGz7WdzmoRbJ4bBEvAOZoRUE2hapkPaOMu+k0w+r+fKxbvDyRnHwyBFT0V7NPAPY8+jNPygxIlI71zUo7UtHG6eArHwvyMurbeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=go/WA+b/; 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="go/WA+b/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67695C4CECD; Sat, 28 Dec 2024 09:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379211; bh=/vXKy2Pqp/0c2Jly0ArKEIPEOXwYZeuXK3g16eGWgTE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=go/WA+b/fpnXhvxN8Y+dOdIK5+6DjSe6Feq4e5y0pQGJS0TUtFcpEczg90mq1pONd Wo7GaQalD8o6kq5qyJlQuQjuw7i/XsHQ3r8wNo5atsD7iIYJkOe8vV487tB6DCw2Kn q03TJzCsBO6vre1SMTiNAVaLAWmSNb4v7042ABp4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56688: sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport Date: Sat, 28 Dec 2024 10:45:40 +0100 Message-ID: <2024122834-CVE-2024-56688-4e02@gregkh> X-Mailer: git-send-email 2.47.1 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=3405; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/vXKy2Pqp/0c2Jly0ArKEIPEOXwYZeuXK3g16eGWgTE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5J/b9VbN6M1PFYHl+qv7P58cmMLssyvtv5HjR/Nfr2 kTGCUGNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRXFuGOZyfG/t6/6vdd1g0 WyLnZq5N/e/EQwwLWrxqTP8v71/MHMouH3pI0MEyZakeAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport Since transport->sock has been set to NULL during reset transport, XPRT_SOCK_UPD_TIMEOUT also needs to be cleared. Otherwise, the xs_tcp_set_socket_timeouts() may be triggered in xs_tcp_send_request() to dereference the transport->sock that has been set to NULL. The Linux kernel CVE team has assigned CVE-2024-56688 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 5.4.287 with commit cc91d59d34ff6a6fee1c0b48612081a451e05e9a Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 5.10.231 with commit 86a1f9fa24804cd7f9d7dd3f24af84fc7f8ec02e Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 5.15.174 with commit fe6cbf0b2ac3cf4e21824a44eaa336564ed5e960 Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 6.1.120 with commit 87a95ee34a48dfad198a2002e4966e1d63d53f2b Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 6.6.64 with commit 3811172e8c98ceebd12fe526ca6cb37a1263c964 Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 6.11.11 with commit 638a8fa5a7e641f9401346c57e236f02379a0c40 Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 6.12.2 with commit 66d11ca91bf5100ae2e6b5efad97e58d8448843a Issue introduced in 4.11 with commit 7196dbb02ea05835b9ee56910ee82cb55422c7f1 and fixed in 6.13-rc1 with commit 4db9ad82a6c823094da27de4825af693a3475d51 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-2024-56688 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/sunrpc/xprtsock.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/cc91d59d34ff6a6fee1c0b48612081a451e05e9a https://git.kernel.org/stable/c/86a1f9fa24804cd7f9d7dd3f24af84fc7f8ec02e https://git.kernel.org/stable/c/fe6cbf0b2ac3cf4e21824a44eaa336564ed5e960 https://git.kernel.org/stable/c/87a95ee34a48dfad198a2002e4966e1d63d53f2b https://git.kernel.org/stable/c/3811172e8c98ceebd12fe526ca6cb37a1263c964 https://git.kernel.org/stable/c/638a8fa5a7e641f9401346c57e236f02379a0c40 https://git.kernel.org/stable/c/66d11ca91bf5100ae2e6b5efad97e58d8448843a https://git.kernel.org/stable/c/4db9ad82a6c823094da27de4825af693a3475d51