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 E9ED513D29F for ; Tue, 21 May 2024 14:40:37 +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=1716302438; cv=none; b=ZfeBmQhBKWi30D4Pz5p1v3ObY7+g8bl9RqNTvKpHVqqAqiociPB7qCqpAHn0vIBHj6szNOIyktLwAFeB22I5t5gtOiS+iS/V5aux7QrcbBjm3ViM0WzasAWyEHW/uHOr776+gIIetqiJIhfWh800fFEsYFLDKMErnEmw0eRpR+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302438; c=relaxed/simple; bh=t/y26+ND4TYkgqqp+7y12DDsyb0zZt+keBU5l2alg40=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QlaIb6qCaoR4ulobfAsDuR9U1BeExkKKdqDIAR4G0oIj4R9jWiEZtV1shTAWriAdnHzkhKtZwGPkOa8STu531J3zezXnEXBjq/1aV9x2xiSrYYmYDbv2ASp9Y+iinkZVq998imi9ahDaPVjnI9OBTnV96+owU96wkr8LddpaGCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HEkY5ss+; 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="HEkY5ss+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C14CC2BD11; Tue, 21 May 2024 14:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302437; bh=t/y26+ND4TYkgqqp+7y12DDsyb0zZt+keBU5l2alg40=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HEkY5ss+1OebY7gRqv75Q7VyYoc7k+8nggP92NZzB8x9s1ccPlmUOlqXS66KDKf86 ODHaqE8Vy3RLFIhxOe1ybRy+dL6rrMjLR4DnZFlN3Y1sjF2WEeCkgNUMgi7U9WgB8q MEGoKpoCpLfkkv3125By5vuvEFqqFYSSfWBEWz74= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47356: mISDN: fix possible use-after-free in HFC_cleanup() Date: Tue, 21 May 2024 16:36:30 +0200 Message-ID: <2024052142-CVE-2021-47356-a3d4@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=2768; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t/y26+ND4TYkgqqp+7y12DDsyb0zZt+keBU5l2alg40=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G+1kWc9dkUpku2uWPK07eukcLpPAmd6H7hyX2TSB/ fEGrnNFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARNgeGBW1/Zr/Q3nNKTr94 d+Icp/kbZ9148JdhQZ/mqUsu4m8yrQP6Fn9u2xM2PYPJHQA= 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: mISDN: fix possible use-after-free in HFC_cleanup() This module's remove path calls del_timer(). However, that function does not wait until the timer handler finishes. This means that the timer handler may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix by calling del_timer_sync(), which makes sure the timer handler has finished, and unable to re-schedule itself. The Linux kernel CVE team has assigned CVE-2021-47356 to this issue. Affected and fixed versions =========================== Fixed in 4.4.276 with commit 49331c07ef0f Fixed in 4.9.276 with commit 54ff32029289 Fixed in 4.14.240 with commit 7867ddc5f3de Fixed in 4.19.198 with commit 5f2818185da0 Fixed in 5.4.133 with commit 3ecd228c636e Fixed in 5.10.51 with commit b7ee9ae1e0cf Fixed in 5.12.18 with commit 61370ff07e0a Fixed in 5.13.3 with commit ed7c3739d0a0 Fixed in 5.14 with commit 009fc857c5f6 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-47356 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/isdn/hardware/mISDN/hfcpci.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/49331c07ef0f8fdfa42b30ba6a83a657b29d7fbe https://git.kernel.org/stable/c/54ff3202928952a100c477248e65ac6db01258a7 https://git.kernel.org/stable/c/7867ddc5f3de7f289aee63233afc0df4b62834c5 https://git.kernel.org/stable/c/5f2818185da0fe82a932f0856633038b66faf124 https://git.kernel.org/stable/c/3ecd228c636ee17c14662729737fa07242a93cb0 https://git.kernel.org/stable/c/b7ee9ae1e0cf55a037c4a99af2acc5d78cb7802d https://git.kernel.org/stable/c/61370ff07e0acc657559a8fac02551dfeb9d3020 https://git.kernel.org/stable/c/ed7c3739d0a07e2ec3ccbffe7e93cea01c438cda https://git.kernel.org/stable/c/009fc857c5f6fda81f2f7dd851b2d54193a8e733