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 1136A1D9324 for ; Wed, 26 Feb 2025 01:59:09 +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=1740535149; cv=none; b=D+nG5unTLnAmboLc38aRMk7bDiwe+VfUG7OyUFfa11bkb26NFDEiw/4SYyN4xsM9Bu8Z05YMJdBxDkfBbbAQY52iRKKd9boC1WAo96tuQoHeZaUL0TQ3WNJWWabjQX+/3/MolR6mjPjeFSStia5oA32hrYWPobHuSPLblGyehZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535149; c=relaxed/simple; bh=kIw+KTDQYdSmfu1EgyE9dlkh0OgWlg915ZD7ddyQDNU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UCzF/U6QSna3R0OOjM/ZWkrnPYKNZf7n9J9EEl9nyqenVVSVUgjexgYtX0nrHRewLmLKvt9YmkzX3f7xHN6uWOVCY0SpRZ77ZfI8qSjvEokw5TR1AGkhEfNmbAJ3sM6+LFVkOXGNPyJMqXdhv3+npl8QjyMQFKBpePPsP6buJ1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G4ct+oMx; 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="G4ct+oMx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5FA2C4CEDD; Wed, 26 Feb 2025 01:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535148; bh=kIw+KTDQYdSmfu1EgyE9dlkh0OgWlg915ZD7ddyQDNU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G4ct+oMx5R8dTxU8VKRfCDKt+h+iAbCmNybNjDm4StahVAy8ZpXfpm1nTYYIYDXFS 2oZ9HQVe4pgibkoFtUrIm0h/tRXMvuaNx85B8r13NH0GM1I5b4/PKYNOydt05EFLwN BPGwhUEuXxaOjVGHphIhCP5lWEdrOtLPMwSmw2L8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49177: hwrng: cavium - fix NULL but dereferenced coccicheck error Date: Wed, 26 Feb 2025 02:56:22 +0100 Message-ID: <2025022613-CVE-2022-49177-f751@gregkh> X-Mailer: git-send-email 2.48.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=1741; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kIw+KTDQYdSmfu1EgyE9dlkh0OgWlg915ZD7ddyQDNU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SlwD3O9WLfiSY2Yox9pqqXbuoZtLYTC/7CW5E9vcX Q5P3C/QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5sJNhDseMCscYqR4/beO7 saubtNok1A4sYliwuyUl9+tDpne/2HwnnG+pu3rTzns6AA== 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: hwrng: cavium - fix NULL but dereferenced coccicheck error Fix following coccicheck warning: ./drivers/char/hw_random/cavium-rng-vf.c:182:17-20: ERROR: pdev is NULL but dereferenced. The Linux kernel CVE team has assigned CVE-2022-49177 to this issue. Affected and fixed versions =========================== Fixed in 5.17.2 with commit e47b12f9415169eceda6770fcf45802e0c8d2a66 Fixed in 5.18 with commit e6205ad58a7ac194abfb33897585b38687d797fa 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-2022-49177 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/char/hw_random/cavium-rng-vf.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/e47b12f9415169eceda6770fcf45802e0c8d2a66 https://git.kernel.org/stable/c/e6205ad58a7ac194abfb33897585b38687d797fa