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 A0F1A16DC16 for ; Fri, 12 Jul 2024 12:28:01 +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=1720787281; cv=none; b=oVRvD7K5OtG41s6iMmJTBp1vCTbM1/kwRKWGxUqxPsFvlyXBB0d68ejF3X7NDm3z8oAeTVTJZyla/9pYNNc78YzF5poPmrBX6eLyLHZz85Y0DRPyN40PgC9stAVwuIRTcVMkdGiF/6hNQZ3zsK0hI5DHkLNpH7aFnkQjXJz/mF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787281; c=relaxed/simple; bh=0pNjd5oX0heNH2lvprZKiW2MFuAAOLpLFgg0Vy0GlMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EGW/vzJ3gGfuaqj+SoG/Dd2cp3VaWTvTiprIiAxpfScm11cN4Qz3Me5iw2OJuSvcQSbrzZZfoynsWeraPBZ/OJl3CR3vS3sMeqL0W7eDJpnKozUgQAZAtv0TqFv08pKrOYbU583Es+Dg0jllZ9aRF8d53ujS98Li9VEoW2Vx+1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0MVHhrc6; 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="0MVHhrc6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29B6DC32782; Fri, 12 Jul 2024 12:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787281; bh=0pNjd5oX0heNH2lvprZKiW2MFuAAOLpLFgg0Vy0GlMs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0MVHhrc60nOk49iTqS2aUwD7KhVQsbdPoCqgkACNezDfTsIvvakpEwKO3dEXDOG2S 3vfmLjcaRu/P+sOhjdAKPXq4AcLYGfrDXoRWJPLh2qHywTsFs9l3RvEZHKHCxp/iOj /seppPoD9LxbzXtzxNTjxUvG+Nc0zTQUJwnwvzRc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40919: bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() Date: Fri, 12 Jul 2024 14:27:17 +0200 Message-ID: <2024071212-CVE-2024-40919-2997@gregkh> X-Mailer: git-send-email 2.45.2 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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0pNjd5oX0heNH2lvprZKiW2MFuAAOLpLFgg0Vy0GlMs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFRVqexv47blkRJhiPdS0xE9kRgT6bG/cf1VZ4wJTF YPg2YiOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmEjtEoYFK97l2RkLSn28/HEC 4z2DrWFL3PzzGeZZOFre5pB2sZZyPHfo48XnP7boeiwEAA== 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: bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() In case of token is released due to token->state == BNXT_HWRM_DEFERRED, released token (set to NULL) is used in log messages. This issue is expected to be prevented by HWRM_ERR_CODE_PF_UNAVAILABLE error code. But this error code is returned by recent firmware. So some firmware may not return it. This may lead to NULL pointer dereference. Adjust this issue by adding token pointer check. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-40919 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 8fa4219dba8e and fixed in 6.1.95 with commit cde177fa235c Issue introduced in 5.17 with commit 8fa4219dba8e and fixed in 6.6.35 with commit ca6660c95624 Issue introduced in 5.17 with commit 8fa4219dba8e and fixed in 6.9.6 with commit 8b65eaeae88d Issue introduced in 5.17 with commit 8fa4219dba8e and fixed in 6.10-rc4 with commit a9b9741854a9 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-40919 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/net/ethernet/broadcom/bnxt/bnxt_hwrm.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/cde177fa235cd36f981012504a6376315bac03c9 https://git.kernel.org/stable/c/ca6660c956242623b4cfe9be2a1abc67907c44bf https://git.kernel.org/stable/c/8b65eaeae88d4e9f999e806e196dd887b90bfed9 https://git.kernel.org/stable/c/a9b9741854a9fe9df948af49ca5514e0ed0429df