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 E944216EC1B for ; Fri, 12 Jul 2024 12:33:57 +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=1720787638; cv=none; b=X4Cv/PvWM8rS5bD00TuxmSobOcrebut2p8ZyrviaI3ml2kKrYHw99AhKKVETJAo99y8nZtmvSefkHNcPxaIDuKIwGtRyWMMBWBC1wYsG7DOk5jWqWsJrNwViQWUQXka2JyDVPwDHQRoLUuM9LTkzwLEyC8gWpXzo0KY0FtBr4ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787638; c=relaxed/simple; bh=ajojGLFwsiaQLrnTW5a093L6eUiPeL4AFNnThUsedW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IrytGFrB55HntHMrwm7RH2WdVEuZ/sN5v7FlYqEElQP1H4rCRPV806s/2zAvpkMndaE355Gat5bylIADcG2zb7VVAqf73heN8HXH5RCIuSQN/gIGH1zuxW5d9NcRXwwQM4KJ7BKVow1BtCJ4EYHLQoywny3AwdR2KGpG8Cm7Afw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i2lH2EL7; 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="i2lH2EL7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73144C32786; Fri, 12 Jul 2024 12:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787637; bh=ajojGLFwsiaQLrnTW5a093L6eUiPeL4AFNnThUsedW4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=i2lH2EL7gM6RiLnVB5df7CYzFbaVKSBUMHa3xh0Ig//654tAHsuDk18pVrYOL1wen wea7BRvP5ozvmgqPAN7vZ1k+GPf5cldS3VijoKMI/5K0F/1Y6sFsxzPgkkdrs32eHf hGSDZX7gZ53/ypR+DwCpQqnB7j46JD7fsU0aOoUY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40982: ssb: Fix potential NULL pointer dereference in ssb_device_uevent() Date: Fri, 12 Jul 2024 14:32:58 +0200 Message-ID: <2024071232-CVE-2024-40982-149b@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=2134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ajojGLFwsiaQLrnTW5a093L6eUiPeL4AFNnThUsedW4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlRLev/Q6Jj/RMNo9oGVF58N9r0+tcT8i7NIYqK19+ nr1N6NrHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRLTMY5uf8S7vppd7Y6di+ cfmm+4KSMrwJGgwLru2emxBR0+nEcavuYe8uyR+5vJwrAQ== 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: ssb: Fix potential NULL pointer dereference in ssb_device_uevent() The ssb_device_uevent() function first attempts to convert the 'dev' pointer to 'struct ssb_device *'. However, it mistakenly dereferences 'dev' before performing the NULL check, potentially leading to a NULL pointer dereference if 'dev' is NULL. To fix this issue, move the NULL check before dereferencing the 'dev' pointer, ensuring that the pointer is valid before attempting to use it. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-40982 to this issue. Affected and fixed versions =========================== Fixed in 6.6.36 with commit c5dc2d8eb398 Fixed in 6.9.7 with commit 7d43c8377c6f Fixed in 6.10-rc1 with commit 789c17185fb0 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-40982 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/ssb/main.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/c5dc2d8eb3981bae261ea7d1060a80868e886813 https://git.kernel.org/stable/c/7d43c8377c6fc846b1812f8df360425c9323dc56 https://git.kernel.org/stable/c/789c17185fb0f39560496c2beab9b57ce1d0cbe7