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 A17D228313F for ; Wed, 18 Jun 2025 11:06:12 +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=1750244772; cv=none; b=N6OOMz9YN5L1bjcWk+EIHlJJUJmE9nd968a9x11nGJlyb2jaEvp75/o9IS4v03EynrahZ5mpJhXstwVsOxUHJhsOhkUrjuDL3ZMR+pXqP4tsuR/AKlgGEs3MO4fSWxUDX0I8U+Ms94GQZYPWweyB0gqnqNuyLrncxEcvcXa/j88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244772; c=relaxed/simple; bh=TpNTdf7LIVOAfdZ3NKp3+MirjIxgHuljVEq+MtR8Hk8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U6N755HSlHNPsYooz64fgn5H1toDaOfDRtmuF9L1G6MIH/Vk0T6avRDxl3lipo2CkO2XoZJjMh8QyeUpnHDRM2sGAWLYLvNY/rlze7Pc+EGeGgvVrjT+B0Sg52Q/7ywM5j0cBp21elfxWVUgnYMQKayvbJwhHPwoRPzS2iLgQp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0Fz8vVi0; 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="0Fz8vVi0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DDA9C4CEE7; Wed, 18 Jun 2025 11:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244772; bh=TpNTdf7LIVOAfdZ3NKp3+MirjIxgHuljVEq+MtR8Hk8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0Fz8vVi0GqeIcCZu/gq/aCuqTA1HaPjvyrsZuWoL9DiH2QmOPfuj15XBoRUvqR/rY o89Wc8V0HrZdmljVHYKWwKP3t2Y6eLgOKN56gXtzYXlEBUfcmeGvqyOLHjOh/67O6y xo9Zz0zsXYqYIg8S3RsyCWVY4WZVy2hmuoW2HIK4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50030: scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input Date: Wed, 18 Jun 2025 13:01:35 +0200 Message-ID: <2025061838-CVE-2022-50030-83c6@gregkh> X-Mailer: git-send-email 2.49.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=2238; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T0P6SzocJWBGCj4N9QZUW8Oo8tK+iE/d9SSjoToZWuA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8Jummy/ez7EYZ/eFC8hs6ii2zeCVii0Gbltn9rhK v7rokB/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkQA7DgtPfpP8nma2/bt7y naFBh3vuORWtYoYFLf8cl778yH7q5GLPpK5mx0i1p+EdAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input Malformed user input to debugfs results in buffer overflow crashes. Adapt input string lengths to fit within internal buffers, leaving space for NULL terminators. The Linux kernel CVE team has assigned CVE-2022-50030 to this issue. Affected and fixed versions =========================== Fixed in 5.4.211 with commit 927907f1cbb3408cadde637fccfc17bb6b10a87d Fixed in 5.10.138 with commit c29a4baaad38a332c0ae480cf6d6c5bf75ac1828 Fixed in 5.15.63 with commit b92506dc51f81741eb26609175ac206c20f06e0a Fixed in 5.19.4 with commit 2d544e9d19c109dfe34b3dc1253a8b2971abe060 Fixed in 6.0 with commit f8191d40aa612981ce897e66cda6a88db8df17bb 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-50030 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/scsi/lpfc/lpfc_debugfs.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/927907f1cbb3408cadde637fccfc17bb6b10a87d https://git.kernel.org/stable/c/c29a4baaad38a332c0ae480cf6d6c5bf75ac1828 https://git.kernel.org/stable/c/b92506dc51f81741eb26609175ac206c20f06e0a https://git.kernel.org/stable/c/2d544e9d19c109dfe34b3dc1253a8b2971abe060 https://git.kernel.org/stable/c/f8191d40aa612981ce897e66cda6a88db8df17bb