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 7B5C11E7647 for ; Wed, 4 Sep 2024 19:57:53 +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=1725479873; cv=none; b=RQqgzz5CWIv8tI44QJAglQqNlN5h2+VSMrBVm8izZlAB+aFXOtNs7g39izUbNzEuhisORhcPASoSiM12hLsbK4CHOsscnp7+HI8COCgGchO3FiJrFCnB78VxwyEq5WHD0622fztJt02ZIHFGswbhHs/uqpZlx7aLQ0i2EBR73oI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479873; c=relaxed/simple; bh=c8tAiMxghfniuEzNXYebiUnJU4kn8G2UweJt+qfSWu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gjcseYjekGp+g7uZxOGhJ3KXIMN4NLqOgdQ3vEmMgAcZ0seRVWR2Nu7egXiRPGnl1qRVXes4hKJt1t5V0cWk9rzjwvkBHhmPPlBSH0Q0vRh4RDHTsqP/aWZXfxs20yR2GOW2yY4rZsSCN/4Gc6LEFCohhF8opwqxm4SJFaE0ndI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0N2EfIOK; 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="0N2EfIOK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98E59C4CEC2; Wed, 4 Sep 2024 19:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479873; bh=c8tAiMxghfniuEzNXYebiUnJU4kn8G2UweJt+qfSWu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0N2EfIOKScNs5uApAGFDAtvpIK3E5aFbpv5dxOIUGiqHAjCpXGHZ+n/AgtWWBHOkm RII1Za6Rc4TvFVQoOOKWGlTXEvmjHinulWc5VeBXW5qfpOOHlr2kmoBZc5nS61Kpay yY7VyeF01lt6f5DsuqLNSZodTLOlM9MZBHtkv0QQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44992: smb/client: avoid possible NULL dereference in cifs_free_subrequest() Date: Wed, 4 Sep 2024 21:56:57 +0200 Message-ID: <2024090447-CVE-2024-44992-9050@gregkh> X-Mailer: git-send-email 2.46.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=2237; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c8tAiMxghfniuEzNXYebiUnJU4kn8G2UweJt+qfSWu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dtdfSX8m4cwonhP2UG+Zk/znc/8EmVvP3yir1n1zT /PelezejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiITSTDghaW/tDythMfdO/M zZ2z8bVKbZxHKMM8S57NRy5PrG++vG1TSciF4olTZ5VfBwA= 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: smb/client: avoid possible NULL dereference in cifs_free_subrequest() Clang static checker (scan-build) warning: cifsglob.h:line 890, column 3 Access to field 'ops' results in a dereference of a null pointer. Commit 519be989717c ("cifs: Add a tracepoint to track credits involved in R/W requests") adds a check for 'rdata->server', and let clang throw this warning about NULL dereference. When 'rdata->credits.value != 0 && rdata->server == NULL' happens, add_credits_and_wake_if() will call rdata->server->ops->add_credits(). This will cause NULL dereference problem. Add a check for 'rdata->server' to avoid NULL dereference. The Linux kernel CVE team has assigned CVE-2024-44992 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 69c3c023af25 and fixed in 6.10.7 with commit fead60a6d5f8 Issue introduced in 6.10 with commit 69c3c023af25 and fixed in 6.11-rc4 with commit 74c2ab6d653b 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-44992 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: fs/smb/client/file.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/fead60a6d5f84b472b928502a42c419253afe6c1 https://git.kernel.org/stable/c/74c2ab6d653b4c2354df65a7f7f2df1925a40a51