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 CAD3A14264C for ; Tue, 21 May 2024 14:39:26 +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=1716302366; cv=none; b=CoaVHLMEmfultsl12Mf5UIUtN6CWgqbxwoqehmyQerRyCwxt1z4TL/bTiBWviFHDzsN8wpoXRZ+oU1iFoZlVYgtMs+NBlX5M6YwnEZXZlRn5dIl+4hD4kv4X2gIbZk7l7YtxMTItgL/iWoHX5SYSCLMHSGpZP2OJpHY9bNHBWcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302366; c=relaxed/simple; bh=IBW9jIj6tdc9bTVnuqBsgM/yz7/fk7dYv1dknFDa490=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QxhmH9cyk9+uZZDM43UN6G8cpqqsPHLpOFkQyxutaVhfk5f+7507xqiUyKFXKS5U1H9TSIIWbD4aRr/gW21c/7TmKbmP3D434Djf38Not1+Q8FxiH/AcRrrtu7BRThNFK0R/AttQQt2Sj+wvLlbeMmhydpjiIC4sdIbOZW/CNdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YkScxCuN; 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="YkScxCuN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C359C2BD11; Tue, 21 May 2024 14:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302366; bh=IBW9jIj6tdc9bTVnuqBsgM/yz7/fk7dYv1dknFDa490=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YkScxCuNqYzqCNVEc/zdq36AxPcW844kDDRc6TMKLaYqvECsI4/OlvL5Fb91tU5WE IC5v4+Y4BtIdtsfX4VGwKhqSN5txnpMuIFOJUPyeV+6WjohbgQYuKR5Oct8zKk3N8b SCPcKEw2ITPF+S44g/kJC1nB7ZZADXv8tG+l41To= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47330: tty: serial: 8250: serial_cs: Fix a memory leak in error handling path Date: Tue, 21 May 2024 16:36:04 +0200 Message-ID: <2024052134-CVE-2021-47330-f142@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=2537; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IBW9jIj6tdc9bTVnuqBsgM/yz7/fk7dYv1dknFDa490=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G80kv719ptP0bYNj5W7GhMd6b2vvJLXeOsKkqhjIu 3LvlWv3O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZzIZ5mkFn6/dLpa07tWJ 1XdKXlnyB+VNZmCYXxjF9Dmj/qPUWcnEfuayh50lPoGLAA== 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: tty: serial: 8250: serial_cs: Fix a memory leak in error handling path In the probe function, if the final 'serial_config()' fails, 'info' is leaking. Add a resource handling path to free this memory. The Linux kernel CVE team has assigned CVE-2021-47330 to this issue. Affected and fixed versions =========================== Fixed in 4.4.276 with commit b5a2799cd62e Fixed in 4.9.276 with commit 331f5923fce4 Fixed in 4.14.240 with commit 34f4590f5ec9 Fixed in 4.19.198 with commit cddee5c287e2 Fixed in 5.4.134 with commit ee16bed95986 Fixed in 5.10.52 with commit 7a80f71601af Fixed in 5.12.19 with commit c39cf4df19ac Fixed in 5.13.4 with commit b2ef1f5de403 Fixed in 5.14 with commit fad92b11047a 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-47330 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/tty/serial/8250/serial_cs.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/b5a2799cd62ed30c81b22c23028d9ee374e2138c https://git.kernel.org/stable/c/331f5923fce4f45b8170ccf06c529e8eb28f37bc https://git.kernel.org/stable/c/34f4590f5ec9859ea9136249f528173d150bd584 https://git.kernel.org/stable/c/cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461 https://git.kernel.org/stable/c/ee16bed959862a6de2913f71a04cb563d7237b67 https://git.kernel.org/stable/c/7a80f71601af015856a0aeb1e3c294037ac3dd32 https://git.kernel.org/stable/c/c39cf4df19acf0133fa284a8cd83fad42cd13cc2 https://git.kernel.org/stable/c/b2ef1f5de40342de44fc5355321595f91774dab5 https://git.kernel.org/stable/c/fad92b11047a748c996ebd6cfb164a63814eeb2e