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 BE8A3142E9F for ; Tue, 21 May 2024 15:06:08 +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=1716303968; cv=none; b=MteXgJh/3zt/y7KMilzeqDeG8SWcOFkTprCETGCaX3l3Zhp5kkqdExifBORz68ejcfe/mXER6xhQhn1vYYBHuH1qgolzNXnpu7yMSYDfB6Q+SMU9RY3qcOVMrUownx8ltuRN61o3EPL/Ca6KhrOcibAfE3Fh0rM++fi2Tsm9IEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303968; c=relaxed/simple; bh=W2LYt3jBMpmyczoYjzRUTr2vZtBNMhg6N7PBBP31XKw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tb5MufgkiyrluT2ETBmWVdh7wq4yBWMa39/q41lABSNXK919k/akcXHOITfsbGTU8nRmTe63zrgHfc1CDwq8ztAuvM9jnTdqoTzISoHyKoNsZPzQFtyA4HUzuW81r4YO2m+EFQGO+twoXegYNfWvuZFbgvKviNMBLloqfL5x+PI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KbfKSc0/; 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="KbfKSc0/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 483A9C2BD11; Tue, 21 May 2024 15:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303968; bh=W2LYt3jBMpmyczoYjzRUTr2vZtBNMhg6N7PBBP31XKw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KbfKSc0/bC8t2kgrBUixYfNmwEq0vmKPa4S+W2CJKjvruNmJYmxq6EpdWLyM2QVfz +p5Qca92kJLb+TH+Hla/kzRFr983b9cQeBicEM/8grV2rYOUv+YRsBCAEd88c7ALHd Exol0BYw2+OhBYU1jZSlMEwrsD6ks8el3vuCAOes= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47401: ipack: ipoctal: fix stack information leak Date: Tue, 21 May 2024 17:04:18 +0200 Message-ID: <2024052149-CVE-2021-47401-10e4@gregkh> X-Mailer: git-send-email 2.45.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=3142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W2LYt3jBMpmyczoYjzRUTr2vZtBNMhg6N7PBBP31XKw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+2682rJjxe5FqJ1fU8g1vbvg3P6x/oNCzJVU4Ze1ed ZVdU917O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiDjoM89S3KEzeuX/hUiem Pb8MFt6b3jhp33GG+UV/Ty49eFvkpvBRJffmtZvvvv6R7QcA 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: ipack: ipoctal: fix stack information leak The tty driver name is used also after registering the driver and must specifically not be allocated on the stack to avoid leaking information to user space (or triggering an oops). Drivers should not try to encode topology information in the tty device name but this one snuck in through staging without anyone noticing and another driver has since copied this malpractice. Fixing the ABI is a separate issue, but this at least plugs the security hole. The Linux kernel CVE team has assigned CVE-2021-47401 to this issue. Affected and fixed versions =========================== Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 4.4.286 with commit acb96e782bad Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 4.9.285 with commit 741ea2670e02 Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 4.14.249 with commit 2725925982dc Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 4.19.209 with commit 829f13d6079c Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 5.4.151 with commit 8657158a3b68 Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 5.10.71 with commit 5f6a309a6996 Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 5.14.10 with commit 0a9c36a2e06a Issue introduced in 3.5 with commit ba4dc61fe8c5 and fixed in 5.15 with commit a89936cce87d 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-2021-47401 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/ipack/devices/ipoctal.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/acb96e782bad427ca4bb1bd94af660acd1462380 https://git.kernel.org/stable/c/741ea2670e021350e54f491106bdaa22dc50e6a0 https://git.kernel.org/stable/c/2725925982dc96a78069cd118ea3d66759bfdad7 https://git.kernel.org/stable/c/829f13d6079cf7a2465522f39acb43033e9b320d https://git.kernel.org/stable/c/8657158a3b68c85234e6da3d8eae33d6183588b7 https://git.kernel.org/stable/c/5f6a309a699675680df15d9b6d389114515b4426 https://git.kernel.org/stable/c/0a9c36a2e06a249acbed64e8e0b84637c2ad7575 https://git.kernel.org/stable/c/a89936cce87d60766a75732a9e7e25c51164f47c